annotatorcomm::MicrosecondTimestamp Class Reference

#include <MicrosecondTimestamp.h>

Inheritance diagram for annotatorcomm::MicrosecondTimestamp:

annotatorcomm::Timestamp annotatorcomm::annotatorjr::TriggerTimestamp List of all members.

Public Member Functions

 MicrosecondTimestamp (int year, int day, int second, long microsecond)
virtual int getYear () const
virtual int getDayOfYear () const
virtual int getSecondOfDay () const
virtual long getMicrosecond () const

Static Public Member Functions

static MicrosecondTimestamp makeTimestamp (vector< uint8_t > timestamp, int offset)

Protected Attributes

int year
int day
int second
long microsecond

Detailed Description

MicrosecondTimestamp is a timestamp accurate to within a microsecond. It is the standard time keeping Timestamp within libAnnotatorComm.

Definition at line 29 of file MicrosecondTimestamp.h.


Constructor & Destructor Documentation

annotatorcomm::MicrosecondTimestamp::MicrosecondTimestamp ( int  year,
int  day,
int  second,
long  microsecond 
)

Construct a MicrosecondTimestamp</code.

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


Member Function Documentation

virtual int annotatorcomm::MicrosecondTimestamp::getDayOfYear (  )  const [virtual]

Get the day of year.

Returns:
day

Implements annotatorcomm::Timestamp.

virtual long annotatorcomm::MicrosecondTimestamp::getMicrosecond (  )  const [virtual]

Get the microsecond of the second.

Returns:
microsecond

Implements annotatorcomm::Timestamp.

virtual int annotatorcomm::MicrosecondTimestamp::getSecondOfDay (  )  const [virtual]

Get the second of the day.

Returns:
second

Implements annotatorcomm::Timestamp.

virtual int annotatorcomm::MicrosecondTimestamp::getYear (  )  const [virtual]

Get the year.

Returns:
year

Implements annotatorcomm::Timestamp.

static MicrosecondTimestamp annotatorcomm::MicrosecondTimestamp::makeTimestamp ( vector< uint8_t >  timestamp,
int  offset 
) [static]

Make a MicrosecondTimestamp from a set of bytes.

 typedef struct
 {
   uint16_t year;
   uint16_t dayofyear;
   uint32_t secondofday;
 } realtimeclock_t;
 uint32_t microsecond;
 

Parameters:
timestamp raw timestamp bytes
offset offset into raw bytes
Returns:
microsecond timestamp


Member Data Documentation

int annotatorcomm::MicrosecondTimestamp::day [protected]

Timestamp day of year

Definition at line 99 of file MicrosecondTimestamp.h.

long annotatorcomm::MicrosecondTimestamp::microsecond [protected]

Timestamp microsecond of second

Definition at line 109 of file MicrosecondTimestamp.h.

int annotatorcomm::MicrosecondTimestamp::second [protected]

Timestamp second of day

Definition at line 104 of file MicrosecondTimestamp.h.

int annotatorcomm::MicrosecondTimestamp::year [protected]

Timestamp year

Definition at line 94 of file MicrosecondTimestamp.h.


The documentation for this class was generated from the following file:
Generated on Tue Aug 1 11:14:11 2006 for libAnnotatorComm by  doxygen 1.4.7