Mantid
|
ICatalogInfo : An abstract class that holds information about catalogs. More...
#include <ICatalogInfo.h>
Public Member Functions | |
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 | replaceAllOccurences (const std::string &path, const std::string &search, const std::string &format) const |
Replace all occurrences of the search string in the input with the format string. More... | |
std::string | replacePrefix (const std::string &path, const std::string ®ex, const std::string &prefix) const |
Replace the content of a string using regex. More... | |
ICatalogInfo : An abstract class that holds information about catalogs.
Definition at line 17 of file ICatalogInfo.h.
|
virtualdefault |
virtual destructor
|
pure virtual |
Obtain catalog name from the facility file.
Implemented in Mantid::Kernel::CatalogInfo, and Mantid::Kernel::UserCatalogInfo.
|
pure virtual |
Obtain the regex prefix from the facility file.
Implemented in Mantid::Kernel::CatalogInfo, and Mantid::Kernel::UserCatalogInfo.
Referenced by transformArchivePath().
|
pure virtual |
Clone.
Implemented in Mantid::Kernel::CatalogInfo, and Mantid::Kernel::UserCatalogInfo.
|
pure virtual |
Obtain the external download URL.
Implemented in Mantid::Kernel::CatalogInfo, and Mantid::Kernel::UserCatalogInfo.
|
pure virtual |
Obtain Linux prefix from facility file.
Implemented in Mantid::Kernel::CatalogInfo, and Mantid::Kernel::UserCatalogInfo.
Referenced by transformArchivePath().
|
pure virtual |
Obtain Macintosh prefix from facility file.
Implemented in Mantid::Kernel::CatalogInfo, and Mantid::Kernel::UserCatalogInfo.
Referenced by transformArchivePath().
|
private |
Replace all occurrences of the search string in the input with the format string.
path | :: An string to search and replace on. |
search | :: A substring to be searched for. |
format | :: A substitute string. |
Definition at line 55 of file ICatalogInfo.cpp.
Referenced by transformArchivePath().
|
private |
Replace the content of a string using regex.
path | :: An string to search and replace on. |
regex | :: The regex to search for. |
prefix | :: Replace result of regex with this prefix. |
Definition at line 40 of file ICatalogInfo.cpp.
Referenced by transformArchivePath().
|
pure virtual |
Obtain soap end point from the facility file.
Implemented in Mantid::Kernel::CatalogInfo, and Mantid::Kernel::UserCatalogInfo.
|
virtual |
Transform's the archive path based on operating system used.
Definition at line 13 of file ICatalogInfo.cpp.
References catalogPrefix(), linuxPrefix(), macPrefix(), replaceAllOccurences(), replacePrefix(), and windowsPrefix().
Referenced by MantidQt::MantidWidgets::CatalogSearch::disableDownloadButtonIfArchives(), and Mantid::ICat::CatalogDownloadDataFiles::exec().
|
pure virtual |
Obtain Windows prefix from the facility file.
Implemented in Mantid::Kernel::CatalogInfo, and Mantid::Kernel::UserCatalogInfo.
Referenced by transformArchivePath().