dmIGetService< _Interface > Class Template Reference
[Using modules]

Wrapper for accessing instance of resident modules. More...

#include <daim_interfaces.h>

List of all members.


Detailed Description

template<class _Interface>
class dmIGetService< _Interface >

Wrapper for accessing instance of resident modules.

Define a Resident Service as a class inherited from the interface given as template parameter. Wrap a CCI handle from the resident module instance list. The urn parameter specify the resident group to wich the instance is related, default is "daim://". Note that the returned instance may be shared among several objects and it is better not to keep the returned instance out of the scope where it is used.

the Service object expect to get an object for which AddRef() has bee called and it will call Release() on destruction.

ex :

    dmIGetService<dmIMyClass> _anInstance(urn); // Retrieve a shared instance of dmIMyClass
    // use it...


Generated on Tue May 9 12:34:57 2006 for Daim Library Module Set by  doxygen 1.4.6-NO