Bridge++  Ver. 1.1.x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gaugeConfig.h
Go to the documentation of this file.
1 
15 #ifndef GAUGECONFIG_INCLUDED
16 #define GAUGECONFIG_INCLUDED
17 
18 #include <string>
19 using std::string;
20 
21 #include "defs.h"
22 #include "configure.h"
23 #include "commonParameters.h"
24 #include "field.h"
25 #include "field_G.h"
26 #include "fieldIO.h"
27 #include "bridgeIO.h"
28 using Bridge::vout;
29 
31 
57 {
58  public:
59  GaugeConfig(const string& type);
60  virtual ~GaugeConfig();
61 
62  static void set_cold(Field *U);
63 
64  void read_file(Field *u, const string& filename);
65  void write_file(Field *u, const string& filename);
66 
67  void read_config(Field *U, int confnum);
68  void write_config(Field *U, int confnum);
69 
70  void set_prefix(string prefix)
71  {
72  m_prefix = prefix;
73  }
74 
75  void set_postfix(string postfix)
76  {
77  m_postfix = postfix;
78  }
79 
80  void set_parameters(const string& prefix, const string& postfix)
81  {
82  set_prefix(prefix);
83  set_postfix(postfix);
84  }
85 
86  private:
87  string config_filename(const int);
88 
89  // not copyable.
92 
93  protected:
97 };
98 #endif