CHROMA
enum_md_integrator_type_io.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief MD integrator enum
4  */
6 
7 #include <string>
8 
9 namespace Chroma {
10 
11  namespace MDIntegratorTypeEnv {
12 
13  bool registerAll(void)
14  {
15  bool success;
16  success = theMDIntegratorTypeMap::Instance().registerPair(std::string("PQP_LEAPFROG"), MD_PQP_LEAPFROG);
17  success &=theMDIntegratorTypeMap::Instance().registerPair(std::string("QPQ_LEAPFROG"), MD_QPQ_LEAPFROG);
18 
19  return success;
20  }
21 
22  const std::string typeIDString = "MDIntegratorType";
24  }
25 
26  using namespace MDIntegratorTypeEnv;
27  //! Read an MDIntegratorType enum
28  void read(XMLReader& xml_in, const std::string& path, MDIntegratorType& t) {
29  theMDIntegratorTypeMap::Instance().read(typeIDString, xml_in, path,t);
30  }
31 
32  //! Write an MDIntegratorType enum
33  void write(XMLWriter& xml_out, const std::string& path, const MDIntegratorType& t) {
34  theMDIntegratorTypeMap::Instance().write(typeIDString,xml_out, path, t);
35  }
36 }
static T & Instance()
Definition: singleton.h:432
MD integrator enum.
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.
MDIntegratorType
MDIntegrator type.
int t
Definition: meslate.cc:37
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979