1 #ifndef __JEEP__JSTATUS__
2 #define __JEEP__JSTATUS__
22 namespace JPP {
using namespace JEEP; }
88 return (this->
status & mask);
99 this->status = status.
status;
111 return this->status == status.
status;
120 bool has(
const int bit)
const
122 return (this->
status & (1<<bit)) != 0;
144 this->
status &= ~(1<<bit);
157 return in >> status.
status;
170 return out << status.
status;
183 return in >> status.
status;
196 return out << status.
status;
218 return this->at(key);
238 for (JGetStatusBit::const_iterator
i = input.begin();
i != input.end(); ++
i) {
239 this->insert(make_pair(
i->second,
i->first));
252 return this->at(bit);
268 for (
const auto&
i : helper) {
269 out << setw(24) << left <<
i.second << right << status.
has(
i.first) << endl;
285 for (
const auto&
i : helper) {
286 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.
int getStatus() const
Get status.
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.
int getStatus(const int mask) 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 JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
JStatus(const int status)
Constructor.
JStatus & getStatus()
Get status.