ERC CISST - cisst software

cmnClassServicesBase.h File Reference


Detailed Description

Defines the cmnClassServicesBase.

Definition in file cmnClassServicesBase.h.

#include <cisstCommon/cmnForwardDeclarations.h>
#include <cisstCommon/cmnLogLoD.h>
#include <string>
#include <typeinfo>
#include <cisstCommon/cmnExport.h>

Include dependency graph for cmnClassServicesBase.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

Functions


Function Documentation

template<class _class>
cmnClassServicesBase* cmnClassServicesInstantiate ( void   ) 

Class services instantiation.

This function is templated by the type of the class to be registered. Its implementation is defined by the macro CMN_IMPLEMENT_SERVICES or CMN_IMPLEMENT_SERVICES_TEMPLATED. In both case, the function creates the class services (cmnClassServices) and registers it within the class register (cmnClassRegister) based on its std::type_info (see typeid and C++RTTI for more details) to ensure its uniqueness.


erc-cisst-devel<at>lists.johnshopkins.edu