Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DefaultHepRepAttDef.cc
Go to the documentation of this file.
1 // Copyright FreeHEP, 2005.
2 
3 #include <iostream>
4 #include <cstring>
5 #include <cctype>
6 #include <algorithm>
7 
9 
10 using namespace std;
11 using namespace HEPREP;
12 
13 /**
14  * @author Mark Donszelmann
15  * @version $Id: DefaultHepRepAttDef.cc 66373 2012-12-18 09:41:34Z gcosmo $
16  */
17 namespace cheprep {
18 
19 DefaultHepRepAttDef::DefaultHepRepAttDef(string aName, string aDesc, string aCategory, string anExtra)
20  : name(aName), desc(aDesc), category(aCategory), extra(anExtra) {
21 }
22 
24 }
25 
27  return new DefaultHepRepAttDef(name, desc, category, extra);
28 }
29 
31  return name;
32 }
33 
35  string s = name;
36  transform(s.begin(), s.end(), s.begin(), (int(*)(int)) tolower);
37  return s;
38 }
39 
41  return desc;
42 }
43 
45  return category;
46 }
47 
49  return extra;
50 }
51 
52 } // cheprep
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
const XML_Char * s
const XML_Char * name
HEPREP::HepRepAttDef * copy()
DefaultHepRepAttDef(std::string name, std::string desc, std::string category, std::string extra)