PixelLightAPI
.
|
Abstract class implementation base class. More...
#include <ClassImpl.h>
Public Member Functions | |
Class * | GetClass () const |
Return the pointer to the owner class instance wrapping this class implementation. | |
Protected Member Functions | |
PLCORE_API | ClassImpl (uint32 nModuleID, const String &sName, const String &sDescription, const String &sNamespace, const String &sBaseClass) |
Constructor. | |
virtual PLCORE_API | ~ClassImpl () |
Destructor. | |
PLCORE_API const Module * | GetModule () const |
Get module the class belongs to. | |
String | GetClassName () const |
Get full class name (with namespace) | |
String | GetBaseClassName () const |
Get full name of base class (with namespace) | |
String | GetName () const |
Get class name (without namespace) | |
String | GetDescription () const |
Get class description. | |
String | GetNamespace () const |
Get namespace. | |
PLCORE_API const Class * | GetBaseClass () const |
Get base class. | |
PLCORE_API bool | IsDerivedFrom (const Class &cBaseClass) const |
Check if class is derived from another class. | |
PLCORE_API bool | IsDerivedFrom (const String &sBaseClass) const |
Check if class is derived from another class. | |
const HashMap< String, String > & | GetProperties () const |
Get properties. | |
PLCORE_API void | AddProperty (const String &sName, const String &sValue) |
Add property. | |
virtual bool | IsDummy () const =0 |
Return whether or not the class implementation is a dummy used for delayed shared library loading. | |
virtual void | InitClass () const =0 |
Initialize class and class members. | |
virtual void | DeInitClass () const =0 |
De-Initialize class and class members. | |
virtual const List< VarDesc * > & | GetAttributes () const =0 |
Get attributes. | |
virtual const VarDesc * | GetAttribute (const String &sName) const =0 |
Get attribute. | |
virtual const List< FuncDesc * > & | GetMethods () const =0 |
Get methods. | |
virtual const FuncDesc * | GetMethod (const String &sName) const =0 |
Get method. | |
virtual const List< EventDesc * > & | GetSignals () const =0 |
Get signals. | |
virtual const EventDesc * | GetSignal (const String &sName) const =0 |
Get signal. | |
virtual const List < EventHandlerDesc * > & | GetSlots () const =0 |
Get slot. | |
virtual const EventHandlerDesc * | GetSlot (const String &sName) const =0 |
Get slot. | |
virtual bool | HasConstructor () const =0 |
Check if class has any constructors. | |
virtual bool | HasDefaultConstructor () const =0 |
Check if class has a default constructor. | |
virtual const List < ConstructorDesc * > & | GetConstructors () const =0 |
Get constructors. | |
virtual const ConstructorDesc * | GetConstructor (const String &sName) const =0 |
Get constructor. | |
virtual Object * | Create () const =0 |
Create object by using the default constructor. | |
virtual Object * | Create (const DynParams &cParams) const =0 |
Create object by using typed constructor parameters in order to identity the constructor automatically. | |
virtual Object * | Create (const String &sName, const DynParams &cParams) const =0 |
Create object by using a given constructor name and typed constructor parameters. | |
virtual Object * | Create (const String &sName, const String &sParams) const =0 |
Create object by using a given constructor name and typeless constructor parameters. | |
Protected Attributes | |
Class * | m_pClass |
String | m_sName |
String | m_sNamespace |
String | m_sClassName |
String | m_sDescription |
String | m_sBaseClass |
HashMap< String, String > | m_mapOwnProperties |
uint32 | m_nModuleID |
bool | m_bInitialized |
const Class * | m_pBaseClass |
HashMap< String, String > | m_mapProperties |
Abstract class implementation base class.
PLCORE_API PLCore::ClassImpl::ClassImpl | ( | uint32 | nModuleID, |
const String & | sName, | ||
const String & | sDescription, | ||
const String & | sNamespace, | ||
const String & | sBaseClass | ||
) | [protected] |
[in] | nModuleID | ID of owner module |
[in] | sName | Name |
[in] | sDescription | Description |
[in] | sNamespace | Namespace |
[in] | sBaseClass | Base class |
virtual PLCORE_API PLCore::ClassImpl::~ClassImpl | ( | ) | [protected, virtual] |
Destructor.
Class * PLCore::ClassImpl::GetClass | ( | ) | const [inline] |
Return the pointer to the owner class instance wrapping this class implementation.
PLCORE_API const Module* PLCore::ClassImpl::GetModule | ( | ) | const [protected] |
Get module the class belongs to.
String PLCore::ClassImpl::GetClassName | ( | ) | const [inline, protected] |
Get full class name (with namespace)
String PLCore::ClassImpl::GetBaseClassName | ( | ) | const [inline, protected] |
Get full name of base class (with namespace)
String PLCore::ClassImpl::GetName | ( | ) | const [inline, protected] |
Get class name (without namespace)
String PLCore::ClassImpl::GetDescription | ( | ) | const [inline, protected] |
Get class description.
String PLCore::ClassImpl::GetNamespace | ( | ) | const [inline, protected] |
Get namespace.
PLCORE_API const Class* PLCore::ClassImpl::GetBaseClass | ( | ) | const [protected] |
Get base class.
PLCORE_API bool PLCore::ClassImpl::IsDerivedFrom | ( | const Class & | cBaseClass | ) | const [protected] |
Check if class is derived from another class.
[in] | cBaseClass | Base class |
PLCORE_API bool PLCore::ClassImpl::IsDerivedFrom | ( | const String & | sBaseClass | ) | const [protected] |
Check if class is derived from another class.
[in] | sBaseClass | Base class name (with namespace) |
const HashMap< String, String > & PLCore::ClassImpl::GetProperties | ( | ) | const [inline, protected] |
Get properties.
PLCORE_API void PLCore::ClassImpl::AddProperty | ( | const String & | sName, |
const String & | sValue | ||
) | [protected] |
Add property.
[in] | sName | Property name |
[in] | sValue | Property value |
virtual bool PLCore::ClassImpl::IsDummy | ( | ) | const [protected, pure virtual] |
Return whether or not the class implementation is a dummy used for delayed shared library loading.
Implemented in PLCore::ClassReal, and PLCore::ClassDummy.
virtual void PLCore::ClassImpl::InitClass | ( | ) | const [protected, pure virtual] |
Initialize class and class members.
Implemented in PLCore::ClassReal, and PLCore::ClassDummy.
virtual void PLCore::ClassImpl::DeInitClass | ( | ) | const [protected, pure virtual] |
De-Initialize class and class members.
Implemented in PLCore::ClassReal, and PLCore::ClassDummy.
virtual const List<VarDesc*>& PLCore::ClassImpl::GetAttributes | ( | ) | const [protected, pure virtual] |
Get attributes.
Implemented in PLCore::ClassReal, and PLCore::ClassDummy.
virtual const VarDesc* PLCore::ClassImpl::GetAttribute | ( | const String & | sName | ) | const [protected, pure virtual] |
Get attribute.
[in] | sName | Attribute name |
Implemented in PLCore::ClassReal, and PLCore::ClassDummy.
virtual const List<FuncDesc*>& PLCore::ClassImpl::GetMethods | ( | ) | const [protected, pure virtual] |
Get methods.
Implemented in PLCore::ClassReal, and PLCore::ClassDummy.
virtual const FuncDesc* PLCore::ClassImpl::GetMethod | ( | const String & | sName | ) | const [protected, pure virtual] |
Get method.
[in] | sName | Method name |
Implemented in PLCore::ClassReal, and PLCore::ClassDummy.
virtual const List<EventDesc*>& PLCore::ClassImpl::GetSignals | ( | ) | const [protected, pure virtual] |
Get signals.
Implemented in PLCore::ClassReal, and PLCore::ClassDummy.
virtual const EventDesc* PLCore::ClassImpl::GetSignal | ( | const String & | sName | ) | const [protected, pure virtual] |
Get signal.
[in] | sName | Signal name |
Implemented in PLCore::ClassReal, and PLCore::ClassDummy.
virtual const List<EventHandlerDesc*>& PLCore::ClassImpl::GetSlots | ( | ) | const [protected, pure virtual] |
Get slot.
Implemented in PLCore::ClassReal, and PLCore::ClassDummy.
virtual const EventHandlerDesc* PLCore::ClassImpl::GetSlot | ( | const String & | sName | ) | const [protected, pure virtual] |
Get slot.
[in] | sName | Slot name |
Implemented in PLCore::ClassReal, and PLCore::ClassDummy.
virtual bool PLCore::ClassImpl::HasConstructor | ( | ) | const [protected, pure virtual] |
Check if class has any constructors.
Implemented in PLCore::ClassReal, and PLCore::ClassDummy.
virtual bool PLCore::ClassImpl::HasDefaultConstructor | ( | ) | const [protected, pure virtual] |
Check if class has a default constructor.
Implemented in PLCore::ClassReal, and PLCore::ClassDummy.
virtual const List<ConstructorDesc*>& PLCore::ClassImpl::GetConstructors | ( | ) | const [protected, pure virtual] |
Get constructors.
Implemented in PLCore::ClassReal, and PLCore::ClassDummy.
virtual const ConstructorDesc* PLCore::ClassImpl::GetConstructor | ( | const String & | sName | ) | const [protected, pure virtual] |
Get constructor.
[in] | sName | Constructor name |
Implemented in PLCore::ClassReal, and PLCore::ClassDummy.
virtual Object* PLCore::ClassImpl::Create | ( | ) | const [protected, pure virtual] |
Create object by using the default constructor.
Implemented in PLCore::ClassReal, and PLCore::ClassDummy.
virtual Object* PLCore::ClassImpl::Create | ( | const DynParams & | cParams | ) | const [protected, pure virtual] |
Create object by using typed constructor parameters in order to identity the constructor automatically.
[in] | cParams | Constructor parameters |
Implemented in PLCore::ClassReal, and PLCore::ClassDummy.
virtual Object* PLCore::ClassImpl::Create | ( | const String & | sName, |
const DynParams & | cParams | ||
) | const [protected, pure virtual] |
Create object by using a given constructor name and typed constructor parameters.
[in] | sName | Constructor name |
[in] | cParams | Constructor parameters |
Implemented in PLCore::ClassReal, and PLCore::ClassDummy.
virtual Object* PLCore::ClassImpl::Create | ( | const String & | sName, |
const String & | sParams | ||
) | const [protected, pure virtual] |
Create object by using a given constructor name and typeless constructor parameters.
[in] | sName | Constructor name |
[in] | sParams | Constructor parameters |
Implemented in PLCore::ClassReal, and PLCore::ClassDummy.
Class* PLCore::ClassImpl::m_pClass [protected] |
Class instance wrapping this class implementation (can be a null pointer, set and managed by the class manager)
String PLCore::ClassImpl::m_sName [protected] |
Name of class
String PLCore::ClassImpl::m_sNamespace [protected] |
Namespace of class
String PLCore::ClassImpl::m_sClassName [protected] |
Name of class (with namespace)
String PLCore::ClassImpl::m_sDescription [protected] |
Description of class
String PLCore::ClassImpl::m_sBaseClass [protected] |
Name of base class (with namespace)
HashMap<String, String> PLCore::ClassImpl::m_mapOwnProperties [protected] |
Hash map of properties (name -> value)
uint32 PLCore::ClassImpl::m_nModuleID [mutable, protected] |
ID of owner module
bool PLCore::ClassImpl::m_bInitialized [mutable, protected] |
Is the class initialized?
const Class* PLCore::ClassImpl::m_pBaseClass [mutable, protected] |
Pointer to base class
HashMap<String, String> PLCore::ClassImpl::m_mapProperties [mutable, protected] |
Hash map of properties (name -> value)
|