17#include <boost/python/class.hpp>
18#include <boost/python/copy_const_reference.hpp>
19#include <boost/python/list.hpp>
20#include <boost/python/overloads.hpp>
21#include <boost/python/register_ptr_to_python.hpp>
37BOOST_PYTHON_FUNCTION_OVERLOADS(getInstrumentFilename_Overload,
InstrumentFileFinder::getInstrumentFilename, 1, 2)
38BOOST_PYTHON_FUNCTION_OVERLOADS(getParameterFilename_Overload,
InstrumentFileFinder::getParameterFilename, 1, 3)
39BOOST_PYTHON_FUNCTION_OVERLOADS(getParameterPath_Overload,
InstrumentFileFinder::getParameterPath, 1, 2)
44 register_ptr_to_python<std::shared_ptr<InstrumentFileFinder>>();
46 class_<InstrumentFileFinder>(
"InstrumentFileFinder", no_init)
49 getInstrumentFilename_Overload(
"Returns IDF filename", (arg(
"instrument"), arg(
"date") =
"")))
50 .staticmethod(
"getInstrumentFilename")
53 getParameterFilename_Overload(
"Returns Instrument Parameter filename",
54 (arg(
"instrument"), arg(
"date") =
"", arg(
"dirHint") =
"")))
55 .staticmethod(
"getParameterFilename")
58 getParameterPath_Overload(
"Returns the full path to the given instrument parameter file "
59 "for the named instrument if it exists in the instrument search "
60 "directories, or the optional user provided path.\n"
62 "instName: The name of the instrument to lookup the IPF "
64 "directoryHint: (Optional) Searches the user provided path "
65 "before any instrument dirs\n"
66 "returns: The full path as a string if found, else an "
68 (arg(
"instName"), arg(
"directoryHint") =
"")))
69 .staticmethod(
"getParameterPath");
#define GET_POINTER_SPECIALIZATION(TYPE)
void exportInstrumentFileFinder()
Overload generator for getInstrumentFilename.
#define GNU_DIAG_OFF(x)
This is a collection of macros for turning compiler warnings off in a controlled manner.
static std::string getParameterPath(const std::string &instName, const std::string &dirHint="")
Search instrument directories for Parameter file, return full path name if found, else "".
static std::string getParameterFilename(const std::string &instrumentName, const std::string &date="", const std::string &dirHint="")
Get the Parameter file using the instrument name and date, optionally searching dirHint first before ...
static std::string getInstrumentFilename(const std::string &instrumentName, const std::string &date="")
Get the IDF using the instrument name and date.