OpenWalker Project
Documentation of the ROS Packages
|
The IGenericClass class. More...
#include <i_generic_class.h>
Public Member Functions | |
virtual | ~IGenericClass () |
Virtual destructor. | |
virtual std::string | classType () const |
Get the class type. More... | |
Static Public Member Functions | |
static const std::string & | ClassType () |
The class type of this class. More... | |
The IGenericClass class.
The interface class for dynamically created classes from a runtime loaded shared library.
NOTE: If you want to create a class dynamically from a runtime loaded shared library, then that class needs to have a virtual destructor.
All OpenWalker plugins derive from this class to be loadable at runtime.
|
inlinestatic |
The class type of this class.
Since demangling and mangling are compiler specific we use this function to store the type of a class. This function should be overloaded in all classes that derive from this class.
|
inlinevirtual |
Get the class type.
Note: This identifier can be used to determine the class that this interface abstracts. Then the pointer of this class can be up casted to the correct type.
Note: This function should be overwritten by all classes that derive from this class.
Reimplemented in ow_core::IPlugin.