|
Jpp 20.0.0-rc.8
the software that should make you happy
|
Auxiliary class for handling status. More...
#include <JStatus.hh>
Public Types | |
| typedef int | status_type |
Public Member Functions | |
| JStatus () | |
| Default constructor. | |
| JStatus (const status_type status) | |
| Constructor. | |
| status_type | getStatus (const JType< status_type > &type) const |
| Get status. | |
| JStatus | getStatus (const JType< JStatus > &type) const |
| Get status. | |
| template<class T > | |
| const T | getStatus () const |
| Get status. | |
| const JStatus & | getStatus () const |
| Get status. | |
| status_type & | getStatus (const JType< status_type > &type) |
| Get status. | |
| JStatus & | getStatus (const JType< JStatus > &type) |
| Get status. | |
| template<class T > | |
| T & | getStatus () |
| Get status. | |
| JStatus & | getStatus () |
| Get status. | |
| void | setStatus (const JStatus &status) |
| Set status. | |
| bool | equals (const JStatus &status) const |
| Equal method. | |
| JStatus | getAND (const JStatus &status) const |
| Get combined status. | |
| JStatus | getOR (const JStatus &status) const |
| Get combined status. | |
| bool | has (const int bit) const |
| Test PMT status. | |
| void | set (const int bit) |
| Set PMT status. | |
| void | reset (const int bit) |
| Reset PMT status. | |
Static Public Attributes | |
| static const int | NUMBER_OF_STATUS_BITS = sizeof(status_type) * 8 |
| number of status bits | |
Protected Attributes | |
| status_type | status |
Friends | |
| std::istream & | operator>> (std::istream &in, JStatus &status) |
| Read status from input. | |
| std::ostream & | operator<< (std::ostream &out, const JStatus &status) |
| Write status to output. | |
Auxiliary class for handling status.
The various status are controlled using a bitwise data field.
The corresponding bits can externally be defined (e.g. via an enumeration).
Definition at line 29 of file JStatus.hh.
Definition at line 32 of file JStatus.hh.
|
inline |
Default constructor.
Definition at line 40 of file JStatus.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Equal method.
| status | status |
Definition at line 162 of file JStatus.hh.
Get combined status.
| status | status |
Definition at line 174 of file JStatus.hh.
Get combined status.
| status | status |
Definition at line 186 of file JStatus.hh.
|
inline |
Test PMT status.
| bit | bit |
Definition at line 198 of file JStatus.hh.
|
inline |
|
inline |
|
friend |
Read status from input.
| in | input stream |
| status | status |
Definition at line 233 of file JStatus.hh.
|
friend |
Write status to output.
| out | output stream |
| status | status |
Definition at line 246 of file JStatus.hh.
|
static |
number of status bits
Definition at line 34 of file JStatus.hh.
|
protected |
Definition at line 252 of file JStatus.hh.