Belle II Software development
NSMState Class Reference
Inheritance diagram for NSMState:
Enum RCState

Public Member Functions

 NSMState (const Enum &num)
 
 NSMState (const NSMState &st)
 
const NSMStateoperator= (const NSMState &state)
 Operator =.
 
int getId () const
 
const char * getLabel () const
 
const std::string & getLabelString () const
 
bool operator== (const Enum &e) const
 
bool operator== (const std::string &label) const
 
bool operator!= (const Enum &e) const
 
bool operator!= (const std::string &label) const
 

Static Public Attributes

static const NSMState ONLINE_S
 
static const Enum UNKNOWN
 

Protected Member Functions

 NSMState (int id, const char *label)
 

Private Attributes

int m_id
 
std::string m_label
 

Detailed Description

Definition at line 19 of file NSMState.h.

Constructor & Destructor Documentation

◆ NSMState() [1/4]

NSMState ( )
inline

Definition at line 25 of file NSMState.h.

25: Enum(Enum::UNKNOWN) {}

◆ NSMState() [2/4]

NSMState ( const Enum num)
inline

Definition at line 26 of file NSMState.h.

26: Enum(num) {}

◆ NSMState() [3/4]

NSMState ( const NSMState st)
inline

Definition at line 27 of file NSMState.h.

27: Enum(st) {}

◆ ~NSMState()

~NSMState ( )
inline

Definition at line 28 of file NSMState.h.

28{}

◆ NSMState() [4/4]

NSMState ( int  id,
const char *  label 
)
inlineprotected

Definition at line 36 of file NSMState.h.

37 : Enum(id, label) {}

Member Function Documentation

◆ getId()

int getId ( ) const
inlineinherited

Definition at line 34 of file Enum.h.

34{ return m_id; }

◆ getLabel()

const char * getLabel ( ) const
inlineinherited

Definition at line 35 of file Enum.h.

35{ return m_label.c_str(); }

◆ getLabelString()

const std::string & getLabelString ( ) const
inlineinherited

Definition at line 36 of file Enum.h.

36{ return m_label; }

◆ operator=()

const NSMState & operator= ( const NSMState state)

Operator =.

Definition at line 14 of file NSMState.cc.

15{
16 Enum::operator=(state);
17 return *this;
18}

Member Data Documentation

◆ m_id

int m_id
privateinherited

Definition at line 45 of file Enum.h.

◆ m_label

std::string m_label
privateinherited

Definition at line 46 of file Enum.h.

◆ ONLINE_S

const NSMState ONLINE_S
static

Definition at line 22 of file NSMState.h.

◆ UNKNOWN

const Enum UNKNOWN
staticinherited

Definition at line 22 of file Enum.h.


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