GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RegistryItemTypeId.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::RegistryItemTypeId
5 
6 \brief An enumeration of Registry item types
7 
8 \author Costas Andreopoulos <c.andreopoulos \at cern.ch>
9  University of Liverpool
10 
11 \created October 20, 2006
12 
13 \cpright Copyright (c) 2003-2024, The GENIE Collaboration
14  For the full text of the license visit http://copyright.genie-mc.org
15 */
16 //____________________________________________________________________________
17 
18 #ifndef _REGISTRY_ITEM_TYPE_ID_H_
19 #define _REGISTRY_ITEM_TYPE_ID_H_
20 
21 #include<string>
22 
23 using std::string;
24 
25 namespace genie {
26 
27 typedef enum ERgType {
28 
38 
39 } RgType_t;
40 
41 class RgType {
42 
43 public:
44  static string AsString(RgType_t rt)
45  {
46  switch (rt) {
47  case (kRgUndefined) : return "undefined"; break;
48  case (kRgBool) : return "bool"; break;
49  case (kRgInt) : return "int"; break;
50  case (kRgDbl) : return "double"; break;
51  case (kRgStr) : return "string"; break;
52  case (kRgAlg) : return "alg"; break;
53  case (kRgH1F) : return "h1f"; break;
54  case (kRgH2F) : return "h2f"; break;
55  case (kRgTree) : return "tree"; break;
56  default : return "undefined";
57  }
58  }
59 };
60 
61 } // genie namespace
62 #endif // _REGISTRY_ITEM_TYPE_ID_H_
static string AsString(RgType_t rt)
enum genie::ERgType RgType_t