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>
36BOOST_PYTHON_FUNCTION_OVERLOADS(getInstrumentFilename_Overload,
InstrumentFileFinder::getInstrumentFilename, 1, 2)
37BOOST_PYTHON_FUNCTION_OVERLOADS(getParameterPath_Overload,
InstrumentFileFinder::getParameterPath, 1, 2)
42 register_ptr_to_python<std::shared_ptr<InstrumentFileFinder>>();
44 class_<InstrumentFileFinder>(
"InstrumentFileFinder", no_init)
47 getInstrumentFilename_Overload(
"Returns IDF filename", (arg(
"instrument"), arg(
"date") =
"")))
48 .staticmethod(
"getInstrumentFilename")
51 getParameterPath_Overload(
"Returns the full path to the given instrument parameter file "
52 "for the named instrument if it exists in the instrument search "
53 "directories, or the optional user provided path.\n"
55 "instName: The name of the instrument to lookup the IPF "
57 "directoryHint: (Optional) Searches the user provided path "
58 "before any instrument dirs\n"
59 "returns: The full path as a string if found, else an "
61 (arg(
"instName"), arg(
"directoryHint") =
"")))
62 .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 getInstrumentFilename(const std::string &instrumentName, const std::string &date="")
Get the IDF using the instrument name and date.