Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

upf::IClassInfo Interface Reference

import "IClassInfo.idl";

Inheritance diagram for upf::IClassInfo:

Inheritance graph
[legend]
List of all members.

Detailed Description

RTTI information about a class.

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());

See also:
upf::IObject::getClassID, upf::IManager::getClassInfo


Public Types

typedef sequence< PropertyProperties
 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.


Member Function Documentation

Properties upf::IClassInfo::getProperties  
 

Returns all properties defined for this class.

See also:
getProperty

string upf::IClassInfo::getProperty in string    name
 

Returns value of class property name.

If there's no such property associated with this class, returns empty string.

See also:
UPF_PROPERTY, getProperties, Properties


Generated on Wed Jan 15 23:10:55 2003 for Universal Plugins Framework by doxygen1.2.18