This factory provides methods to handle events sources.
More...
#include <AbstractEventSourceFactory.h>
|
static void | deleteEventSources () |
| browse the map of event-sources and remove them.
|
|
static void | startEventSources () |
| browse the map of event-sources and start them.
|
|
static void | stopEventSources () |
| stops all the event sources in the equipment
|
|
static AbstractEventSource * | getEventSource (const std::string &className, const std::string &eventSourceName) |
| this method returns one particular instance of the event-source by its name and class. throws an exception if the source doesnt exist
|
|
static void | printConfigAll (FesaStream &fesaStream) |
| This method prints, on the fesaStream passed as a parameter, the configuration of this abstract event source. More...
|
|
static void | printStateAll (std::ostream &stream, double elapsedTime) |
| this method prints, on the fesaStream passed as a parameter, the state of this abstract event source More...
|
|
|
AbstractRealTimeLabObjectFactory * | labFactory_ |
| reference to the lab factory to create lab dependent event sources such as the timing event source Is filled in the generated code
|
|
This factory provides methods to handle events sources.
fesa::AbstractEventSourceFactory::AbstractEventSourceFactory |
( |
const ProcessConfigurer & |
processConfigurer, |
|
|
const boost::shared_ptr< Diagnostics > & |
diagnostics |
|
) |
| |
|
protected |
Constructor.
- Parameters
-
processConfigurer | The process configurer object to take configuration properties from |
diagnostics | The diagnostics object to be passed to event sources created by this factory |
virtual AbstractEventSource* fesa::AbstractEventSourceFactory::createCustomEventSource |
( |
const std::string & |
eventSourceName | ) |
|
|
protectedpure virtual |
Create a custom (user-defined) event source Although custom event sources exist per class, class name is not given as parameter because custom event sources's code is generated and the class name is available at code generation.
- Parameters
-
eventSourceName | The name of the event source |
- Returns
- The pointer to the created event source
AbstractEventSource * fesa::AbstractEventSourceFactory::createEventSource |
( |
const std::string & |
className, |
|
|
const std::string & |
eventSourceName, |
|
|
EventSourceType |
type |
|
) |
| |
Create an event source.
- Parameters
-
className | The FESA class the event source belongs to |
eventSourceName | The name of the event source |
type | The type of the event source |
- Returns
- The pointer to the created event source
virtual AbstractEventSource* fesa::AbstractEventSourceFactory::createOnSubscriptionEventSource |
( |
const std::string & |
eventSourceName, |
|
|
std::size_t |
eventQueueSize |
|
) |
| |
|
protectedpure virtual |
Create an on-subscription event source The implementation of this method is provided in the generated code to prevent the RT from permanently including all RDA sources.
- Parameters
-
eventSourceName | The name of the event source |
eventQueueSize | The size of the event queue |
- Returns
- The pointer to the created event source
void fesa::AbstractEventSourceFactory::printConfigAll |
( |
FesaStream & |
fesaStream | ) |
|
|
static |
This method prints, on the fesaStream passed as a parameter, the configuration of this abstract event source.
- Parameters
-
fesaStream | in which the information will be printed |
void fesa::AbstractEventSourceFactory::printStateAll |
( |
std::ostream & |
stream, |
|
|
double |
elapsedTime |
|
) |
| |
|
static |
this method prints, on the fesaStream passed as a parameter, the state of this abstract event source
- Parameters
-
fesaStream | in which the information will be printed |
elapsedTime | interval of time to calculate the frequency of the fired events |
The documentation for this class was generated from the following files:
- AbstractEventSourceFactory.h
- AbstractEventSourceFactory.cpp