Belle II Software development
Enum Class Reference
Inheritance diagram for Enum:
Connection ERRORNo NSMCommand NSMState RCCommand RFCommand RCState

Public Member Functions

int getId () const
 
const char * getLabel () const
 
const std::string & getLabelString () const
 
bool operator== (const Enum &e) const
 
bool operator!= (const Enum &e) const
 
bool operator== (const std::string &label) const
 
bool operator!= (const std::string &label) const
 

Static Public Attributes

static const Enum UNKNOWN
 

Protected Member Functions

 Enum (int id, const std::string &label)
 

Private Attributes

int m_id
 
std::string m_label
 

Detailed Description

Definition at line 19 of file Enum.h.

Constructor & Destructor Documentation

◆ ~Enum()

~Enum ( )
inline

Definition at line 25 of file Enum.h.

25{}

◆ Enum() [1/2]

Enum ( int  id,
const std::string &  label 
)
inlineprotected

Definition at line 28 of file Enum.h.

29 : m_id(id), m_label(label) {}

◆ Enum() [2/2]

Enum ( )
inlineprotected

Definition at line 30 of file Enum.h.

30 : m_id(UNKNOWN.m_id),
31 m_label(UNKNOWN.m_label) {}

Member Function Documentation

◆ getId()

int getId ( ) const
inline

Definition at line 34 of file Enum.h.

34{ return m_id; }

◆ getLabel()

const char * getLabel ( ) const
inline

Definition at line 35 of file Enum.h.

35{ return m_label.c_str(); }

◆ getLabelString()

const std::string & getLabelString ( ) const
inline

Definition at line 36 of file Enum.h.

36{ return m_label; }

Member Data Documentation

◆ m_id

int m_id
private

Definition at line 45 of file Enum.h.

◆ m_label

std::string m_label
private

Definition at line 46 of file Enum.h.

◆ UNKNOWN

const Enum UNKNOWN
static

Definition at line 22 of file Enum.h.


The documentation for this class was generated from the following files: