ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
tagname Struct Reference

#include <tagname.h>

Collaboration diagram for tagname:

Public Member Functions

 tagname (const std::string &base, int i)
 
 tagname (const char *base, int i)
 
 tagname (const char *base, char *addition)
 
tagnameadd (const char *s)
 
tagnameadd (const std::string &s)
 
const char * c_str () const
 
 operator const char * () const
 
 operator std::string () const
 

Private Attributes

std::string m_string
 

Detailed Description

Definition at line 28 of file tagname.h.

Constructor & Destructor Documentation

◆ tagname() [1/3]

tagname::tagname ( const std::string &  base,
int  i 
)
inline

Definition at line 31 of file tagname.h.

31  {
32  char sbase[512];
33  sprintf(sbase, "%s[%03d]", base.c_str(), i);
34  m_string = sbase;
35  }

◆ tagname() [2/3]

tagname::tagname ( const char *  base,
int  i 
)
inline

Definition at line 38 of file tagname.h.

38  {
39  char sbase[512];
40  sprintf(sbase, "%s[%03d]", base, i);
41  m_string = sbase;
42  }

◆ tagname() [3/3]

tagname::tagname ( const char *  base,
char *  addition 
)
inline

Definition at line 44 of file tagname.h.

44  {
45  char sbase[512];
46  sprintf(sbase, "%s%s", base, addition);
47  m_string = sbase;
48  }

Member Function Documentation

◆ add() [1/2]

tagname& tagname::add ( const char *  s)
inline

Definition at line 50 of file tagname.h.

50  {
51  char sbase[512];
52  sprintf(sbase, "%s%s", m_string.c_str(), s);
53  m_string = sbase;
54  return (*this);
55  }

◆ add() [2/2]

tagname& tagname::add ( const std::string &  s)
inline

Definition at line 57 of file tagname.h.

57  {
58  char sbase[512];
59  sprintf(sbase, "%s%s", m_string.c_str(), s.c_str() );
60  m_string = sbase;
61  return (*this);
62  }

◆ c_str()

const char* tagname::c_str ( ) const
inline

Definition at line 64 of file tagname.h.

64 { return m_string.c_str(); }

◆ operator const char *()

tagname::operator const char * ( ) const
inline

Definition at line 65 of file tagname.h.

65 { return m_string.c_str(); }

◆ operator std::string()

tagname::operator std::string ( ) const
inline

Definition at line 67 of file tagname.h.

67 { return m_string; }

Member Data Documentation

◆ m_string

std::string tagname::m_string
private

Definition at line 71 of file tagname.h.


The documentation for this struct was generated from the following file:
base
std::string base
Definition: hcg.cxx:78
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
tagname::m_string
std::string m_string
Definition: tagname.h:71
lumiFormat.i
int i
Definition: lumiFormat.py:85