Mantid
|
This class is a responsible for storing session information for a specific catalog. More...
#include <CatalogSession.h>
Public Member Functions | |
CatalogSession (std::string sessionID, std::string facility, std::string endpoint) | |
Initialise the related catalog session variables. More... | |
const std::string & | getFacility () const |
Obtain the facility of the catalog created. More... | |
std::string | getSessionId () const |
Obtain the session ID for the catalog created. More... | |
const std::string & | getSoapEndpoint () const |
Obtains the soap end-point of the catalog created. More... | |
void | setSessionId (const std::string &sessionID) |
Used to clear the session ID on logout. More... | |
Private Attributes | |
std::string | m_endpoint |
std::string | m_facility |
std::string | m_sessionID |
This class is a responsible for storing session information for a specific catalog.
Definition at line 22 of file CatalogSession.h.
Mantid::API::CatalogSession::CatalogSession | ( | std::string | sessionID, |
std::string | facility, | ||
std::string | endpoint | ||
) |
Initialise the related catalog session variables.
sessionID | :: The session ID generated from logging into the catalog. |
facility | :: The facility of the catalog the user logged in to. |
endpoint | :: The endpoint of the catalog the user logged in to. |
Definition at line 19 of file CatalogSession.cpp.
const std::string & Mantid::API::CatalogSession::getFacility | ( | ) | const |
Obtain the facility of the catalog created.
Definition at line 44 of file CatalogSession.cpp.
References m_facility.
std::string Mantid::API::CatalogSession::getSessionId | ( | ) | const |
Obtain the session ID for the catalog created.
Definition at line 26 of file CatalogSession.cpp.
References m_sessionID.
Referenced by export_CatalogSession().
const std::string & Mantid::API::CatalogSession::getSoapEndpoint | ( | ) | const |
Obtains the soap end-point of the catalog created.
Definition at line 38 of file CatalogSession.cpp.
References m_endpoint.
void Mantid::API::CatalogSession::setSessionId | ( | const std::string & | sessionID | ) |
Used to clear the session ID on logout.
sessionID | :: The value to set the session id. |
Definition at line 32 of file CatalogSession.cpp.
References m_sessionID.
|
private |
Definition at line 33 of file CatalogSession.h.
Referenced by getSoapEndpoint().
|
private |
Definition at line 32 of file CatalogSession.h.
Referenced by getFacility().
|
private |
Definition at line 31 of file CatalogSession.h.
Referenced by getSessionId(), and setSessionId().