Specialized context for a RTEvent coming from the TimingEventSource. The implementation is lab specific. More...
#include <TimingContext.h>
Public Member Functions | |
TimingContext (const std::string &cycleName) | |
Constructor. | |
TimingContext (std::istream &stream) | |
constructor from serialized data | |
virtual int64_t | getInterruptTimeStamp () |
Returns the time of occurrence of the event expressed as a 64-bit integer counting the number of nanoseconds elapsed since the UNIX epoch i.e. since January 1st 1970 at 00.00 A.M. | |
virtual uint32_t | getCycleTime () |
Returns the time of occurrence of the event in the cycle in ms. The time is returned in a 32 bit integer with the number of miliseconds ticks since the start of the currently executing cycle. | |
virtual | ~TimingContext () |
Destructor. | |
Protected Member Functions | |
TimingContext () | |
Constructor. |
Specialized context for a RTEvent coming from the TimingEventSource. The implementation is lab specific.
Definition at line 18 of file TimingContext.h.
fesa::TimingContext::TimingContext | ( | const std::string & | cycleName | ) |
Constructor.
cycleName | Cycle name for which the context is |
Definition at line 12 of file TimingContext.cpp.
References fesa::MultiplexingContext::cycleId_, fesa::MultiplexingContext::cycleName_, fesa::MultiplexingContext::CycleTypeCtxt, fesa::SynchronizationFactory::getCycleDescriptor(), fesa::CycleDescriptor::getCycleSelectorId(), fesa::SynchronizationLabObjectFactory::getInstance(), and fesa::MultiplexingContext::type_.
fesa::TimingContext::TimingContext | ( | std::istream & | stream | ) |
constructor from serialized data
Definition at line 28 of file TimingContext.cpp.
fesa::TimingContext::~TimingContext | ( | ) | [virtual] |
Destructor.
Definition at line 44 of file TimingContext.cpp.
fesa::TimingContext::TimingContext | ( | ) | [protected] |
Constructor.
Definition at line 22 of file TimingContext.cpp.
References fesa::MultiplexingContext::CycleTypeCtxt, and fesa::MultiplexingContext::type_.
uint32_t fesa::TimingContext::getCycleTime | ( | ) | [virtual] |
Returns the time of occurrence of the event in the cycle in ms. The time is returned in a 32 bit integer with the number of miliseconds ticks since the start of the currently executing cycle.
Definition at line 39 of file TimingContext.cpp.
int64_t fesa::TimingContext::getInterruptTimeStamp | ( | ) | [virtual] |
Returns the time of occurrence of the event expressed as a 64-bit integer counting the number of nanoseconds elapsed since the UNIX epoch i.e. since January 1st 1970 at 00.00 A.M.
Definition at line 34 of file TimingContext.cpp.