AnnotatorComm::AnnotatorJr::TriggerTimestamp Class Reference

#include <TriggerTimestamp.h>

Inheritance diagram for AnnotatorComm::AnnotatorJr::TriggerTimestamp:

AnnotatorComm::MicrosecondTimestamp AnnotatorComm::Timestamp List of all members.

Public Member Functions

 TriggerTimestamp (int year, int day, int second, long microsecond)
void offsetYear (int offset)
void offsetDays (int offset)
void offsetSeconds (int offset)
void offsetMicrosecond (int offset)

Static Public Member Functions

static TriggerTimestamp makeTriggerTimestamp (vector< uint8_t > timestamp, int offset)

Detailed Description

Timestamp containing the time at a trigger point. Triggers can be hardware generated or software generated.

Definition at line 34 of file TriggerTimestamp.h.


Constructor & Destructor Documentation

AnnotatorComm::AnnotatorJr::TriggerTimestamp::TriggerTimestamp ( int  year,
int  day,
int  second,
long  microsecond 
)

Construct a TriggerTimestamp.

Parameters:
year timestamp year
day timestamp day of year
second timestamp second of day
microsecond timestamp microsecond


Member Function Documentation

void AnnotatorComm::AnnotatorJr::TriggerTimestamp::offsetDays ( int  offset  ) 

Offset the timestamp by a given number of days. The offset can be positive or negative and can be greater than the number of days in a year. Rollover will be propagated through the timestamp as years.

Parameters:
offset days to offset

void AnnotatorComm::AnnotatorJr::TriggerTimestamp::offsetMicrosecond ( int  offset  ) 

Offset the timestamp by a given number of microseconds. The offset can be positive or negative and can be greater than the number of microseconds in a second. Rollover will be propagated through the timestamp as seconds.

Parameters:
offset microseconds to offset

void AnnotatorComm::AnnotatorJr::TriggerTimestamp::offsetSeconds ( int  offset  ) 

Offset the timestamp by a given number of seconds. The offset can be positive or negative and can be greater than the number of seconds in a day. Rollover will be propagated through the timestamp as days.

Parameters:
offset seconds to offset

void AnnotatorComm::AnnotatorJr::TriggerTimestamp::offsetYear ( int  offset  ) 

Offset the timestamp by a given number of years. The offset can be positive or negative.

Parameters:
offset years to offset


The documentation for this class was generated from the following file:
Generated on Thu Jul 27 11:05:04 2006 for libAnnotatorComm by  doxygen 1.4.7