import "IClassInfo.idl";
Inheritance diagram for upf::IClassInfo:
This class provides means for runtime type indentification within UPF. RTTI is cross-language and provides information such as class name, implemented interfaces, associated properties and factory object.
The standard way of obtaining class info object of an object is to first get object's CID and then query UPF manager for class info:
// C++ example: Ptr<IManager> mng = upf::getManager(); Ptr<IClassInfo> classInfo = mng->getClassInfo(obj->getClassID());
Public Types | |
typedef sequence< Property > | Properties |
List of properties, as returned by getProperties. | |
Public Methods | |
string | getName () |
Returns human-readable name of the class (in dotted notation, e.g. upf.IClassInfo) . | |
CID | getCID () |
Returns upf::CID value identifying this class. | |
IClassFactory | getFactory () |
Returns factory object that can be used to create instances of this class. | |
IIDsList | getInterfaces () |
Returns list of all interfaces implemented by the class. | |
boolean | implementsInterface (in IID iface) |
Returns true if the class implements given interface. | |
string | getProperty (in string name) |
Returns value of class property name. | |
Properties | getProperties () |
Returns all properties defined for this class. |
|
Returns all properties defined for this class.
|
|
Returns value of class property name. If there's no such property associated with this class, returns empty string.
|