fesa::OnDemandEventSource Class Reference

This class extends the AbstractEventSource class to provide a mechanism that allows clients to fire real time actions in a server/RT-action. The sending action puts a message in a message queue. The OnDemandEventSource class reads this message from the queue and fires a RTEvent. More...

#include <OnDemandEventSource.h>

Inheritance diagram for fesa::OnDemandEventSource:
fesa::AbstractEventSource fesa::Thread

List of all members.

Public Member Functions

 OnDemandEventSource (std::string name, boost::shared_ptr< OnDemandConsumer > eventConsumer)
virtual ~OnDemandEventSource ()

Private Member Functions

void connect (boost::shared_ptr< fesa::EventElement > &eventElement)
 Connects the new discrete event source. It is up to each derived event source to perform the right actions to connect the event.

Exceptions:
FesaException. 

RTEventwait ()
 returns the RT event or NULL if the message is invalid

Private Attributes

boost::shared_ptr
< OnDemandConsumer
eventConsumer_
 used to requests messages from the server side

Detailed Description

This class extends the AbstractEventSource class to provide a mechanism that allows clients to fire real time actions in a server/RT-action. The sending action puts a message in a message queue. The OnDemandEventSource class reads this message from the queue and fires a RTEvent.

Definition at line 22 of file OnDemandEventSource.h.


Constructor & Destructor Documentation

fesa::OnDemandEventSource::OnDemandEventSource ( std::string  name,
boost::shared_ptr< OnDemandConsumer eventConsumer 
)

Definition at line 25 of file OnDemandEventSource.cpp.

References fesa::AbstractEventSource::disable().

fesa::OnDemandEventSource::~OnDemandEventSource (  )  [virtual]

Definition at line 32 of file OnDemandEventSource.cpp.


Member Function Documentation

void fesa::OnDemandEventSource::connect ( boost::shared_ptr< fesa::EventElement > &  eventElement  )  [private, virtual]

Connects the new discrete event source. It is up to each derived event source to perform the right actions to connect the event.

Exceptions:
FesaException. 

Implements fesa::AbstractEventSource.

Definition at line 73 of file OnDemandEventSource.cpp.

References fesa::AbstractEventSource::enable().

RTEvent * fesa::OnDemandEventSource::wait (  )  [private, virtual]

Member Data Documentation

used to requests messages from the server side

Definition at line 42 of file OnDemandEventSource.h.

Referenced by wait().


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

Generated on 18 Jan 2013 for Fesa by  doxygen 1.6.1