Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
Generator
src
Framework
Registry
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 <constantinos.andreopoulos \at cern.ch>
9
University of Liverpool & STFC Rutherford Appleton Laboratory
10
11
\created October 20, 2006
12
13
\cpright Copyright (c) 2003-2020, 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
29
kRgUndefined
= 0,
30
kRgBool
,
31
kRgInt
,
32
kRgDbl
,
33
kRgStr
,
34
kRgAlg
,
35
kRgH1F
,
36
kRgH2F
,
37
kRgTree
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_
genie::RgType::AsString
static string AsString(RgType_t rt)
Definition:
RegistryItemTypeId.h:44
genie::kRgStr
Definition:
RegistryItemTypeId.h:33
genie::kRgH2F
Definition:
RegistryItemTypeId.h:36
genie
THE MAIN GENIE PROJECT NAMESPACE
Definition:
AlgCmp.h:25
genie::kRgBool
Definition:
RegistryItemTypeId.h:30
genie::kRgUndefined
Definition:
RegistryItemTypeId.h:29
string
std::string string
Definition:
nybbler.cc:12
genie::kRgAlg
Definition:
RegistryItemTypeId.h:34
genie::kRgTree
Definition:
RegistryItemTypeId.h:37
genie::kRgDbl
Definition:
RegistryItemTypeId.h:32
genie::ERgType
ERgType
Definition:
RegistryItemTypeId.h:27
genie::RgType_t
enum genie::ERgType RgType_t
genie::RgType
Definition:
RegistryItemTypeId.h:41
genie::kRgH1F
Definition:
RegistryItemTypeId.h:35
genie::kRgInt
Definition:
RegistryItemTypeId.h:31
Generated by
1.8.11