WvStreams
Public Member Functions | List of all members
XPLC Class Reference

The XPLC helper class. More...

#include <xplc/xplc.h>

Public Member Functions

 XPLC (IServiceManager *_servmgr)
 Create an XPLC object using an existing service manager reference.
 
void addModuleDirectory (const char *directory)
 Adds a directory to the module loader path.
 
IObjectget (const UUID &uuid)
 Obtain an XPLC object.
 
template<class Interface >
Interface * get (const UUID &uuid)
 Templated variant of XPLC::get() that will do a getInterface() for you.
 
IObjectcreate (const UUID &cid)
 Object creation helper.
 
template<class Interface >
Interface * create (const UUID &cid)
 Templated variant of XPLC::create() that will do a getInterface() for you.
 
IObjectcreate (const char *)
 Object creation helper that operates from a moniker.
 
template<class Interface >
Interface * create (const char *aMoniker)
 Templated variant of XPLC::create(const char*) that will do a getInterface() for you.
 

Detailed Description

The XPLC helper class.

This class is part of the XPLC C++ binding in order to provide a more natural C++ feel to the use of XPLC.

Definition at line 55 of file xplc.h.

Constructor & Destructor Documentation

◆ XPLC() [1/2]

XPLC::XPLC ( )
inline

Definition at line 59 of file xplc.h.

◆ XPLC() [2/2]

XPLC::XPLC ( IServiceManager _servmgr)
inline

Create an XPLC object using an existing service manager reference.

Definition at line 64 of file xplc.h.

Member Function Documentation

◆ addModuleDirectory()

void XPLC::addModuleDirectory ( const char *  directory)

Adds a directory to the module loader path.

Definition at line 39 of file xplc.cc.

◆ get() [1/2]

IObject * XPLC::get ( const UUID uuid)
inline

Obtain an XPLC object.

Obtains an object with the provided UUID from the service manager.

Definition at line 75 of file xplc.h.

◆ get() [2/2]

template<class Interface >
Interface * XPLC::get ( const UUID uuid)
inline

Templated variant of XPLC::get() that will do a getInterface() for you.

Definition at line 83 of file xplc.h.

◆ create() [1/4]

IObject * XPLC::create ( const UUID cid)

Object creation helper.

Obtains an object with the provided UUID from the service manager, tries to get the IFactory interface from the object and calls its createObject() method.

Definition at line 53 of file xplc.cc.

Referenced by create(), and create().

◆ create() [2/4]

template<class Interface >
Interface * XPLC::create ( const UUID cid)
inline

Templated variant of XPLC::create() that will do a getInterface() for you.

Definition at line 98 of file xplc.h.

References create().

◆ create() [3/4]

IObject * XPLC::create ( const char *  aMoniker)

Object creation helper that operates from a moniker.

Works like XPLC::create(const UUID&), but finds the object using a moniker instead.

Definition at line 65 of file xplc.cc.

◆ create() [4/4]

template<class Interface >
Interface * XPLC::create ( const char *  aMoniker)
inline

Templated variant of XPLC::create(const char*) that will do a getInterface() for you.

Definition at line 113 of file xplc.h.

References create().


The documentation for this class was generated from the following files: