CHROMA
inline_io.cc
Go to the documentation of this file.
1 #include "chromabase.h"
2 #include "io/inline_io.h"
4 
5 
6 namespace Chroma {
7 
8  // Read an inline measurement
9  void read(XMLReader& xml,
10  const std::string& path,
11  Handle< AbsInlineMeasurement >& meas_handle)
12  {
13  meas_handle = readInlineMeasurement(xml, path);
14  }
15 
16 
17  // Return an inline measurement
19  const std::string& path)
20  {
21 
22  std::string measurement_name;
23  try {
24  XMLReader paramtop(xml, path);
25  read( paramtop, "./Name", measurement_name);
26  }
27  catch(const std::string& e) {
28  QDPIO::cerr << "Caught Exception Reading XML: " << e << std::endl;
29  QDP_abort(1);
30  }
31 
32  return TheInlineMeasurementFactory::Instance().createObject(measurement_name,
33  xml,
34  path);
35 
36  }
37 
38 }
Inline measurement factory.
Primary include file for CHROMA library code.
Class for counted reference semantics.
Definition: handle.h:33
static T & Instance()
Definition: singleton.h:432
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams &param)
Read parameters.
Support for inline measurements.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
AbsInlineMeasurement * readInlineMeasurement(XMLReader &xml, const std::string &path)
Definition: inline_io.cc:18
::std::string string
Definition: gtest.h:1979