Mantid
Loading...
Searching...
No Matches
Framework
PythonInterface
mantid
api
src
Exports
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 "
MantidAPI/CatalogSession.h
"
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
14
using
Mantid::API::CatalogSession
;
15
using namespace
boost::python
;
16
17
void
export_CatalogSession
() {
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
}
CatalogSession.h
export_CatalogSession
void export_CatalogSession()
Definition
CatalogSession.cpp:17
Mantid::API::CatalogSession
This class is a responsible for storing session information for a specific catalog.
Definition
CatalogSession.h:22
Mantid::API::CatalogSession::getSessionId
const std::string & getSessionId() const
Obtain the session ID for the catalog created.
Definition
CatalogSession.cpp:26
boost::python
Definition
NDArray.h:50
Generated by
1.9.8