1 #ifndef __JEEP__JSTATUS__
2 #define __JEEP__JSTATUS__
22 namespace JPP {
using namespace JEEP; }
87 this->status = status.
status;
99 return this->status == status.
status;
108 bool has(
const int bit)
const
110 return (this->
status & (1<<bit)) != 0;
132 this->
status &= ~(1<<bit);
145 return in >> status.
status;
158 return out << status.
status;
171 return in >> status.
status;
184 return out << status.
status;
206 return this->at(key);
226 for (JGetStatusBit::const_iterator i = input.begin(); i != input.end(); ++i) {
227 this->insert(make_pair(i->second, i->first));
240 return this->at(bit);
256 for (
const auto& i : helper) {
257 out << setw(24) << left << i.second << right << status.
has(i.first) << endl;
273 for (
const auto& i : helper) {
274 out << setw(24) << left << i.first << right << status.
has(i.second) << endl;
friend std::ostream & operator<<(std::ostream &out, const JStatus &status)
Write status to output.
JPutStatusBit(const JGetStatusBit &input)
Constructor.
bool equals(const JStatus &status) const
Equal method.
Interface for binary output.
int operator()(const std::string &key) const
Get status bit.
Auxiliary class to map key to status bit.
JStatus()
Default constructor.
void reset(const int bit)
Reset PMT status.
const std::string & operator()(const int bit) const
Put status bit.
bool has(const int bit) const
Test PMT status.
void set(const int bit)
Set PMT status.
Auxiliary class for handling status.
Template definition of auxiliary base class for comparison of data structures.
friend JReader & operator>>(JReader &in, JStatus &status)
Read status from input.
Interface for binary input.
Auxiliary methods to convert data members or return values of member methods of a set of objects to a...
void setStatus(const JStatus &status)
Set status.
Auxiliary class to map status bit to key.
const JStatus & getStatus() const
Get status.
friend std::istream & operator>>(std::istream &in, JStatus &status)
Read status from input.
friend JWriter & operator<<(JWriter &out, const JStatus &status)
Write status to output.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
JStatus(const int status)
Constructor.
JStatus & getStatus()
Get status.