omegalib  13.1
omicron::ServiceManager Class Reference

#include <ServiceManager.h>

Public Member Functions

 ServiceManager ()
 
 ~ServiceManager ()
 
void setupAndStart (Config *cfg)
 
void setup (Setting &settings)
 
void initialize ()
 
void start ()
 
void stop ()
 
void dispose ()
 
void poll ()
 
void registerService (const String &svcName, ServiceAllocator creationFunc)
 Service management. More...
 
ServiceAllocator findServiceAllocator (const String &svcName)
 Find an input service allocator given the input service name. More...
 
void addService (Service *service)
 Add a preinitialized service to the manager. More...
 
ServiceaddService (const String &svcClass)
 Add a new service to the manager. More...
 
ServicefindService (const String &svcName)
 
template<typename T >
T * findService (const String &svcName)
 
ServicegetService (int id)
 
template<typename T >
T * getService (int id)
 
int getAvailableEvents ()
 Event management. More...
 
int getDroppedEvents ()
 
void resetDroppedEvents ()
 
int getEvents (Event *ptr, int maxEvents)
 
EventgetEvent (int index)
 
void clearEvents ()
 
void lockEvents ()
 
void unlockEvents ()
 
EventwriteHead ()
 
EventreadHead ()
 
EventreadTail ()
 

Static Public Attributes

static const int MaxEvents
 

Friends

class Service
 

Constructor & Destructor Documentation

omicron::ServiceManager::ServiceManager ( )
omicron::ServiceManager::~ServiceManager ( )

Member Function Documentation

void omicron::ServiceManager::addService ( Service service)

Add a preinitialized service to the manager.

Service* omicron::ServiceManager::addService ( const String svcClass)

Add a new service to the manager.

void omicron::ServiceManager::clearEvents ( )
void omicron::ServiceManager::dispose ( )
Service * omicron::ServiceManager::findService ( const String svcName)
inline
template<typename T >
T * omicron::ServiceManager::findService ( const String svcName)
inline
ServiceAllocator omicron::ServiceManager::findServiceAllocator ( const String svcName)

Find an input service allocator given the input service name.

See registerInputService for additional information.

int omicron::ServiceManager::getAvailableEvents ( )
inline

Event management.

int omicron::ServiceManager::getDroppedEvents ( )
inline
Event* omicron::ServiceManager::getEvent ( int  index)
int omicron::ServiceManager::getEvents ( Event ptr,
int  maxEvents 
)
Service * omicron::ServiceManager::getService ( int  id)
inline
template<typename T >
T * omicron::ServiceManager::getService ( int  id)
inline
void omicron::ServiceManager::initialize ( )
void omicron::ServiceManager::lockEvents ( )
void omicron::ServiceManager::poll ( )
Event* omicron::ServiceManager::readHead ( )
Event* omicron::ServiceManager::readTail ( )
void omicron::ServiceManager::registerService ( const String svcName,
ServiceAllocator  creationFunc 
)

Service management.

void omicron::ServiceManager::resetDroppedEvents ( )
inline
void omicron::ServiceManager::setup ( Setting settings)
void omicron::ServiceManager::setupAndStart ( Config cfg)
void omicron::ServiceManager::start ( )
void omicron::ServiceManager::stop ( )
void omicron::ServiceManager::unlockEvents ( )
Event* omicron::ServiceManager::writeHead ( )

Friends And Related Function Documentation

friend class Service
friend

Member Data Documentation

const int omicron::ServiceManager::MaxEvents
static

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