fesaGSI::TimingContext Class Reference

Specialized context for a RTEvent coming from the TimingEventSource. More...

#include <TimingContext.h>

List of all members.

Public Member Functions

 TimingContext (long long cycleStamp, const std::string &cycleName)
 constructor
 TimingContext (TimLibTime &interruptTimeStamp, unsigned long payload=0, bool forewarning=false)
 Constructor.
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.
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.

Protected Member Functions

void init (unsigned long payload=0)

Protected Attributes

TimLibTime interruptTimeStamp_
TimLibTime cycleTimeStamp_
 Timestamp of the timing Event.

Detailed Description

Specialized context for a RTEvent coming from the TimingEventSource.

Definition at line 19 of file TimingContext.h.


Constructor & Destructor Documentation

fesaGSI::TimingContext::TimingContext ( long long  cycleStamp,
const std::string &  cycleName 
)

constructor

Parameters:
cycleTimeStamp 
cycleName 
forewarning Indicates if the context belongs to the next cycle

Definition at line 13 of file TimingContext.cpp.

References cycleTimeStamp_, fesaGSI::GSICycleDescriptor::getCycleSelectorId(), fesaGSI::GSICycleDescriptor::getTgmMachineId(), and fesa::parseCycleSelector().

fesaGSI::TimingContext::TimingContext ( TimLibTime &  interruptTimeStamp,
unsigned long  payload = 0,
bool  forewarning = false 
)

Constructor.

Parameters:
cycleTimeStamp 
payload 
forewarning 

Definition at line 34 of file TimingContext.cpp.

References init().


Member Function Documentation

uint32_t fesaGSI::TimingContext::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.

Returns:
the event-time in the cycle.

Definition at line 88 of file TimingContext.cpp.

References interruptTimeStamp_.

int64_t fesaGSI::TimingContext::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.

Returns:
the current TimeStamp

Definition at line 83 of file TimingContext.cpp.

References interruptTimeStamp_.

void fesaGSI::TimingContext::init ( unsigned long  payload = 0  )  [protected]

Definition at line 42 of file TimingContext.cpp.

References cycleTimeStamp_, FesaGSIErrorAccessingTimLib, and interruptTimeStamp_.

Referenced by TimingContext().


Member Data Documentation

Timestamp of the timing Event.

Definition at line 66 of file TimingContext.h.

Referenced by init(), and TimingContext().

Definition at line 61 of file TimingContext.h.

Referenced by getCycleTime(), getInterruptTimeStamp(), and init().


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

Generated on 25 Jan 2013 for fesa-core-gsi by  doxygen 1.6.1