CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
NameScheme.cc
Go to the documentation of this file.
2 
4  name_("Default"),
5  link_("_")
6 {
7 }
8 
10  name_(name),
11  link_("_")
12 {
13 }
14 
15 NameScheme::NameScheme(const char* name, const char* link):
16  name_(name),
17  link_(link)
18 {
19 }
20 
22 {
23 
24 }
25 
26 TString
27 NameScheme::name(const int i)
28 {
29  TString namestr( name_ );
30  namestr += link_;
31  namestr += i;
32  return namestr;
33 }
34 
35 TString
36 NameScheme::name(const char* name)
37 {
38  TString namestr( name_ );
39  namestr += link_;
40  namestr += name;
41  return namestr;
42 }
43 
44 TString
45 NameScheme::name(const char* name, const int i)
46 {
47  TString namestr( name_ );
48  namestr += link_;
49  namestr += name;
50  namestr += "_";
51  namestr += i;
52  return namestr;
53 }
54 
55 TString
56 NameScheme::name(const char* name, const int i, const int j)
57 {
58  TString namestr( name_ );
59  namestr += link_;
60  namestr += name;
61  namestr += "_";
62  namestr += i;
63  namestr += "_";
64  namestr += j;
65  return namestr;
66 }
67 
68 TString
69 NameScheme::name(ofstream& file, const char* name)
70 {
71  TString namestr( name_ );
72  namestr += link_;
73  namestr += name;
74 
75  file << namestr << "\n";
76  return namestr;
77 }
78 
79 TString
80 NameScheme::name(ofstream& file, const char* name, const int i)
81 {
82  TString namestr( name_ );
83  namestr += link_;
84  namestr += name;
85  namestr += "_";
86  namestr += i;
87 
88  file << namestr << "\n";
89  return namestr;
90 }
91 
92 TString
93 NameScheme::name(ofstream& file, const char* name, const int i, const int j)
94 {
95  TString namestr( name_ );
96  namestr += link_;
97  namestr += name;
98  namestr += "_";
99  namestr += i;
100  namestr += "_";
101  namestr += j;
102 
103  file << namestr << "\n";
104  return namestr;
105 }
int i
Definition: DBlmapReader.cc:9
const char * name_
Definition: NameScheme.h:28
list file
Definition: dbtoweb.py:253
std::string link(std::string &nm, std::string &ns)
Definition: hierarchy.cc:47
int j
Definition: DBlmapReader.cc:9
TString name(const int)
Definition: NameScheme.cc:27
const char * link_
Definition: NameScheme.h:29