11#include <boost/python/class.hpp>
12#include <boost/python/copy_const_reference.hpp>
13#include <boost/python/overloads.hpp>
22 class_<InstrumentInfo>(
"InstrumentInfo", no_init)
25 "Returns the full name of the instrument as defined in the "
29 "Returns the abbreviated name of the instrument as definined in the "
33 "Returns the abbreviated name of the instrument as definined in the "
37 "Returns zero padding for this instrument")
40 "Returns file prefix for this instrument")
43 "Returns the delimiter "
44 "between the instrument "
45 "name and the run number.")
48 "Return list of techniques this instrument supports")
51 "Returns the facility that contains this instrument.")
54 "Returns the name of the specific LiveListener class that is used "
55 "by the given connection name. If no name is provided, the default "
56 "connection is used.")
60 "Returns the host name and the port of the machine hosting DAE and "
61 "providing port to connect to for a live data stream")
64 "Returns the Address string of a live data connection on this "
65 "instrument. If no connection name is provided, the default "
66 "connection is used.")
69 return_value_policy<copy_const_reference>(),
70 "Returns a LiveListenerInfo instance for this instrument. If "
71 "no connection name is specified, the default is used.")
74 "Returns true if this instrument has at least one LiveListenerInfo")
77 return_value_policy<copy_const_reference>(),
"Returns all available LiveListenerInfo instances as a vector")
void export_InstrumentInfo()
A class that holds information about an instrument.
std::string filePrefix(unsigned int runNumber) const
Returns file prefix for this instrument and a run number.
bool hasLiveListenerInfo() const
Returns true if this instrument has at least one live listener defined.
std::string liveDataAddress(const std::string &name="") const
Returns a string containing the "host:port" for default live listener.
const FacilityInfo & facility() const
The facility to which this instrument belongs.
const std::string name() const
Return the name of the instrument.
const std::set< std::string > & techniques() const
Return list of techniques.
const std::vector< LiveListenerInfo > & liveListenerInfoList() const
Returns all available LiveListenerInfos as a vector.
int zeroPadding(unsigned int runNumber) const
Returns zero padding for this instrument and a run number.
std::string delimiter() const
Returns the default delimiter between instrument name and run number.
std::string liveListener(const std::string &name="") const
Returns the name of the default live listener.
const LiveListenerInfo & liveListenerInfo(std::string name="") const
Returns LiveListenerInfo for specified connection name (or default)
const std::string shortName() const
Return the short name of the instrument.
A struct to help export std::vector types.