Jpp - the software that should make you happy
|
Auxiliary class for controlling PMT status. More...
#include <JStatus.hh>
Public Member Functions | |
JStatus () | |
Default constructor. More... | |
JStatus (const int status) | |
Constructor. More... | |
const JStatus & | getStatus () const |
Get status. More... | |
JStatus | getStatus () |
Get status. More... | |
void | setStatus (const JStatus &status) |
Set status. More... | |
bool | equals (const JStatus &status) const |
Equal method. More... | |
bool | has (const int bit) const |
Test PMT status. More... | |
void | set (const int bit) |
Set PMT status. More... | |
void | reset (const int bit) |
Reset PMT status. More... | |
void | print (std::ostream &out) const |
Print status. More... | |
Protected Attributes | |
int | status |
Friends | |
std::istream & | operator>> (std::istream &in, JStatus &status) |
Read status from input. More... | |
std::ostream & | operator<< (std::ostream &out, const JStatus &status) |
Write status to output. More... | |
JReader & | operator>> (JReader &in, JStatus &status) |
Read status from input. More... | |
JWriter & | operator<< (JWriter &out, const JStatus &status) |
Write status to output. More... | |
Auxiliary class for controlling PMT status.
The various status are controlled using a bitwise data field.
The corresponding bits are defined via an internal enumeration.
Definition at line 42 of file JStatus.hh.
|
inline |
Default constructor.
Definition at line 48 of file JStatus.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Equal method.
status | status |
Definition at line 102 of file JStatus.hh.
|
inline |
|
inline |
|
inline |
|
inline |
Print status.
Print PMT status.
out | output stream |
Definition at line 331 of file JStatus.hh.
|
friend |
Read status from input.
in | input stream |
status | status |
Definition at line 156 of file JStatus.hh.
|
friend |
Write status to output.
out | output stream |
status | status |
Definition at line 169 of file JStatus.hh.
Read status from input.
in | reader |
status | status |
Definition at line 182 of file JStatus.hh.
Write status to output.
out | writer |
status | status |
Definition at line 195 of file JStatus.hh.
|
protected |
Definition at line 201 of file JStatus.hh.