20 tubeNameFromCoord_=
"";
21 tubeDescriptionFromSD_=
"";
44 messageCounter_=message_counter;
45 indexCounter_=index_counter;
46 reelCounter_=reel_counter;
47 timestamp1_sec_=timestamp1_sec;
48 timestamp1_usec_=timestamp1_usec;
49 timestamp2_sec_=timestamp2_sec;
50 timestamp2_usec_=timestamp2_usec;
52 motorCurrent_=motor_current;
53 motorVoltage_=motor_voltage;
56 tubeNameFromCoord_=tubeNameFromCoord;
57 tubeDescriptionFromSD_=tubeDescFromSD;
58 lastCommand_=lastCommand;
63 seconds=timestamp1_sec_;
64 useconds=timestamp1_usec_;
68 seconds=timestamp2_sec_;
69 useconds=timestamp2_usec_;
76 s <<
" Reel Counter =" << hspd.
reelCounter() << endl;
77 s <<
" Status =" << hex << hspd.
status() <<
dec << endl;
80 s <<
" Tube Id =" << hspd.
tubeId() << endl;
81 s <<
" Driver Id =" << hspd.
driverId() << endl;
82 s <<
" Source Id =" << hspd.
sourceId() << endl;
85 s <<
" Last Command =" << hspd.
lastCommand() << endl;
86 s <<
" Message =" << hspd.
message() << endl;
88 int timebase =0;
int timeusec=0;
92 timebase += timeusec/1000000;
94 sprintf(str,
" Driver Timestamp : %s", ctime((time_t *)&timebase));
96 timebase=0; timeusec=0;
99 timebase += timeusec/1000000;
101 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