Mantid
Loading...
Searching...
No Matches
LiveListenerInfo.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 +
10
11#include <boost/python/class.hpp>
12#include <boost/python/copy_const_reference.hpp>
13
15using namespace boost::python;
16
18 using namespace Mantid::PythonInterface;
19 std_vector_exporter<LiveListenerInfo>::wrap("std_vector_LiveListenerInfo");
20
21 class_<LiveListenerInfo>("LiveListenerInfo", no_init)
22 .def("name", &LiveListenerInfo::name, arg("self"), return_value_policy<copy_const_reference>(),
23 "Returns the name of this LiveListener connection")
24
25 .def("address", &LiveListenerInfo::address, arg("self"), return_value_policy<copy_const_reference>(),
26 "Returns the address of this LiveListener connection")
27
28 .def("listener", &LiveListenerInfo::listener, arg("self"), return_value_policy<copy_const_reference>(),
29 "Returns the name of the specific LiveListener class used");
30}
void export_LiveListenerInfo()
A class that holds information about a LiveListener connection.
const std::string & name() const
Return the name of this LiveListener connection.
const std::string & address() const
Returns the address string of this LiveListener connection.
const std::string & listener() const
Returns the classname of the specific LiveListener to use.
A struct to help export std::vector types.