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 <costas.andreopoulos \at stfc.ac.uk>
9  University of Liverpool & STFC Rutherford Appleton Lab
10 
11 \created October 20, 2006
12 
13 \cpright Copyright (c) 2003-2019, The GENIE Collaboration
14  For the full text of the license visit http://copyright.genie-mc.org
15  or see $GENIE/LICENSE
16 */
17 //____________________________________________________________________________
18 
19 #ifndef _REGISTRY_ITEM_TYPE_ID_H_
20 #define _REGISTRY_ITEM_TYPE_ID_H_
21 
22 #include<string>
23 
24 using std::string;
25 
26 namespace genie {
27 
28 typedef enum ERgType {
29 
39 
40 } RgType_t;
41 
42 class RgType {
43 
44 public:
45  static string AsString(RgType_t rt)
46  {
47  switch (rt) {
48  case (kRgUndefined) : return "undefined"; break;
49  case (kRgBool) : return "bool"; break;
50  case (kRgInt) : return "int"; break;
51  case (kRgDbl) : return "double"; break;
52  case (kRgStr) : return "string"; break;
53  case (kRgAlg) : return "alg"; break;
54  case (kRgH1F) : return "h1f"; break;
55  case (kRgH2F) : return "h2f"; break;
56  case (kRgTree) : return "tree"; break;
57  default : return "undefined";
58  }
59  }
60 };
61 
62 } // genie namespace
63 #endif // _REGISTRY_ITEM_TYPE_ID_H_
static string AsString(RgType_t rt)
THE MAIN GENIE PROJECT NAMESPACE
Definition: GeneratorBase.h:8
enum genie::ERgType RgType_t
enum BeamMode string