CHROMA
inline_write_timeslice_map_obj_disk.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline task to time-sliced std::map object
4  */
5 
6 #ifndef __inline_write_timeslice_map_obj_disk_h__
7 #define __inline_write_timeslice_map_obj_disk_h__
8 
9 #include "chromabase.h"
11 #include "io/xml_group_reader.h"
12 
13 namespace Chroma
14 {
15  /*! \ingroup inlineio */
16  namespace InlineWriteTimeSliceMapObjDiskEnv
17  {
18  bool registerAll();
19 
20  //! Parameter structure
21  /*! \ingroup inlineio */
22  struct Params
23  {
24  Params();
25  Params(XMLReader& xml_in, const std::string& path);
26 
27  unsigned int frequency;
28 
29  struct Param_t {
30  int start_t;
31  int end_t;
32  };
33 
34  struct NamedObject_t {
35  std::string object_type; /*!< Input object type */
36  std::string input_id; /*!< Input object id */
37  std::string output_file; /*!< Output std::map-object-disk */
38  };
39 
42  };
43 
44 
45  //! Inline task to time-sliced std::map object
46  /*! \ingroup inlineio */
48  {
49  public:
51  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 
67 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
void operator()(const unsigned long update_no, XMLWriter &xml_out)
Do the writing.
unsigned long getFrequency(void) const
Tell me how often I should measure this beastie.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Read an XML group as a std::string.