Base class for class services.
More...
#include <cmnClassServicesBase.h>
Base class for class services.
- See Also
- cmnClassServices
Type used to refer to cmnGenericObject by pointer, convenient to pass a pointer by reference
Constructor. Sets the name of the class and the Level of Detail setting for the class.
- Parameters
-
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. |
virtual cmnClassServicesBase::~cmnClassServicesBase |
( |
| ) |
|
|
inlinevirtual |
Virtual destructor. Does nothing.
virtual bool cmnClassServicesBase::CopyConstructorAvailable |
( |
void |
| ) |
const |
|
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.
- 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.
Implemented in cmnClassServices< _dynamicCreation, _class, _argType >.
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.
Implemented in cmnClassServices< _dynamicCreation, _class, _argType >.
virtual cmnGenericObject* cmnClassServicesBase::CreateArray |
( |
size_t |
size | ) |
const |
|
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.
- 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.
Implemented in cmnClassServices< _dynamicCreation, _class, _argType >.
virtual bool cmnClassServicesBase::DefaultConstructorAvailable |
( |
void |
| ) |
const |
|
pure virtual |
virtual bool cmnClassServicesBase::DeleteArray |
( |
generic_pointer & |
data, |
|
|
size_t & |
size |
|
) |
| const |
|
pure virtual |
const std::string& cmnClassServicesBase::GetLibraryName |
( |
void |
| ) |
const |
Get the name of library likely to contain the symbol.
const cmnLogMask& cmnClassServicesBase::GetLoD |
( |
void |
| ) |
const |
|
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.
- Returns
- The log Level of Detail.
const std::string& cmnClassServicesBase::GetName |
( |
void |
| ) |
const |
Get the name associated with the class.
- Returns
- The name of the class as a string.
virtual size_t cmnClassServicesBase::GetSize |
( |
void |
| ) |
const |
|
pure virtual |
virtual bool cmnClassServicesBase::HasDynamicCreation |
( |
void |
| ) |
const |
|
pure virtual |
template<class _Parent >
bool cmnClassServicesBase::IsDerivedFrom |
( |
void |
| ) |
const |
|
inline |
virtual bool cmnClassServicesBase::OneArgConstructorAvailable |
( |
void |
| ) |
const |
|
pure virtual |
void cmnClassServicesBase::SetLogMask |
( |
cmnLogMask |
mask | ) |
|
Change the log mask for the class.
- Parameters
-
const std::type_info* cmnClassServicesBase::TypeInfoPointer |
( |
void |
| ) |
const |
Get the type_info corresponding to the registered class.
- Returns
- Pointer to the class type_info as defined by C++ RTTI.
The documentation for this class was generated from the following file: