CHROMA
lib
io
enum_io
enum_cfgtype_io.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
/*! \file
3
* \brief CfgType enum
4
*/
5
6
#ifndef enum_cfgtype_io_h
7
#define enum_cfgtype_io_h
8
9
10
#include "
io/enum_io/enum_type_map.h
"
11
#include "
singleton.h
"
12
#include <string>
13
14
15
namespace
Chroma
{
16
17
/*!
18
* Types and structures
19
*
20
* \ingroup io
21
*
22
* @{
23
*/
24
//! Configuration type
25
enum
CfgType
{
26
CFG_TYPE_MILC
= 0,
27
CFG_TYPE_NERSC
,
28
CFG_TYPE_SCIDAC
,
29
CFG_TYPE_SZIN
,
30
CFG_TYPE_SZINQIO
,
31
CFG_TYPE_KYU
,
32
CFG_TYPE_DISORDERED
,
33
CFG_TYPE_UNIT
,
34
CFG_TYPE_CPPACS
,
35
CFG_TYPE_CERN
,
36
CFG_TYPE_WEAK_FIELD
,
37
CFG_TYPE_CLASSICAL_SF
,
38
CFG_TYPE_WUPP
,
39
};
40
41
42
namespace
CfgTypeEnv {
43
extern
bool
registered
;
44
extern
const
std::string
typeIDString
;
45
bool
registerAll
(
void
);
// Forward declaration
46
}
47
48
// A singleton to hold the typemap
49
typedef
SingletonHolder<EnumTypeMap<CfgType>
>
theCfgTypeMap
;
50
51
//! read a configuration type enum
52
void
read
(XMLReader& xml_in,
const
std::string
& path,
CfgType
&
t
);
53
54
//! write a configuration type enum
55
void
write
(XMLWriter& xml_out,
const
std::string
& path,
const
CfgType
&
t
);
56
57
/*! @} */
// end of group io
58
59
}
60
61
#endif
Chroma::SingletonHolder
Definition:
singleton.h:385
enum_type_map.h
Enum std::map.
Chroma::read
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams ¶m)
Read parameters.
Definition:
asqtad_fermact_params_s.cc:33
Chroma::write
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams ¶m)
Writer parameters.
Definition:
asqtad_fermact_params_s.cc:40
Chroma::CfgType
CfgType
Configuration type.
Definition:
enum_cfgtype_io.h:25
Chroma::theCfgTypeMap
SingletonHolder< EnumTypeMap< CfgType > > theCfgTypeMap
Definition:
enum_cfgtype_io.h:49
Chroma::CFG_TYPE_WEAK_FIELD
@ CFG_TYPE_WEAK_FIELD
Definition:
enum_cfgtype_io.h:36
Chroma::CFG_TYPE_MILC
@ CFG_TYPE_MILC
Definition:
enum_cfgtype_io.h:26
Chroma::CFG_TYPE_DISORDERED
@ CFG_TYPE_DISORDERED
Definition:
enum_cfgtype_io.h:32
Chroma::CFG_TYPE_SZINQIO
@ CFG_TYPE_SZINQIO
Definition:
enum_cfgtype_io.h:30
Chroma::CFG_TYPE_CLASSICAL_SF
@ CFG_TYPE_CLASSICAL_SF
Definition:
enum_cfgtype_io.h:37
Chroma::CFG_TYPE_NERSC
@ CFG_TYPE_NERSC
Definition:
enum_cfgtype_io.h:27
Chroma::CFG_TYPE_CPPACS
@ CFG_TYPE_CPPACS
Definition:
enum_cfgtype_io.h:34
Chroma::CFG_TYPE_WUPP
@ CFG_TYPE_WUPP
Definition:
enum_cfgtype_io.h:38
Chroma::CFG_TYPE_KYU
@ CFG_TYPE_KYU
Definition:
enum_cfgtype_io.h:31
Chroma::CFG_TYPE_UNIT
@ CFG_TYPE_UNIT
Definition:
enum_cfgtype_io.h:33
Chroma::CFG_TYPE_SCIDAC
@ CFG_TYPE_SCIDAC
Definition:
enum_cfgtype_io.h:28
Chroma::CFG_TYPE_SZIN
@ CFG_TYPE_SZIN
Definition:
enum_cfgtype_io.h:29
Chroma::CFG_TYPE_CERN
@ CFG_TYPE_CERN
Definition:
enum_cfgtype_io.h:35
t
int t
Definition:
meslate.cc:37
Chroma::CfgTypeEnv::typeIDString
const std::string typeIDString
Definition:
enum_cfgtype_io.cc:36
Chroma::CfgTypeEnv::registerAll
bool registerAll(void)
Definition:
enum_cfgtype_io.cc:14
Chroma::CfgTypeEnv::registered
bool registered
Definition:
enum_cfgtype_io.cc:35
Chroma
Asqtad Staggered-Dirac operator.
Definition:
klein_gord.cc:10
testing::internal::string
::std::string string
Definition:
gtest.h:1979
singleton.h
Singleton support.
Generated by
1.9.1