41 messageCounter_=message_counter;
42 indexCounter_=index_counter;
43 reelCounter_=reel_counter;
44 timestamp1_sec_=timestamp1_sec;
45 timestamp1_usec_=timestamp1_usec;
46 timestamp2_sec_=timestamp2_sec;
47 timestamp2_usec_=timestamp2_usec;
49 motorCurrent_=motor_current;
50 motorVoltage_=motor_voltage;
54 tubeNameFromCoord_=tubeNameFromCoord;
55 tubeNameFromSD_=tubeNameFromSD;
56 lastCommand_=lastCommand;
61 seconds=timestamp1_sec_;
62 useconds=timestamp1_usec_;
66 seconds=timestamp2_sec_;
67 useconds=timestamp2_usec_;
74 s <<
" Reel Counter =" << hspd.
reelCounter() << endl;
75 s <<
" Status =" << hex << hspd.
status() << dec << endl;
78 s <<
" Tube Id =" << hspd.
tubeId() << endl;
79 s <<
" Driver Id =" << hspd.
driverId() << endl;
80 s <<
" Source Id =" << hspd.
sourceId() << endl;
83 s <<
" Last Command =" << hspd.
lastCommand() << endl;
84 s <<
" Message =" << hspd.
message() << endl;
86 int timebase =0;
int timeusec=0;
90 timebase += timeusec/1000000;
92 sprintf(str,
" Driver Timestamp : %s", ctime((time_t *)&timebase));
94 timebase=0; timeusec=0;
97 timebase += timeusec/1000000;
99 sprintf(str,
" DAQ Timestamp : %s", ctime((time_t *)&timebase));
ostream & operator<<(std::ostream &o, vector< std::string > const &iValue)
std::string tubeNameFromCoord() const
std::string lastCommand() const
int messageCounter() const
void getDriverTimestamp(int &seconds, int &useconds) const
void getDAQTimestamp(int &seconds, int &useconds) const
void set(int message_counter, int timestamp1_sec, int timestamp1_usec, int timestamp2_sec, int timestamp2_usec, int status, int index_counter, int reel_counter, int motor_current, int motor_voltage, int tube_id, int driver_id, int source_id, std::string tubeNameFromCoord, std::string tubeNameFromSD, std::string lastCommand, std::string message)
std::string message() const
std::string tubeNameFromSD() const