Mantid
Loading...
Searching...
No Matches
ProxyInfo.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2014 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9#include "MantidKernel/DllConfig.h"
10#include <string>
11
12namespace Mantid {
13namespace Kernel {
14
17class MANTID_KERNEL_DLL ProxyInfo {
18private:
19 std::string m_host;
20 int m_port;
23
24public:
25 virtual ~ProxyInfo() = default;
26 ProxyInfo();
27 ProxyInfo(const std::string &host, const int port, const bool isHttpProxy);
28 std::string host() const;
29 int port() const;
30 bool isHttpProxy() const;
31 bool emptyProxy() const;
32};
33
34} // namespace Kernel
35} // namespace Mantid
ProxyInfo : Container for carrying around network proxy information.
Definition: ProxyInfo.h:17
virtual ~ProxyInfo()=default
Helper class which provides the Collimation Length for SANS instruments.