LAMA
lama::ContextManager Class Reference

Base class for manager of context objects. More...

#include <ContextManager.hpp>

Inheritance diagram for lama::ContextManager:

Public Member Functions

virtual ~ContextManager ()
 Destructor.
virtual ContextPtr getContext (int deviceNr)=0
 This routine must be implemented by each context manager individually.

Protected Member Functions

 ContextManager (ContextType type)
 Constructor for a context manager.
 LAMA_LOG_DECL_STATIC_LOGGER (logger)
void registerFactory ()
 This method sets the context manager as responsible for its context type in the factory.

Private Attributes

ContextType mContextType
 context type for which manager is responsible

Detailed Description

Base class for manager of context objects.

Each derived class of Context should have a derived class counterpart of derived class of ContextManager.

A context manager registers via the context type to the factory so that the factory can provide a context for the corresponding type.

The concept of manager and factory provides a mechanism for extendability with new context classes and types.


Constructor & Destructor Documentation

Destructor.

References mContextType.

Constructor for a context manager.

param[in] type context type for which the context manager will be responsible

The constructor adds itself to the context factory.


Member Function Documentation

virtual ContextPtr lama::ContextManager::getContext ( int  deviceNr) [pure virtual]

Field Documentation

context type for which manager is responsible

Referenced by registerFactory(), and ~ContextManager().


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