Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

ObjectManager Class Reference

The ObjectManager is the implementation of the Object Factory in the Application Manager to support management functions. More...

#include <ObjectManager.h>

Inheritance diagram for ObjectManager:

IObjManager List of all members.

Public Methods

 ObjectManager ( ISvcLocator* svclocator )
virtual ~ObjectManager ()
virtual unsigned long addRef ()
virtual unsigned long release ()
virtual StatusCode queryInterface (const IID& iid, void** pinterface)
virtual StatusCode declareObjFactory ( const IFactory& factory )
virtual bool existsObjFactory (const std::string& objtype ) const
virtual const IFactory* objFactory (const std::string& objtype ) const
virtual ObjIterator objBegin ()
virtual ObjIterator objEnd ()

Private Attributes

unsigned long m_refcount
 Reference counter. More...

ISvcLocatorm_svclocator
 Service locator reference. More...

IMessageSvcm_msgsvc
 Message Service. More...

Container* m_objects
 Container of factory objects. More...


Detailed Description

The ObjectManager is the implementation of the Object Factory in the Application Manager to support management functions.

Clients use this to declare abstract Object factories, and to create concrete instances of Objects.

Author(s):
Markus Frank

Definition at line 20 of file ObjectManager.h.


Constructor & Destructor Documentation

ObjectManager::ObjectManager ( ISvcLocator * svclocator )
 

Definition at line 14 of file ObjectManager.cpp.

ObjectManager::~ObjectManager ( ) [virtual]
 

Definition at line 22 of file ObjectManager.cpp.


Member Function Documentation

unsigned long ObjectManager::addRef ( ) [virtual]
 

Definition at line 27 of file ObjectManager.cpp.

Referenced by queryInterface().

StatusCode ObjectManager::declareObjFactory ( const IFactory & factory ) [virtual]
 

Definition at line 60 of file ObjectManager.cpp.

bool ObjectManager::existsObjFactory ( const std::string & objtype ) const [virtual]
 

Definition at line 84 of file ObjectManager.cpp.

ObjIterator ObjectManager::objBegin ( ) [inline, virtual]
 

Definition at line 48 of file ObjectManager.h.

ObjIterator ObjectManager::objEnd ( ) [inline, virtual]
 

Definition at line 52 of file ObjectManager.h.

const IFactory * ObjectManager::objFactory ( const std::string & objtype ) const [virtual]
 

Definition at line 95 of file ObjectManager.cpp.

StatusCode ObjectManager::queryInterface ( const IID & iid,
void ** pinterface ) [virtual]
 

Definition at line 42 of file ObjectManager.cpp.

unsigned long ObjectManager::release ( ) [virtual]
 

Definition at line 33 of file ObjectManager.cpp.


Member Data Documentation

IMessageSvc * ObjectManager::m_msgsvc [private]
 

Message Service.

Definition at line 23 of file ObjectManager.h.

Container * ObjectManager::m_objects [private]
 

Container of factory objects.

Definition at line 24 of file ObjectManager.h.

unsigned long ObjectManager::m_refcount [private]
 

Reference counter.

Definition at line 21 of file ObjectManager.h.

ISvcLocator * ObjectManager::m_svclocator [private]
 

Service locator reference.

Definition at line 22 of file ObjectManager.h.


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 12:22:34 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000