Mantid
Loading...
Searching...
No Matches
CatalogSession.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
9#include "MantidAPI/DllConfig.h"
10#include "boost/shared_ptr.hpp"
11#include <string>
12
13namespace Mantid {
14namespace API {
22class MANTID_API_DLL CatalogSession {
23public:
24 CatalogSession(std::string sessionID, std::string facility, std::string endpoint);
25 std::string getSessionId() const;
26 void setSessionId(const std::string &sessionID);
27 const std::string &getSoapEndpoint() const;
28 const std::string &getFacility() const;
29
30private:
31 std::string m_sessionID;
32 std::string m_facility;
33 std::string m_endpoint;
34};
35
36using CatalogSession_sptr = std::shared_ptr<CatalogSession>;
37using CatalogSession_const_sptr = std::shared_ptr<const CatalogSession>;
38} // namespace API
39} // namespace Mantid
This class is a responsible for storing session information for a specific catalog.
std::shared_ptr< CatalogSession > CatalogSession_sptr
std::shared_ptr< const CatalogSession > CatalogSession_const_sptr
Helper class which provides the Collimation Length for SANS instruments.