CHROMA
inline_eigen_bin_lime_colvec_read_obj.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline task to read an object from a named buffer
4  *
5  * Named object reading
6  */
7 
8 #ifndef __inline_eigen_bin_lime_colvec_read_obj_h__
9 #define __inline_eigen_bin_lime_colvec_read_obj_h__
10 
11 #include "chromabase.h"
13 #include "io/xml_group_reader.h"
14 
15 namespace Chroma
16 {
17  /*! \ingroup inlineio */
18  namespace InlineEigenBinLimeColVecReadNamedObjEnv
19  {
20  bool registerAll();
21 
22  //! Parameter structure
23  /*! \ingroup inlineio */
24  struct Params
25  {
26  Params();
27  Params(XMLReader& xml_in, const std::string& path);
28 
29  unsigned long frequency;
30 
32  {
33  std::string object_id; /*!< Output object id */
34  GroupXML_t object_map; /*!< Output colorvecs */
36 
37  struct File_t
38  {
39  std::string file_name; //Lime files for all timeslices
40  } file;
41 
42  };
43 
44  //! Inline reading of latticecolorvectors that are eigenvectors
45  /*! \ingroup inlineio */
47  {
48  public:
50  InlineMeas(const Params& p) : params(p) {}
52 
53  unsigned long getFrequency(void) const {return params.frequency;}
54 
55  //! Do the writing
56  void operator()(const unsigned long update_no,
57  XMLWriter& xml_out);
58 
59  private:
61  };
62 
63  }
64 }
65 
66 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
Inline reading of latticecolorvectors that are eigenvectors.
unsigned long getFrequency(void) const
Tell me how often I should measure this beastie.
void operator()(const unsigned long update_no, XMLWriter &xml_out)
Do the writing.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Hold group xml and type id.
struct Chroma::InlineEigenBinLimeColVecReadNamedObjEnv::Params::File_t file
struct Chroma::InlineEigenBinLimeColVecReadNamedObjEnv::Params::NamedObject_t named_obj
Read an XML group as a std::string.