Go to the source code of this file.
|
| mrpt |
| This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
|
|
| mrpt::hwdrivers |
| Contains classes for various device interfaces.
|
|
◆ DEFINE_GENERIC_SENSOR
#define DEFINE_GENERIC_SENSOR |
( |
|
class_name | ) |
|
Value:protected: \
public: \
static void doRegister() \
A generic interface for a wide-variety of sensors designed to be used in the application RawLogGrabbe...
#define SENSOR_CLASS_ID(class_name)
void BASE_IMPEXP registerClass(const mrpt::utils::TRuntimeClassId *pNewClass)
Register a class into the MRPT internal list of "CSerializable" descendents.
Auxiliary structure used for CSerializable runtime class ID support.
A structure for runtime ID class type information in the context of hwdrivers::CGenericSensor.
This declaration must be inserted in all CGenericSensor classes definition, within the class declaration.
Definition at line 252 of file CGenericSensor.h.
◆ IMPLEMENTS_GENERIC_SENSOR
#define IMPLEMENTS_GENERIC_SENSOR |
( |
|
class_name, |
|
|
|
NameSpace |
|
) |
| |
Value: mrpt::hwdrivers::TSensorClassId NameSpace::class_name::class##class_name = { \
#class_name, NameSpace::class_name::CreateObject }; \
const mrpt::hwdrivers::TSensorClassId* NameSpace::class_name::GetRuntimeClass() const \
{ return SENSOR_CLASS_ID(class_name); }
A generic interface for a wide-variety of sensors designed to be used in the application RawLogGrabbe...
class HWDRIVERS_IMPEXP CGenericSensor
This must be inserted in all CGenericSensor classes implementation files:
Definition at line 264 of file CGenericSensor.h.
◆ SENSOR_CLASS_ID
◆ SENSOR_IS_CLASS
#define SENSOR_IS_CLASS |
( |
|
ptrObj, |
|
|
|
class_name |
|
) |
| (ptrObj->GetRuntimeClass()==SENSOR_CLASS_ID(class_name)) |