CHROMA
enum_wavetype_io.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Wavetype enum
4  */
5 #ifndef enum_wavetype_io_h
6 #define enum_wavetype_io_h
7 
8 #include "chromabase.h"
9 #include <string>
10 #include "singleton.h"
12 
13 
14 namespace Chroma {
15 
16  /*************** SOURCES ********************************/
17  /*!
18  * Types and structures
19  *
20  * \ingroup io
21  *
22  * @{
23  */
24 
25  //! Wave state type
27  {
31  };
32 
33  namespace WaveStateTypeEnv {
34  extern const std::string typeIDString;
35  extern bool registered;
36  bool registerAll(void); // Forward declaration
37  }
38 
39  // A singleton to hold the typemap
41 
42  //! Read an WaveStateType enum
43  void read(XMLReader& r, const std::string& path, WaveStateType& t);
44 
45  //! Write an WaveStateType enum
46  void write(XMLWriter& w, const std::string& path, const WaveStateType& t);
47 
48  /*! @} */ // end of group io
49 
50 }
51 #endif
Primary include file for CHROMA library code.
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.
WaveStateType
Wave state type.
SingletonHolder< EnumTypeMap< WaveStateType > > theWaveStateTypeMap
@ WAVE_TYPE_D_WAVE
@ WAVE_TYPE_P_WAVE
@ WAVE_TYPE_S_WAVE
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.