omegalib  13.1
omicron::HeartbeatService Class Reference

HearthbeatService implements a very simple event service, that sends out update events at a predefined rate. More...

#include <HeartbeatService.h>

Public Member Functions

 HeartbeatService ()
 
virtual void setup (Setting &settings)
 
virtual void poll ()
 
- Public Member Functions inherited from omicron::Service
 Service ()
 
int getServiceId ()
 
virtual ~Service ()
 
ServiceManagergetManager ()
 
String getName ()
 
bool isInitialized ()
 
bool isDebugEnabled ()
 Returns true if debug mode is enabled for this service. More...
 
ServicePollPriority getPollPriority ()
 
void setPollPriority (ServicePollPriority value)
 
virtual void initialize ()
 
virtual void start ()
 
virtual void stop ()
 
virtual void dispose ()
 
void lockEvents ()
 
void unlockEvents ()
 
EventwriteHead ()
 
EventreadHead ()
 
EventreadTail ()
 
EventgetEvent (int index)
 
void doSetup (ServiceManager *mng, Setting &settings)
 
void doInitialize (ServiceManager *sm, int serviceId)
 
- Public Member Functions inherited from omicron::ReferenceType
 ReferenceType ()
 
virtual ~ReferenceType ()
 
void ref ()
 
void unref ()
 
long refCount ()
 

Static Public Member Functions

static HeartbeatServiceNew ()
 Allocator function (will be used to register the service inside SystemManager) More...
 
- Static Public Member Functions inherited from omicron::ReferenceType
static void printObjCounts ()
 

Additional Inherited Members

- Public Types inherited from omicron::Service
enum  ServiceType {
  Pointer = EventBase::ServiceTypePointer, Mocap = EventBase::ServiceTypeMocap, Keyboard = EventBase::ServiceTypeKeyboard, Controller = EventBase::ServiceTypeController,
  Ui = EventBase::ServiceTypeUi, Generic = EventBase::ServiceTypeGeneric, Brain = EventBase::ServiceTypeBrain, Wand = EventBase::ServiceTypeWand,
  Speech = EventBase::ServiceTypeSpeech
}
 This enumeration is kept for compatibility reason and may be removed in the future. More...
 
enum  ServicePollPriority { PollFirst, PollNormal, PollLast }
 
- Static Protected Attributes inherited from omicron::ReferenceType
static List< ReferenceType * > mysObjList
 

Detailed Description

HearthbeatService implements a very simple event service, that sends out update events at a predefined rate.

HearthbeatService main function is to test the omegalib event distribution system. It can also be used as an example and a starting point to develop custom event services.

+ Inheritance diagram for omicron::HeartbeatService:

Constructor & Destructor Documentation

omicron::HeartbeatService::HeartbeatService ( )

Member Function Documentation

static HeartbeatService* omicron::HeartbeatService::New ( )
inlinestatic

Allocator function (will be used to register the service inside SystemManager)

virtual void omicron::HeartbeatService::poll ( )
virtual

Reimplemented from omicron::Service.

virtual void omicron::HeartbeatService::setup ( Setting settings)
virtual

Reimplemented from omicron::Service.


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