Mantid
Loading...
Searching...
No Matches
CompositeCatalog.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2013 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
10
11#include <list>
12#include <set>
13
14namespace Mantid {
15namespace API {
23class MANTID_API_DLL CompositeCatalog : public ICatalog {
24public:
28 void add(const ICatalog_sptr &catalog);
30 CatalogSession_sptr login(const std::string &username, const std::string &password, const std::string &endpoint,
31 const std::string &facility) override;
33 void logout() override;
35 void search(const ICat::CatalogSearchParam &inputs, ITableWorkspace_sptr &outputws, const int &offset,
36 const int &limit) override;
38 int64_t getNumberOfSearchResults(const ICat::CatalogSearchParam &inputs) override;
40 void myData(ITableWorkspace_sptr &outputws) override;
42 void getDataSets(const std::string &investigationId, ITableWorkspace_sptr &outputws) override;
44 void getDataFiles(const std::string &investigationId, ITableWorkspace_sptr &outputws) override;
46 void listInstruments(std::vector<std::string> &instruments) override;
48 void listInvestigationTypes(std::vector<std::string> &invstTypes) override;
50 void keepAlive() override;
51
52private:
53 std::list<ICatalog_sptr> m_catalogs;
54};
55} // namespace API
56} // namespace Mantid
CompositeCatalog is responsible for storing and performing options on multiple catalogues.
std::list< ICatalog_sptr > m_catalogs
This class creates an interface for information catalogs to support multiple facilities.
Definition: ICatalog.h:28
This class is used in Catalog Search service to set/get all the inputs to search for.
std::shared_ptr< CatalogSession > CatalogSession_sptr
std::shared_ptr< ICatalog > ICatalog_sptr
Definition: ICatalog.h:55
std::shared_ptr< ITableWorkspace > ITableWorkspace_sptr
shared pointer to Mantid::API::ITableWorkspace
Helper class which provides the Collimation Length for SANS instruments.