Mantid
Loading...
Searching...
No Matches
CatalogInfo.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2007 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//----------------------------------------------------------------------
10// Includes
11//----------------------------------------------------------------------
12#include "MantidKernel/DllConfig.h"
14#include <string>
15
16//----------------------------------------------------------------------
17// Forward declarations
18//----------------------------------------------------------------------
19namespace Poco {
20namespace XML {
21class Element;
22}
23} // namespace Poco
24
25namespace Mantid {
26namespace Kernel {
27
31class MANTID_KERNEL_DLL CatalogInfo : public ICatalogInfo {
32public:
34 CatalogInfo(const Poco::XML::Element *element);
36 CatalogInfo(const CatalogInfo &other);
38 const std::string catalogName() const override;
40 const std::string soapEndPoint() const override;
42 const std::string externalDownloadURL() const override;
44 const std::string catalogPrefix() const override;
46 const std::string windowsPrefix() const override;
48 const std::string macPrefix() const override;
50 const std::string linuxPrefix() const override;
52 CatalogInfo *clone() const override;
53
54private:
56 std::string getAttribute(const Poco::XML::Element *element, const std::string &tagName,
57 const std::string &attributeName);
58
59 // Disabled assignment operator.
61
62 std::string m_catalogName;
63 std::string m_soapEndPoint;
65 std::string m_catalogPrefix;
66 std::string m_windowsPrefix;
67 std::string m_macPrefix;
68 std::string m_linuxPrefix;
69};
70
71} // namespace Kernel
72} // namespace Mantid
A class that holds information about catalogs.
Definition: CatalogInfo.h:31
CatalogInfo & operator=(const CatalogInfo &other)
std::string m_externalDownloadURL
Definition: CatalogInfo.h:64
ICatalogInfo : An abstract class that holds information about catalogs.
Definition: ICatalogInfo.h:17
Helper class which provides the Collimation Length for SANS instruments.
Definition: Algorithm.h:30