point_matcher_support_module.cpp
Go to the documentation of this file.
2 
8 
9 namespace python
10 {
11  namespace modules
12  {
13  void pybindPointMatcherSupportModule(py::module& p_module)
14  {
15  py::module pointmatchersupportModule = p_module.def_submodule("pointmatchersupport");
16 
17  using InvalidModuleType = pms::InvalidModuleType;
18  py::register_exception<InvalidModuleType>(pointmatchersupportModule, "InvalidModuleType");
19 
20  using TransformationError = pms::TransformationError;
21  py::register_exception<TransformationError>(pointmatchersupportModule, "TransformationError");
22 
23  using ConfigurationError = pms::ConfigurationError;
24  py::register_exception<ConfigurationError>(pointmatchersupportModule, "ConfigurationError");
25 
26  using InvalidElement = pms::InvalidElement;
27  py::register_exception<InvalidElement>(pointmatchersupportModule, "InvalidElement");
28 
29  pointmatchersupport::pybindBibliography(pointmatchersupportModule);
30  pointmatchersupport::pybindParametrizable(pointmatchersupportModule);
31  pointmatchersupport::pybindLogger(pointmatchersupportModule);
32  pointmatchersupport::pybindLoggerImpl(pointmatchersupportModule);
33  pointmatchersupport::pybindRegistrar(pointmatchersupportModule);
34 
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");
38 
40  py::bind_map<CsvElements>(pointmatchersupportModule, "CsvElements", "Data from a CSV file")
41  .def("clear", &CsvElements::clear);
42  }
43  }
44 }
PointMatcherSupport::validateFile
void validateFile(const std::string &fileName)
Throw a runtime_error exception if fileName cannot be opened.
Definition: pointmatcher/IO.cpp:355
logger.h
python::pointmatchersupport::pybindBibliography
void pybindBibliography(py::module &p_module)
Definition: bibliography.cpp:9
PointMatcherSupport::CsvElements
std::map< std::string, std::vector< std::string > > CsvElements
Data from a CSV file.
Definition: PointMatcher.h:125
PointMatcherSupport::ConfigurationError
An expception thrown when the yaml config file contains invalid configuration (e.g....
Definition: PointMatcher.h:96
PointMatcherSupport::setLogger
void setLogger(std::shared_ptr< Logger > newLogger)
Set a new logger, protected by a mutex.
Definition: Logger.cpp:98
python::pointmatchersupport::pybindLoggerImpl
void pybindLoggerImpl(py::module &p_module)
Definition: logger_impl.cpp:9
python::pointmatchersupport::pybindRegistrar
void pybindRegistrar(py::module &p_module)
Definition: registrar.cpp:15
python::modules::pybindPointMatcherSupportModule
void pybindPointMatcherSupportModule(py::module &p_module)
Definition: point_matcher_support_module.cpp:13
PointMatcherSupport::InvalidModuleType
An exception thrown when one tries to use a module type that does not exist.
Definition: PointMatcher.h:83
parametrizable.h
python
Definition: add_descriptor.cpp:5
registrar.h
logger_impl.h
point_matcher_support_module.h
python::pointmatchersupport::pybindParametrizable
void pybindParametrizable(py::module &p_module)
Definition: parametrizable.cpp:7
python::pointmatchersupport::pybindLogger
void pybindLogger(py::module &p_module)
Definition: logger.cpp:7
PointMatcherSupport::TransformationError
An expection thrown when a transformation has invalid parameters.
Definition: PointMatcher.h:89
PointMatcherSupport::InvalidElement
An exception thrown when one tries to instanciate an element that does not exist in the registrar.
Definition: Registrar.h:52
bibliography.h


libpointmatcher
Author(s):
autogenerated on Mon Jan 1 2024 03:24:43