15 py::module pointmatchersupportModule = p_module.def_submodule(
"pointmatchersupport");
18 py::register_exception<InvalidModuleType>(pointmatchersupportModule,
"InvalidModuleType");
21 py::register_exception<TransformationError>(pointmatchersupportModule,
"TransformationError");
24 py::register_exception<ConfigurationError>(pointmatchersupportModule,
"ConfigurationError");
27 py::register_exception<InvalidElement>(pointmatchersupportModule,
"InvalidElement");
35 pointmatchersupportModule
36 .def(
"setLogger", &
pms::setLogger, py::arg(
"newLogger"),
"Set a new logger, protected by a mutex")
37 .def(
"validateFile", &
pms::validateFile, py::arg(
"fileName"),
"Throw a runtime_error exception if fileName cannot be opened");
40 py::bind_map<CsvElements>(pointmatchersupportModule,
"CsvElements",
"Data from a CSV file")
41 .def(
"clear", &CsvElements::clear);
An exception thrown when one tries to instanciate an element that does not exist in the registrar...
void pybindPointMatcherSupportModule(py::module &p_module)
void setLogger(std::shared_ptr< Logger > newLogger)
Set a new logger, protected by a mutex.
void pybindParametrizable(py::module &p_module)
void validateFile(const std::string &fileName)
Throw a runtime_error exception if fileName cannot be opened.
void pybindLogger(py::module &p_module)
std::map< std::string, std::vector< std::string > > CsvElements
Data from a CSV file.
An exception thrown when one tries to use a module type that does not exist.
void pybindLoggerImpl(py::module &p_module)
void pybindBibliography(py::module &p_module)
void pybindRegistrar(py::module &p_module)
An expception thrown when the yaml config file contains invalid configuration (e.g., mutually exclusive settings)