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:
void registerAllMyClasses() { registerClass(CLASS_ID( CMyClass1 ) ); ... } CStartUpClassesRegister doReg( ®isterAllMyClasses );
Definition at line 50 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. | |
| ~CStartUpClassesRegister () | |
| int | do_nothing () |
| < dummy method to allow introducing dependences and avoid the compiler removing the class in static linking | |
Private Attributes | |
| void(* | m_ptr_register_func )() |
| An internal copy of the functor. | |
| 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
int mrpt::utils::CStartUpClassesRegister::m_dummy_var [private] |
Definition at line 62 of file CStartUpClassesRegister.h.
void(* mrpt::utils::CStartUpClassesRegister::m_ptr_register_func)() [private] |
An internal copy of the functor.
Definition at line 60 of file CStartUpClassesRegister.h.
| Page generated by Doxygen 1.7.2 for MRPT 0.9.4 SVN: at Mon Jan 10 22:30:30 UTC 2011 |