Mantid
Loading...
Searching...
No Matches
CatalogSession.cpp
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 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#include <utility>
8
10#include "MantidKernel/Logger.h"
11
12namespace Mantid::API {
19CatalogSession::CatalogSession(std::string sessionID, std::string facility, std::string endpoint)
20 : m_sessionID(std::move(sessionID)), m_facility(std::move(facility)), m_endpoint(std::move(endpoint)) {}
21
26std::string CatalogSession::getSessionId() const { return m_sessionID; }
27
32void CatalogSession::setSessionId(const std::string &sessionID) { m_sessionID = sessionID; }
33
38const std::string &CatalogSession::getSoapEndpoint() const { return m_endpoint; }
39
44const std::string &CatalogSession::getFacility() const { return m_facility; }
45} // namespace Mantid::API
std::string getSessionId() const
Obtain the session ID for the catalog created.
CatalogSession(std::string sessionID, std::string facility, std::string endpoint)
Initialise the related catalog session variables.
const std::string & getSoapEndpoint() const
Obtains the soap end-point of the catalog created.
void setSessionId(const std::string &sessionID)
Used to clear the session ID on logout.
const std::string & getFacility() const
Obtain the facility of the catalog created.
STL namespace.