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