OpenWalker Project
Documentation of the ROS Packages
Public Member Functions | Static Public Member Functions | List of all members
ow_core::IGenericClass Class Reference

The IGenericClass class. More...

#include <i_generic_class.h>

Inheritance diagram for ow_core::IGenericClass:
ow_core::IPlugin

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...
 

Detailed Description

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.

Member Function Documentation

static const std::string& ow_core::IGenericClass::ClassType ( )
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.

virtual std::string ow_core::IGenericClass::classType ( ) const
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.


The documentation for this class was generated from the following file: