20 tubeNameFromCoord_ =
"";
21 tubeDescriptionFromSD_ =
"";
42 messageCounter_ = message_counter;
43 indexCounter_ = index_counter;
44 reelCounter_ = reel_counter;
45 timestamp1_sec_ = timestamp1_sec;
46 timestamp1_usec_ = timestamp1_usec;
47 timestamp2_sec_ = timestamp2_sec;
48 timestamp2_usec_ = timestamp2_usec;
50 motorCurrent_ = motor_current;
51 motorVoltage_ = motor_voltage;
52 driverId_ = driver_id;
53 sourceId_ = source_id;
54 tubeNameFromCoord_ = tubeNameFromCoord;
55 tubeDescriptionFromSD_ = tubeDescFromSD;
56 lastCommand_ = lastCommand;
61 seconds = timestamp1_sec_;
62 useconds = timestamp1_usec_;
66 seconds = timestamp2_sec_;
67 useconds = timestamp2_usec_;
73 s <<
" Reel Counter =" << hspd.
reelCounter() << endl;
74 s <<
" Status =" << hex << hspd.
status() <<
dec << endl;
77 s <<
" Tube Id =" << hspd.
tubeId() << endl;
78 s <<
" Driver Id =" << hspd.
driverId() << endl;
79 s <<
" Source Id =" << hspd.
sourceId() << endl;
82 s <<
" Last Command =" << hspd.
lastCommand() << endl;
83 s <<
" Message =" << hspd.
message() << endl;
90 timebase += timeusec / 1000000;
92 sprintf(str,
" Driver Timestamp : %s", ctime((time_t*)&timebase));
98 timebase += timeusec / 1000000;
100 sprintf(str,
" DAQ Timestamp : %s", ctime((time_t*)&timebase));
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 driver_id, int source_id, std::string tubeNameFromCoord, std::string tubeDescFromSD, std::string lastCommand, std::string message)
std::string tubeNameFromCoord() const
std::string tubeDescriptionFromSD() const
std::string lastCommand() const
int messageCounter() const
void getDriverTimestamp(int &seconds, int &useconds) const
std::ostream & operator<<(std::ostream &out, const std::tuple< Types... > &value)
void getDAQTimestamp(int &seconds, int &useconds) const
std::string message() const