Belle II Software development
ARICHCableInfo Class Reference

List of cables. More...

#include <ARICHCableInfo.h>

Inheritance diagram for ARICHCableInfo:

Public Member Functions

 ARICHCableInfo ()
 Default constructor.
 
 ARICHCableInfo (int id, int type, float length)
 Constructor.
 
 ARICHCableInfo (int id, int type, float length, const std::string &comment)
 Constructor.
 
 ~ARICHCableInfo ()
 Destructor.
 
int getCableID () const
 Get cable identifier.
 
void setCableID (int id)
 Set cable identifier.
 
int getCableType () const
 Get cable type.
 
void setCableType (int type)
 Set cable type.
 
float getCableLength () const
 Get cable length.
 
void setCableLength (float length)
 Set cable length.
 
std::string getCableComment () const
 Get comment.
 
void setCableComment (const std::string &comment)
 Set comment.
 

Private Member Functions

 ClassDef (ARICHCableInfo, 1)
 ClassDef.
 

Private Attributes

int m_id
 Cable Identifier.
 
int m_type
 Cable Type.
 
float m_length
 Length of the Cable.
 
std::string m_comment
 comment
 

Detailed Description

List of cables.

Definition at line 23 of file ARICHCableInfo.h.

Constructor & Destructor Documentation

◆ ARICHCableInfo() [1/3]

ARICHCableInfo ( )
inline

Default constructor.

Definition at line 28 of file ARICHCableInfo.h.

28: m_id(0), m_type(0), m_length(0), m_comment("") {};
std::string m_comment
comment
int m_type
Cable Type.
int m_id
Cable Identifier.
float m_length
Length of the Cable.

◆ ARICHCableInfo() [2/3]

ARICHCableInfo ( int  id,
int  type,
float  length 
)
inline

Constructor.

Definition at line 33 of file ARICHCableInfo.h.

33: m_id(id), m_type(type), m_length(length), m_comment("") {};

◆ ARICHCableInfo() [3/3]

ARICHCableInfo ( int  id,
int  type,
float  length,
const std::string &  comment 
)
inline

Constructor.

Definition at line 38 of file ARICHCableInfo.h.

38 : m_id(id), m_type(type), m_length(length),
39 m_comment(comment) {};

◆ ~ARICHCableInfo()

~ARICHCableInfo ( )
inline

Destructor.

Definition at line 44 of file ARICHCableInfo.h.

44{};

Member Function Documentation

◆ getCableComment()

std::string getCableComment ( ) const
inline

Get comment.

Returns
Comment.

Definition at line 86 of file ARICHCableInfo.h.

86{return m_comment; }

◆ getCableID()

int getCableID ( ) const
inline

Get cable identifier.

Returns
Cable identifier.

Definition at line 50 of file ARICHCableInfo.h.

50{return m_id; }

◆ getCableLength()

float getCableLength ( ) const
inline

Get cable length.

Returns
Cable length.

Definition at line 74 of file ARICHCableInfo.h.

74{return m_length; }

◆ getCableType()

int getCableType ( ) const
inline

Get cable type.

Returns
Cable yype.

Definition at line 62 of file ARICHCableInfo.h.

62{return m_type; }

◆ setCableComment()

void setCableComment ( const std::string &  comment)
inline

Set comment.

Parameters
[in]commentComment.

Definition at line 92 of file ARICHCableInfo.h.

92{m_comment = comment; }

◆ setCableID()

void setCableID ( int  id)
inline

Set cable identifier.

Parameters
[in]idCable identifier.

Definition at line 56 of file ARICHCableInfo.h.

56{m_id = id; }

◆ setCableLength()

void setCableLength ( float  length)
inline

Set cable length.

Parameters
[in]lengthCable length.

Definition at line 80 of file ARICHCableInfo.h.

80{m_length = length; }

◆ setCableType()

void setCableType ( int  type)
inline

Set cable type.

Parameters
[in]typeCable type.

Definition at line 68 of file ARICHCableInfo.h.

68{m_type = type; }

Member Data Documentation

◆ m_comment

std::string m_comment
private

comment

Definition at line 99 of file ARICHCableInfo.h.

◆ m_id

int m_id
private

Cable Identifier.

Definition at line 96 of file ARICHCableInfo.h.

◆ m_length

float m_length
private

Length of the Cable.

Definition at line 98 of file ARICHCableInfo.h.

◆ m_type

int m_type
private

Cable Type.

Definition at line 97 of file ARICHCableInfo.h.


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