|
cisst-saw
|
Base class for class services. More...
#include <cmnClassServicesBase.h>
Public Types | |
| typedef cmnGenericObject * | generic_pointer |
Public Member Functions | |
| 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 () |
| virtual cmnGenericObject * | Create (void) const =0 |
| virtual cmnGenericObject * | Create (const cmnGenericObject &other) const =0 |
| virtual cmnGenericObject * | CreateWithArg (const cmnGenericObject &arg) const =0 |
| virtual bool | Create (cmnGenericObject *existing, const cmnGenericObject &other) const =0 |
| virtual cmnGenericObject * | CreateArray (size_t size) const =0 |
| virtual cmnGenericObject * | CreateArray (size_t size, const cmnGenericObject &other) const =0 |
| virtual bool | DeleteArray (generic_pointer &data, size_t &size) const =0 |
| virtual bool | Delete (cmnGenericObject *existing) const =0 |
| virtual size_t | GetSize (void) const =0 |
| virtual bool | HasDynamicCreation (void) const =0 |
| virtual bool | DefaultConstructorAvailable (void) const =0 |
| virtual bool | CopyConstructorAvailable (void) const =0 |
| virtual bool | OneArgConstructorAvailable (void) const =0 |
| virtual const cmnClassServicesBase * | GetConstructorArgServices (void) const =0 |
| 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 |
Base class for class services.
Type used to refer to cmnGenericObject by pointer, convenient to pass a pointer by reference
| cmnClassServicesBase::cmnClassServicesBase | ( | const std::string & | className, |
| const std::type_info * | typeInfo, | ||
| const cmnClassServicesBase * | parentServices, | ||
| const std::string & | libraryName, | ||
| cmnLogMask | mask = CMN_LOG_ALLOW_DEFAULT ) |
Constructor. Sets the name of the class and the Level of Detail setting for the class.
| className | The name to be associated with the class. |
| typeInfo | Runtime type as defined by C++ RTTI |
| mask | The log mask to be used with this class. |
|
inlinevirtual |
Virtual destructor. Does nothing.
|
pure virtual |
Implemented in cmnClassServices< _dynamicCreation, _class, _argType >.
|
pure virtual |
Placement new using copy constructor
Implemented in cmnClassServices< _dynamicCreation, _class, _argType >.
|
pure virtual |
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.
| other | A object derived from cmnGenericObject which should be of the same type as the type represented by this cmnClassServices object. |
Implemented in cmnClassServices< _dynamicCreation, _class, _argType >.
|
pure virtual |
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.
Implemented in cmnClassServices< _dynamicCreation, _class, _argType >.
|
pure virtual |
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.
Implemented in cmnClassServices< _dynamicCreation, _class, _argType >.
|
pure virtual |
Create an array and fill with an existing object
Implemented in cmnClassServices< _dynamicCreation, _class, _argType >.
|
pure virtual |
Create with argument
Implemented in cmnClassServices< _dynamicCreation, _class, _argType >.
|
pure virtual |
returns information about what types of constructors are available
Implemented in cmnClassServices< _dynamicCreation, _class, _argType >.
|
pure virtual |
Call destructor explicitly
Implemented in cmnClassServices< _dynamicCreation, _class, _argType >.
|
pure virtual |
Implemented in cmnClassServices< _dynamicCreation, _class, _argType >.
|
pure virtual |
return class services for constructor argument (0 if no class services or does not exist)
Implemented in cmnClassServices< _dynamicCreation, _class, _argType >.
| const std::string & cmnClassServicesBase::GetLibraryName | ( | void | ) | const |
Get the name of library likely to contain the symbol.
|
inline |
| const cmnLogMask & cmnClassServicesBase::GetLogMask | ( | void | ) | const |
Get the log Level of Detail associated with the class. This is the level used to filter the log messages.
| const std::string & cmnClassServicesBase::GetName | ( | void | ) | const |
Get the name associated with the class.
|
inline |
|
pure virtual |
Get the size of the class
Implemented in cmnClassServices< _dynamicCreation, _class, _argType >.
|
pure virtual |
Returns whether dynamic creation is available
Implemented in cmnClassServices< _dynamicCreation, _class, _argType >.
| bool cmnClassServicesBase::IsDerivedFrom | ( | const cmnClassServicesBase * | parentServices | ) | const |
|
inline |
|
pure virtual |
Implemented in cmnClassServices< _dynamicCreation, _class, _argType >.
|
inline |
| void cmnClassServicesBase::SetLogMask | ( | cmnLogMask | mask | ) |
Change the log mask for the class.
| mask | The log mask. |
| const std::type_info * cmnClassServicesBase::TypeInfoPointer | ( | void | ) | const |
Get the type_info corresponding to the registered class.