Compounds | |
interface | IClassFactory |
Class factory. More... | |
interface | IClassInfo |
RTTI information about a class. More... | |
interface | IInterfaceInfo |
RTTI information about interface. More... | |
interface | ILoader |
upf::ILoader interface is used to load classes from external modules and to provide bindings to other languages. More... | |
interface | ILog |
Errors logging interface. More... | |
interface | IManager |
UPF management class. More... | |
interface | INativeTypeInfo |
RTTI information about native types. More... | |
interface | IObject |
Base interface for all UPF interfaces. More... | |
interface | IServiceChangeListener |
Listener that is notified when service provider changes. More... | |
interface | IServiceManager |
Service manager. More... | |
interface | ITypedefInfo |
RTTI information about typedef. More... | |
interface | ITypeInfo |
Type information about particular type. More... | |
interface | IWriteableClassInfo |
struct | Property |
Class property record. More... | |
class | Ptr |
UPF's smart pointer. More... | |
Typedefs | |
typedef upf_InterfaceData | InterfacePtr |
typedef upf_IID | IID |
Interface identificator. | |
typedef unsigned long | CID |
Class identifier. | |
typedef sequence< CID > | CIDsList |
Sequence of ClassID values. | |
typedef sequence< IID > | IIDsList |
Sequence of upf::IID values. | |
Functions | |
template<class T> T * | queryInterface (IObject *obj) |
bool | init () |
Initializes UPF. | |
bool | done () |
Shuts down UPF. | |
Ptr< IManager > | getManager () |
Returns pointer to the IManager singleton. | |
Ptr< IServiceManager > | getServiceManager () |
Returns pointer to the IServiceManager singleton. | |
CID | getCID (const char *classname) |
Translates string class name to CID identifier. | |
Ptr< IObject > | create (CID classID) |
Creates instance of class with CID equal to classID. | |
template<class Interface> Ptr< IObject > | create () |
Creates instance of object implementing Interface. | |
Ptr< IObject > | create (const char *classname) |
Creates instance of class with given class name. | |
Ptr< IObject > | create (const std::string &classname) |
Creates instance of class with given class name. | |
Variables | |
const string | SERVICE_LOG = "/upf/log" |
Name of the logging service used by UPF (always present). | |
const long | SERVICE_CAN_UNBIND = 0x0001 |
The service can be unbinded (removed). | |
const long | SERVICE_CAN_REBIND = 0x0002 |
The service can be rebinded (replaced by another non-NULL instance). |
|
Class identifier. This is unique integer that identifies particular class. Unlike IIDs, CIDs are assigned dynamically and are not guaranteed to be same during all executions of your application.
|
|
Interface identificator.
IID value is passed to IObject::queryInterface and uniquely identifies inteface and its version. IID is generated from interface name (as specified in IDL description, e.g.
|
|
For internal use only. Native type used internally to refer to interface provided by object.
|
|
Creates instance of object implementing Interface. This prototype is only available for interfaces that were defined with pragma single_impl in IDL file.
|
|
Creates instance of class with CID equal to classID. You can obtain classID by calling getCID, or you can pass the classname as argument to create.
|
|
Shuts down UPF. Must be called exactly once by the application unless upf::init failed.
|
|
Translates string class name to CID identifier.
|
|
Returns pointer to the IManager singleton. IManager instance is used to access UPF's global state (e.g. class info and type info repositories, IID to interface name mappings etc.).
|
|
Returns pointer to the IServiceManager singleton. IServiceManager instance is used to access UPF's services (i.e. named objects).
|
|
Initializes UPF. Must be called exactly once by the application.
|
|
For internal use only. Queries the object for given interface.
|
|
Name of the logging service used by UPF (always present). You can rebind this service in order to provide own way of reporting UPF errors.
|