Jpp  18.2.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
JDETECTOR::JGetModuleStatusBit Struct Reference

Auxiliary class to map key to module status bit. More...

#include <JModuleStatus.hh>

Inheritance diagram for JDETECTOR::JGetModuleStatusBit:
JEEP::JGetStatusBit std::map< std::string, int >

Public Member Functions

 JGetModuleStatusBit ()
 Default constructor. More...
 
int operator() (const std::string &key) const
 Get status bit. More...
 

Detailed Description

Auxiliary class to map key to module status bit.

Definition at line 34 of file JModuleStatus.hh.

Constructor & Destructor Documentation

JDETECTOR::JGetModuleStatusBit::JGetModuleStatusBit ( )
inline

Default constructor.

Definition at line 40 of file JModuleStatus.hh.

41  {
42 #define MAKE_ENTRY(A) std::make_pair(#A, A)
43 
44  this->insert(MAKE_ENTRY(MODULE_DISABLE));
45  this->insert(MAKE_ENTRY(COMPASS_DISABLE));
46  this->insert(MAKE_ENTRY(HYDROPHONE_DISABLE));
47  this->insert(MAKE_ENTRY(PIEZO_DISABLE));
48  this->insert(MAKE_ENTRY(MODULE_OUT_OF_SYNC));
49 
50 #undef MAKE_ENTRY
51  }
#define MAKE_ENTRY(A)
static const int COMPASS_DISABLE
Enable (disable) use of compass if this status bit is 0 (1);.
static const int PIEZO_DISABLE
Enable (disable) use of piezo if this status bit is 0 (1);.
static const int MODULE_OUT_OF_SYNC
Enable (disable) synchronous signal from this module if this status bit is 0 (1);.
static const int HYDROPHONE_DISABLE
Enable (disable) use of hydrophone if this status bit is 0 (1);.
static const int MODULE_DISABLE
KM3NeT Data Definitions v3.2.0-2-gaaf0dd0 https://git.km3net.de/common/km3net-dataformat.

Member Function Documentation

int JEEP::JGetStatusBit::operator() ( const std::string key) const
inlineinherited

Get status bit.

Parameters
keykey
Returns
bit

Definition at line 216 of file JStatus.hh.

217  {
218  return this->at(key);
219  }

The documentation for this struct was generated from the following file: