8#include <boost/python/class.hpp>
9#include <boost/python/copy_const_reference.hpp>
10#include <boost/python/register_ptr_to_python.hpp>
18 register_ptr_to_python<FacilityInfo *>();
20 class_<FacilityInfo>(
"FacilityInfo", no_init)
21 .def(
"name", &
FacilityInfo::name, arg(
"self"), return_value_policy<copy_const_reference>(),
22 "Returns name of the facility as definined in the Facilities.xml "
24 .def(
"__str__", &
FacilityInfo::name, arg(
"self"), return_value_policy<copy_const_reference>(),
25 "Returns name of the facility as definined in the Facilities.xml "
29 "Returns the delimiter between the instrument name and the run "
32 "Returns the list of file extensions that are considered as "
33 "instrument data files.")
35 return_value_policy<copy_const_reference>(),
"Returns the extension that is preferred for this facility")
37 "Returns the timezone appropriate for the facility. If there is not "
38 "a timezone specified this returns an empty string.")
40 "Return the archive search interface names")
42 arg(
"self"), return_value_policy<copy_const_reference>(),
43 "Returns a list of instruments of this facility as defined in the "
44 "Facilities.xml file")
47 (arg(
"self"), arg(
"technique")),
"Returns a list of instruments of given technique")
49 return_value_policy<copy_const_reference>(),
"Returns the instrument with the given name");
void export_FacilityInfo()
A class that holds information about a facility.
const std::vector< std::string > extensions() const
Returns a list of file extensions.
int zeroPadding() const
Returns default zero padding for this facility.
const std::string & preferredExtension() const
Returns the preferred file extension.
const std::vector< InstrumentInfo > & instruments() const
Returns a list of instruments of this facility.
const std::vector< std::string > & archiveSearch() const
Return the archive search interface names.
const std::string & name() const
Return the name of the facility.
const InstrumentInfo & instrument(std::string iName="") const
Returns instruments with given name.
const std::string & delimiter() const
Returns the default delimiter between instrument name and run number.
const std::string & timezone() const
Returns the time zone designation compatible with pytz.
A class that holds information about an instrument.