CHROMA
inline_xml_write_obj.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline task to write an object from a named buffer
4  *
5  * Named object writing
6  */
7 
8 #ifndef __inline_xml_write_obj_h__
9 #define __inline_xml_write_obj_h__
10 
11 #include "chromabase.h"
13 #include "io/qprop_io.h"
14 
15 namespace Chroma
16 {
17  /*! \ingroup inlineio */
18  namespace InlineXMLWriteNamedObjEnv
19  {
20  extern const std::string name;
21  bool registerAll();
22  }
23 
24  //! Parameter structure
25  /*! \ingroup inlineio */
27  {
29  InlineXMLWriteNamedObjParams(XMLReader& xml_in, const std::string& path);
30  void write(XMLWriter& xml_out, const std::string& path);
31 
32  unsigned long frequency;
33 
35  {
39 
40  struct File_t
41  {
43  } file;
44  };
45 
46  //! Inline writing of memory objects
47  /*! \ingroup inlineio */
49  {
50  public:
54 
55  unsigned long getFrequency(void) const {return params.frequency;}
56 
57  //! Do the writing
58  void operator()(const unsigned long update_no,
59  XMLWriter& xml_out);
60 
61  private:
63  };
64 
65 }
66 
67 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
Inline writing of memory objects.
void operator()(const unsigned long update_no, XMLWriter &xml_out)
Do the writing.
InlineXMLWriteNamedObj(const InlineXMLWriteNamedObj &p)
InlineXMLWriteNamedObjParams params
unsigned long getFrequency(void) const
Tell me how often I should measure this beastie.
InlineXMLWriteNamedObj(const InlineXMLWriteNamedObjParams &p)
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Routines associated with Chroma propagator IO.
struct Chroma::InlineXMLWriteNamedObjParams::NamedObject_t named_obj
struct Chroma::InlineXMLWriteNamedObjParams::File_t file
void write(XMLWriter &xml_out, const std::string &path)