Bridge++
Ver. 2.0.2
dataIO.h
Go to the documentation of this file.
1
14
#ifndef DATAIO_INCLUDED
15
#define DATAIO_INCLUDED
16
17
#include "
bridge_complex.h
"
18
19
#include "
Parameters/commonParameters.h
"
20
#include "
bridgeIO.h
"
21
using
Bridge::vout
;
22
23
#include <string>
24
using
std::string;
25
26
28
38
class
DataIO
39
{
40
public
:
41
DataIO
() :
m_vl
(
CommonParameters
::Vlevel()) {}
42
virtual
~DataIO
() {}
43
44
private
:
45
// non-copyable
46
DataIO
(
const
DataIO
&);
47
DataIO
&
operator=
(
const
DataIO
&);
48
49
public
:
50
51
virtual
void
read_file
(
double
*v,
const
size_t
n,
const
string
&) = 0;
52
virtual
void
write_file
(
const
double
*v,
const
size_t
n,
const
string
&,
const
bool
append =
true
) = 0;
53
54
virtual
void
read_file
(dcomplex *v,
const
size_t
n,
const
string
&) = 0;
55
virtual
void
write_file
(
const
dcomplex *v,
const
size_t
n,
const
string
&,
const
bool
append =
true
) = 0;
56
57
virtual
void
read_file
(std::vector<double>&,
const
string
&) = 0;
58
virtual
void
write_file
(
const
std::vector<double>&,
const
string
&,
const
bool
append =
true
) = 0;
59
60
virtual
void
read_file
(std::vector<dcomplex>&,
const
string
&) = 0;
61
virtual
void
write_file
(
const
std::vector<dcomplex>&,
const
string
&,
const
bool
append =
true
) = 0;
62
63
protected
:
64
Bridge::VerboseLevel
m_vl
;
65
};
66
#endif
/* DATAIO_INCLUDED */
bridgeIO.h
CommonParameters
Common parameter class: provides parameters as singleton.
Definition:
commonParameters.h:42
DataIO::read_file
virtual void read_file(double *v, const size_t n, const string &)=0
bridge_complex.h
DataIO::m_vl
Bridge::VerboseLevel m_vl
Definition:
dataIO.h:64
commonParameters.h
Bridge::VerboseLevel
VerboseLevel
Definition:
bridgeIO.h:42
DataIO
DataIO class for file I/O of general collection of data.
Definition:
dataIO.h:38
DataIO::write_file
virtual void write_file(const double *v, const size_t n, const string &, const bool append=true)=0
DataIO::operator=
DataIO & operator=(const DataIO &)
DataIO::~DataIO
virtual ~DataIO()
Definition:
dataIO.h:42
DataIO::DataIO
DataIO()
Definition:
dataIO.h:41
Bridge::vout
BridgeIO vout
Definition:
bridgeIO.cpp:512
src
lib
IO
dataIO.h
Generated on Sat Feb 10 2024 14:20:00 for Bridge++ by
1.8.17