|
| cmnClassServices (const std::string &className, const std::type_info *typeInfo, const cmnClassServicesBase *parentServices, const std::string &libraryName, cmnLogMask mask=CMN_LOG_ALLOW_DEFAULT) |
|
virtual cmnGenericObject * | Create (void) const |
|
virtual cmnGenericObject * | Create (const cmnGenericObject &other) const |
|
virtual cmnGenericObject * | CreateWithArg (const cmnGenericObject &arg) const |
|
virtual bool | Create (cmnGenericObject *existing, const cmnGenericObject &other) const |
|
virtual cmnGenericObject * | CreateArray (size_t size) const |
|
virtual cmnGenericObject * | CreateArray (size_t size, const cmnGenericObject &other) const |
|
virtual bool | DeleteArray (generic_pointer &data, size_t &size) const |
|
virtual bool | Delete (cmnGenericObject *existing) const |
|
virtual size_t | GetSize (void) const |
|
bool | HasDynamicCreation (void) const |
|
bool | DefaultConstructorAvailable (void) const |
|
bool | CopyConstructorAvailable (void) const |
|
bool | OneArgConstructorAvailable (void) const |
|
const cmnClassServicesBase * | GetConstructorArgServices (void) const |
|
| cmnClassServicesBase (const std::string &className, const std::type_info *typeInfo, const cmnClassServicesBase *parentServices, const std::string &libraryName, cmnLogMask mask=CMN_LOG_ALLOW_DEFAULT) |
|
virtual | ~cmnClassServicesBase () |
|
const std::string & | GetName (void) const |
|
const std::type_info * | TypeInfoPointer (void) const |
|
const cmnLogMask & | GetLogMask (void) const |
|
const cmnLogMask & | GetLoD (void) const |
|
void | SetLogMask (cmnLogMask mask) |
|
void CISST_DEPRECATED | SetLoD (cmnLogMask mask) |
|
const cmnClassServicesBase * | GetParentServices (void) const |
|
bool | IsDerivedFrom (const cmnClassServicesBase *parentServices) const |
|
template<class _Parent > |
bool | IsDerivedFrom (void) const |
|
const std::string & | GetLibraryName (void) const |
|
template<int _dynamicCreation, class _class, class _argType = _class>
class cmnClassServices< _dynamicCreation, _class, _argType >
Class services.
If dynamic creation is enabled, class must have public default constructor and copy constructor.
- See Also
- cmnClassRegister cmnClassServicesBase
template<int _dynamicCreation, class _class , class _argType = _class>
Create a new empty object of the same type as represented by this object. This can be used whenever an object needs to be dynamically created (e.g. deserialization, object factory). This method uses the C++ "new" operator and the programmers should remember to use a matching "delete" if needed.
- Returns
- a pointer to the newly created object or null if object cannot be created. This could happen when the class services where created with CMN_NO_DYNAMIC_CREATION.
Implements cmnClassServicesBase.
template<int _dynamicCreation, class _class , class _argType = _class>
Create a new empty object of the same type as represented by this object using the copy constructor. This can be used whenever an object needs to be dynamically created (e.g. deserialization, object factory). This method uses the C++ "new" operator and the programmers should remember to use a matching "delete" if needed.
- Parameters
-
- Returns
- a pointer to the newly created object or null if object cannot be created. This could happen when the class services where created with CMN_NO_DYNAMIC_CREATION or if the object provided is not of the right type and the copy constructor can not be called.
Implements cmnClassServicesBase.
template<int _dynamicCreation, class _class , class _argType = _class>
Create a new empty array of objects of the same type as represented by this object. This can be used whenever an object needs to be dynamically created (e.g. deserialization, object factory). This method uses the C++ "new[size]" operator and the programmers should remember to use a matching "delete" if needed.
- Returns
- a pointer to the newly created object or null if object cannot be created. This could happen when the class services where created with CMN_NO_DYNAMIC_CREATION.
Implements cmnClassServicesBase.