PixelLightAPI
.
|
Description and interface for classes. More...
#include <Class.h>
Public Member Functions | |
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. | |
const Class * | GetBaseClass () const |
Get base class. | |
bool | IsDerivedFrom (const Class &cBaseClass) const |
Check if class is derived from another class. | |
bool | IsDerivedFrom (const String &sBaseClass) const |
Check if class is derived from another class. | |
PLCORE_API void | GetDerivedClasses (List< const Class * > &lstClasses) const |
Get derived classes. | |
const HashMap< String, String > & | GetProperties () const |
Get properties. | |
const List< VarDesc * > & | GetAttributes () const |
Get attributes. | |
const VarDesc * | GetAttribute (const String &sName) const |
Get attribute. | |
const List< FuncDesc * > & | GetMethods () const |
Get methods. | |
const FuncDesc * | GetMethod (const String &sName) const |
Get method. | |
const List< EventDesc * > & | GetSignals () const |
Get signals. | |
const EventDesc * | GetSignal (const String &sName) const |
Get signal. | |
const List< EventHandlerDesc * > & | GetSlots () const |
Get slot. | |
const EventHandlerDesc * | GetSlot (const String &sName) const |
Get slot. | |
bool | HasConstructor () const |
Check if class has any constructors. | |
bool | HasDefaultConstructor () const |
Check if class has a default constructor. | |
const List< ConstructorDesc * > & | GetConstructors () const |
Get constructors. | |
const ConstructorDesc * | GetConstructor (const String &sName) const |
Get constructor. | |
Object * | Create () const |
Create object by using the default constructor. | |
Object * | Create (const DynParams &cParams) const |
Create object by using typed constructor parameters in order to identity the constructor automatically. | |
Object * | Create (const String &sName, const DynParams &cParams) const |
Create object by using a given constructor name and typed constructor parameters. | |
Object * | Create (const String &sName, const String &sParams) const |
Create object by using a given constructor name and typeless constructor parameters. |
Description and interface for classes.
const Module * PLCore::Class::GetModule | ( | ) | const [inline] |
Get module the class belongs to.
String PLCore::Class::GetClassName | ( | ) | const [inline] |
Get full class name (with namespace)
String PLCore::Class::GetBaseClassName | ( | ) | const [inline] |
Get full name of base class (with namespace)
String PLCore::Class::GetName | ( | ) | const [inline] |
Get class name (without namespace)
Get class name.
String PLCore::Class::GetDescription | ( | ) | const [inline] |
Get class description.
String PLCore::Class::GetNamespace | ( | ) | const [inline] |
Get namespace.
const Class * PLCore::Class::GetBaseClass | ( | ) | const [inline] |
Get base class.
bool PLCore::Class::IsDerivedFrom | ( | const Class & | cBaseClass | ) | const [inline] |
Check if class is derived from another class.
[in] | cBaseClass | Base class |
bool PLCore::Class::IsDerivedFrom | ( | const String & | sBaseClass | ) | const [inline] |
Check if class is derived from another class.
[in] | sBaseClass | Base class name (with namespace) |
PLCORE_API void PLCore::Class::GetDerivedClasses | ( | List< const Class * > & | lstClasses | ) | const |
Get derived classes.
[out] | lstClasses | Receives the list of derived classes, given list is not cleared before adding new elements, do not destroy the returned instances! |
const HashMap< String, String > & PLCore::Class::GetProperties | ( | ) | const [inline] |
Get properties.
const List< VarDesc * > & PLCore::Class::GetAttributes | ( | ) | const [inline] |
Get attributes.
const VarDesc * PLCore::Class::GetAttribute | ( | const String & | sName | ) | const [inline] |
const List< FuncDesc * > & PLCore::Class::GetMethods | ( | ) | const [inline] |
Get methods.
const FuncDesc * PLCore::Class::GetMethod | ( | const String & | sName | ) | const [inline] |
const List< EventDesc * > & PLCore::Class::GetSignals | ( | ) | const [inline] |
Get signals.
const EventDesc * PLCore::Class::GetSignal | ( | const String & | sName | ) | const [inline] |
const List< EventHandlerDesc * > & PLCore::Class::GetSlots | ( | ) | const [inline] |
const EventHandlerDesc * PLCore::Class::GetSlot | ( | const String & | sName | ) | const [inline] |
bool PLCore::Class::HasConstructor | ( | ) | const [inline] |
Check if class has any constructors.
bool PLCore::Class::HasDefaultConstructor | ( | ) | const [inline] |
Check if class has a default constructor.
const List< ConstructorDesc * > & PLCore::Class::GetConstructors | ( | ) | const [inline] |
Get constructors.
const ConstructorDesc * PLCore::Class::GetConstructor | ( | const String & | sName | ) | const [inline] |
Get constructor.
[in] | sName | Constructor name |
Object * PLCore::Class::Create | ( | ) | const [inline] |
Create object by using the default constructor.
Object * PLCore::Class::Create | ( | const DynParams & | cParams | ) | const [inline] |
Create object by using typed constructor parameters in order to identity the constructor automatically.
[in] | cParams | Constructor parameters |
Object * PLCore::Class::Create | ( | const String & | sName, |
const DynParams & | cParams | ||
) | const [inline] |
Create object by using a given constructor name and typed constructor parameters.
[in] | sName | Constructor name |
[in] | cParams | Constructor parameters |
Object * PLCore::Class::Create | ( | const String & | sName, |
const String & | sParams | ||
) | const [inline] |
Create object by using a given constructor name and typeless constructor parameters.
[in] | sName | Constructor name |
[in] | sParams | Constructor parameters |
|