A helper class that automatically register at start up a custom function to register all the CObject-derived classes in a given MRPT library or user application.
Usage:
Definition at line 32 of file CStartUpClassesRegister.h.
#include <mrpt/utils/CStartUpClassesRegister.h>
Public Member Functions | |
CStartUpClassesRegister (void(*ptr_register_func)()) | |
Read the global description of mrpt::utils::CStartUpClassesRegister. More... | |
~CStartUpClassesRegister () | |
int | do_nothing () |
< dummy method to allow introducing dependences and avoid the compiler removing the class in static linking More... | |
Private Attributes | |
void(* | m_ptr_register_func )() |
An internal copy of the functor. More... | |
int | m_dummy_var |
mrpt::utils::CStartUpClassesRegister::CStartUpClassesRegister | ( | void(*)() | ptr_register_func | ) |
Read the global description of mrpt::utils::CStartUpClassesRegister.
mrpt::utils::CStartUpClassesRegister::~CStartUpClassesRegister | ( | ) |
int mrpt::utils::CStartUpClassesRegister::do_nothing | ( | ) |
< dummy method to allow introducing dependences and avoid the compiler removing the class in static linking
|
private |
Definition at line 44 of file CStartUpClassesRegister.h.
|
private |
An internal copy of the functor.
Definition at line 42 of file CStartUpClassesRegister.h.
Page generated by Doxygen 1.9.5 for MRPT 1.4.0 SVN: at Tue Dec 27 00:53:09 UTC 2022 |