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 +
8
9#include <boost/python/class.hpp>
10#include <boost/python/register_ptr_to_python.hpp>
11#include <memory>
12
14using namespace boost::python;
15
17 register_ptr_to_python<std::shared_ptr<CatalogSession>>();
18
19 class_<CatalogSession, boost::noncopyable>("CatalogSession", no_init)
20 .def("getSessionId", &CatalogSession::getSessionId, args("self"), "Get the session id string.");
21}
void export_CatalogSession()
This class is a responsible for storing session information for a specific catalog.
std::string getSessionId() const
Obtain the session ID for the catalog created.