Fovia's C++ Client/Server API
|
Public Member Functions | |
virtual signed int | AskInterface (const BGUID *piid, IRoot **ppr)=0 |
virtual signed int | CreateAggObject (const BGUID *clsid, const BGUID *piid, int *pReserved, IRoot **ppr)=0 |
virtual signed int | CreateObject (const BGUID *clsid, const BGUID *piid, IRoot **ppr)=0 |
template<class T > | |
signed int | CreateObject (const BGUID *clsid, T **pp) |
virtual signed int | DecRef ()=0 |
virtual signed int | GetAllocator (int id, IAllocator **pp)=0 |
virtual signed int | GetLibraryLogger (ILibraryLogger **pp)=0 |
virtual signed int | IncRef ()=0 |
virtual signed int | SetAllocator (int id, IAllocator *p)=0 |
virtual signed int | SetLibraryLogger (ILibraryLogger *p)=0 |
![]() | |
template<class T > | |
signed int | AskInterface (T **pp) |
Library interface. An implementation of this interface should be the starting point for any BCOM-based library. Using this interface, a user can create objects exposed by the library using CreateObject() as well as set and get allocators for the library using SetAllocator() and GetAllocator().
|
pure virtual |
Reserved for future use
|
pure virtual |
Creates an object with the specified CLSID and IID. The templated CreateObject is probably the most convenient form to use.
clsid | Class ID for the objcet |
piid | IID for the object |
ppr | Pointer to an interface pointer that will receive the location of the new object. |
|
inline |
Function template for CreateObject. It will determine the IID automatically via GET_INTERFACE_BGUID().
|
pure virtual |
Decreases the reference count on this object by 1. If the reference count reaches 0, the object is deallocated.
Implements IRoot.
|
pure virtual |
Gets an allocator with the specified id and returns it in the interface pointer at address pp.
id | The library-specific id that identifies which allocator is being retreived. |
pp | The address of the variable to get the interface pointer. |
|
pure virtual |
Gets the ILibraryLogger class.
pp | The output ILibraryLogger class. |
|
pure virtual |
Increases the reference count on this object by 1. You do not need to call this after an object is first created. It is 1 by default.
Implements IRoot.
|
pure virtual |
Sets an allocator with the specified id.
id | The library-specific id that identifies which allocator is being set. |
p | The new allocator to use for allocator ID id. |
|
pure virtual |
Sets the ILibraryLogger class.
p | The input ILibraryLogger class. |