|
Mantid
|
A class that holds information about catalogs. More...
#include <CatalogInfo.h>
Public Member Functions | |
| CatalogInfo (const CatalogInfo &other) | |
| Copy constructor. More... | |
| CatalogInfo (const Poco::XML::Element *element) | |
| Constructor. More... | |
| const std::string | catalogName () const override |
| Obtain catalog name from the facility file. More... | |
| const std::string | catalogPrefix () const override |
| Obtain the regex prefix from the facility file. More... | |
| CatalogInfo * | clone () const override |
| Clone. More... | |
| const std::string | externalDownloadURL () const override |
| Obtain the external download URL. More... | |
| const std::string | linuxPrefix () const override |
| Obtain Linux prefix from facility file. More... | |
| const std::string | macPrefix () const override |
| Obtain Macintosh prefix from facility file. More... | |
| const std::string | soapEndPoint () const override |
| Obtain soap end point from the facility file. More... | |
| const std::string | windowsPrefix () const override |
| Obtain Windows prefix from the facility file. More... | |
Public Member Functions inherited from Mantid::Kernel::ICatalogInfo | |
| virtual const std::string | catalogName () const =0 |
| Obtain catalog name from the facility file. More... | |
| virtual const std::string | catalogPrefix () const =0 |
| Obtain the regex prefix from the facility file. More... | |
| virtual ICatalogInfo * | clone () const =0 |
| Clone. More... | |
| virtual const std::string | externalDownloadURL () const =0 |
| Obtain the external download URL. More... | |
| virtual const std::string | linuxPrefix () const =0 |
| Obtain Linux prefix from facility file. More... | |
| virtual const std::string | macPrefix () const =0 |
| Obtain Macintosh prefix from facility file. More... | |
| virtual const std::string | soapEndPoint () const =0 |
| Obtain soap end point from the facility file. More... | |
| virtual std::string | transformArchivePath (const std::string &path) const |
| Transform's the archive path based on operating system used. More... | |
| virtual const std::string | windowsPrefix () const =0 |
| Obtain Windows prefix from the facility file. More... | |
| virtual | ~ICatalogInfo ()=default |
| virtual destructor More... | |
Private Member Functions | |
| std::string | getAttribute (const Poco::XML::Element *element, const std::string &tagName, const std::string &attributeName) |
| Obtain the attribute from a given element tag and attribute name. More... | |
| CatalogInfo & | operator= (const CatalogInfo &other) |
Private Attributes | |
| std::string | m_catalogName |
| std::string | m_catalogPrefix |
| std::string | m_externalDownloadURL |
| std::string | m_linuxPrefix |
| std::string | m_macPrefix |
| std::string | m_soapEndPoint |
| std::string | m_windowsPrefix |
A class that holds information about catalogs.
Definition at line 31 of file CatalogInfo.h.
| Mantid::Kernel::CatalogInfo::CatalogInfo | ( | const Poco::XML::Element * | element | ) |
Constructor.
| element | :: "Catalog" element from Facilities.xml |
Definition at line 23 of file CatalogInfo.cpp.
References getAttribute(), m_catalogName, m_catalogPrefix, m_externalDownloadURL, m_linuxPrefix, m_macPrefix, m_soapEndPoint, and m_windowsPrefix.
| Mantid::Kernel::CatalogInfo::CatalogInfo | ( | const CatalogInfo & | other | ) |
Copy constructor.
Definition at line 33 of file CatalogInfo.cpp.
|
overridevirtual |
Obtain catalog name from the facility file.
Implements Mantid::Kernel::ICatalogInfo.
Definition at line 41 of file CatalogInfo.cpp.
References m_catalogName.
|
overridevirtual |
Obtain the regex prefix from the facility file.
Obtain the regex prefix for default archive path.
Implements Mantid::Kernel::ICatalogInfo.
Definition at line 56 of file CatalogInfo.cpp.
References m_catalogPrefix.
|
overridevirtual |
Clone.
Virtual constructor.
Implements Mantid::Kernel::ICatalogInfo.
Definition at line 77 of file CatalogInfo.cpp.
|
overridevirtual |
Obtain the external download URL.
Obtain catalog name from the facility file.
Implements Mantid::Kernel::ICatalogInfo.
Definition at line 51 of file CatalogInfo.cpp.
References m_externalDownloadURL.
|
private |
Obtain the attribute from a given element tag and attribute name.
| element | :: The name of the element in the XML file. |
| tagName | :: The name of the tag to search for. |
| attributeName | :: The name of the attribute for the given tag. |
Definition at line 86 of file CatalogInfo.cpp.
Referenced by CatalogInfo().
|
overridevirtual |
Obtain Linux prefix from facility file.
Implements Mantid::Kernel::ICatalogInfo.
Definition at line 71 of file CatalogInfo.cpp.
References m_linuxPrefix.
|
overridevirtual |
Obtain Macintosh prefix from facility file.
Implements Mantid::Kernel::ICatalogInfo.
Definition at line 66 of file CatalogInfo.cpp.
References m_macPrefix.
|
private |
|
overridevirtual |
Obtain soap end point from the facility file.
Implements Mantid::Kernel::ICatalogInfo.
Definition at line 46 of file CatalogInfo.cpp.
References m_soapEndPoint.
|
overridevirtual |
Obtain Windows prefix from the facility file.
Implements Mantid::Kernel::ICatalogInfo.
Definition at line 61 of file CatalogInfo.cpp.
References m_windowsPrefix.
|
private |
Definition at line 62 of file CatalogInfo.h.
Referenced by CatalogInfo(), and catalogName().
|
private |
Definition at line 65 of file CatalogInfo.h.
Referenced by CatalogInfo(), and catalogPrefix().
|
private |
Definition at line 64 of file CatalogInfo.h.
Referenced by CatalogInfo(), and externalDownloadURL().
|
private |
Definition at line 68 of file CatalogInfo.h.
Referenced by CatalogInfo(), and linuxPrefix().
|
private |
Definition at line 67 of file CatalogInfo.h.
Referenced by CatalogInfo(), and macPrefix().
|
private |
Definition at line 63 of file CatalogInfo.h.
Referenced by CatalogInfo(), and soapEndPoint().
|
private |
Definition at line 66 of file CatalogInfo.h.
Referenced by CatalogInfo(), and windowsPrefix().