Belle II Software development
NSMNode Class Reference
Inheritance diagram for NSMNode:
RCNode

Public Member Functions

 NSMNode (const std::string &name="")
 
const std::string & getName () const
 
int getId () const
 
bool isUsed () const
 
NSMStategetState ()
 
const NSMStategetState () const
 
void setName (const std::string &name)
 
void setUsed (bool used)
 
void setState (const NSMState &state)
 
void setId (int id)
 
int getDate () const
 
void setDate (int date)
 
void setDate (const Date &date)
 

Protected Attributes

std::string m_name
 
int m_id
 
bool m_used
 
NSMState m_state
 
int m_date
 

Detailed Description

Definition at line 21 of file NSMNode.h.

Constructor & Destructor Documentation

◆ NSMNode()

NSMNode ( const std::string &  name = "")

Definition at line 14 of file NSMNode.cc.

15{
16 m_name = StringUtil::toupper(name);
17 m_id = -1;
18}

◆ ~NSMNode()

virtual ~NSMNode ( )
inlinevirtual

Definition at line 25 of file NSMNode.h.

25{}

Member Function Documentation

◆ getDate()

int getDate ( ) const
inline

Definition at line 37 of file NSMNode.h.

37{ return m_date; }

◆ getId()

int getId ( ) const
inline

Definition at line 29 of file NSMNode.h.

29{ return m_id; }

◆ getName()

const std::string & getName ( ) const
inline

Definition at line 28 of file NSMNode.h.

28{ return m_name; }

◆ getState() [1/2]

NSMState & getState ( )
inline

Definition at line 31 of file NSMNode.h.

31{ return m_state; }

◆ getState() [2/2]

const NSMState & getState ( ) const
inline

Definition at line 32 of file NSMNode.h.

32{ return m_state; }

◆ isUsed()

bool isUsed ( ) const
inline

Definition at line 30 of file NSMNode.h.

30{ return m_used; }

◆ setDate() [1/2]

void setDate ( const Date date)
inline

Definition at line 39 of file NSMNode.h.

39{ m_date = date.get(); }

◆ setDate() [2/2]

void setDate ( int  date)
inline

Definition at line 38 of file NSMNode.h.

38{ m_date = date; }

◆ setId()

void setId ( int  id)
inline

Definition at line 36 of file NSMNode.h.

36{ m_id = id; }

◆ setName()

void setName ( const std::string &  name)

Definition at line 20 of file NSMNode.cc.

21{
22 m_name = StringUtil::toupper(name);
23}

◆ setState()

void setState ( const NSMState state)
inline

Definition at line 35 of file NSMNode.h.

35{ m_state = state; }

◆ setUsed()

void setUsed ( bool  used)
inline

Definition at line 34 of file NSMNode.h.

34{ m_used = used; }

Member Data Documentation

◆ m_date

int m_date
protected

Definition at line 46 of file NSMNode.h.

◆ m_id

int m_id
protected

Definition at line 43 of file NSMNode.h.

◆ m_name

std::string m_name
protected

Definition at line 42 of file NSMNode.h.

◆ m_state

NSMState m_state
protected

Definition at line 45 of file NSMNode.h.

◆ m_used

bool m_used
protected

Definition at line 44 of file NSMNode.h.


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