Implementation of the LogicalEvent.
More...
#include <LogicalEventImpl.h>
|
template<typename T > |
void | registerMetric (const std::string &name, T &value) |
|
template<typename T > |
void | registerMetric (const std::string &name, boost::atomic< T > &value) |
|
Implementation of the LogicalEvent.
fesa::LogicalEventImpl::LogicalEventImpl |
( |
const std::string & |
className, |
|
|
const std::string & |
logicalEventName |
|
) |
| |
Constructor.
- Parameters
-
className | name of the class this event belongs to |
logicalEventName | name of the logical-event |
void fesa::LogicalEventImpl::addScheduler |
( |
RTScheduler * |
scheduler | ) |
|
|
virtual |
Adds a scheduler to this logical-event.
- Parameters
-
scheduler | The scheduler to register |
Implements fesa::LogicalEvent.
uint32_t fesa::LogicalEventImpl::getID |
( |
| ) |
const |
|
virtual |
Return the unique ID of this logical-event.
- Returns
- unique ID of this logical-event
Implements fesa::LogicalEvent.
std::string fesa::LogicalEventImpl::getName |
( |
| ) |
const |
|
virtual |
Return the name of this logical-event.
- Returns
- name of this logical-event
Implements fesa::LogicalEvent.
bool fesa::LogicalEventImpl::isEnabled |
( |
| ) |
const |
|
virtual |
Check the enable-state of this logical-event.
- Returns
- enable-state of this logical event
Implements fesa::LogicalEvent.
bool fesa::LogicalEventImpl::operator!= |
( |
const LogicalEvent & |
rhs | ) |
const |
|
virtual |
Compares two logical-events by the use of the unique id.
- Parameters
-
rhs | The rightHandSide, the object after the != |
- Returns
- true, if the objects differ from each other
Implements fesa::LogicalEvent.
bool fesa::LogicalEventImpl::operator== |
( |
const LogicalEvent & |
rhs | ) |
const |
|
virtual |
Compares two logical-events by the use of the unique id.
- Parameters
-
rhs | The rightHandSide, the object after the == |
- Returns
- true, if the objects are equal
Implements fesa::LogicalEvent.
void fesa::LogicalEventImpl::postEventToSchedulers |
( |
boost::shared_ptr< RTEvent > & |
event, |
|
|
AtomicSizeTPtr & |
nSchedulers |
|
) |
| const |
|
virtual |
This method will post the given RTEvent to all schedulers which have registered to this logical-event.
- Parameters
-
event | The RTEvent to fire |
nSchedulers | initial number of schedulers scheduling this event, assuming one scheduler per logical-event; to be adjusted if needed. |
Implements fesa::LogicalEvent.
The documentation for this class was generated from the following files:
- LogicalEventImpl.h
- LogicalEventImpl.cpp