9#include "MantidKernel/DllConfig.h"
11#include <boost/optional.hpp>
27 const std::string &key =
"icatDownload.mountPoint") {
34 Adapter(
const T &adaptee,
const std::string &key) : m_adaptee(adaptee),
m_key(key) {}
36 auto const mountPoint = m_adaptee.getString(
m_key);
37 if (!mountPoint.empty())
42 return new Adapter(adaptee, key);
57 const std::string catalogName()
const override;
58 const std::string soapEndPoint()
const override;
59 const std::string externalDownloadURL()
const override;
60 const std::string catalogPrefix()
const override;
61 const std::string windowsPrefix()
const override;
62 const std::string macPrefix()
const override;
63 const std::string linuxPrefix()
const override;
virtual OptionalPath preferredMountPoint() const =0
virtual ~CatalogConfigService()=default
ICatalogInfo : An abstract class that holds information about catalogs.
UserCatalogInfo : Takes catalog info from the facility (via CatalogInfo), but provides the ability to...
const std::unique_ptr< ICatalogInfo > m_catInfo
Facility catalog info. Aggregation only solution here.
const OptionalPath m_mountPoint
Archive mount point.
CatalogConfigService * makeCatalogConfigServiceAdapter(const T &adaptee, const std::string &key="icatDownload.mountPoint")
boost::optional< std::string > OptionalPath
Helper class which provides the Collimation Length for SANS instruments.