Bridge++
Ver. 1.1.x
Main Page
Namespaces
Classes
Files
File List
File Members
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
56
class
GaugeConfig
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.
90
GaugeConfig
(
const
GaugeConfig
&) {}
91
GaugeConfig
&
operator=
(
const
GaugeConfig
&);
92
93
protected
:
94
string
m_prefix
,
m_postfix
;
95
Bridge::VerboseLevel
m_vl
;
96
FieldIO
*
m_fieldio
;
97
};
98
#endif
src
IO
gaugeConfig.h
Generated on Tue Jul 23 2013 10:48:49 for Bridge++ by
1.8.3.1