CHROMA
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 
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 {
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
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
Enum std::map.
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams &param)
Read parameters.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams &param)
Writer parameters.
CfgType
Configuration type.
SingletonHolder< EnumTypeMap< CfgType > > theCfgTypeMap
@ CFG_TYPE_WEAK_FIELD
@ CFG_TYPE_DISORDERED
@ CFG_TYPE_SZINQIO
@ CFG_TYPE_CLASSICAL_SF
@ CFG_TYPE_NERSC
@ CFG_TYPE_CPPACS
@ CFG_TYPE_SCIDAC
int t
Definition: meslate.cc:37
const std::string typeIDString
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Singleton support.