14 #ifndef DATAIO_TEXT_INCLUDED
15 #define DATAIO_TEXT_INCLUDED
50 virtual void read_file(
double *v,
const size_t n,
const string& f)
52 virtual void write_file(
const double *v,
const size_t n,
const string& f,
const bool append =
true)
55 virtual void read_file(dcomplex *v,
const size_t n,
const string& f)
57 virtual void write_file(
const dcomplex *v,
const size_t n,
const string& f,
const bool append =
true)
60 virtual void read_file(std::vector<double>& v,
const string& f)
62 virtual void write_file(
const std::vector<double>& v,
const string& f,
const bool append =
true)
65 std::vector<double>& p =
const_cast<std::vector<double>&
>(v);
70 virtual void read_file(std::vector<dcomplex>& v,
const string& f)
72 virtual void write_file(
const std::vector<dcomplex>& v,
const string& f,
const bool append =
true)
75 std::vector<dcomplex>& p =
const_cast<std::vector<dcomplex>&
>(v);
89 void write_file_base(
const T *v,
const size_t n,
const string&,
const bool append =
true);
95 inline void store_data(
const T& v, fstream& fs);
void read_file_base(T *v, const size_t n, const string &)
void store_data(const T &v, fstream &fs)
virtual void write_file(const dcomplex *v, const size_t n, const string &f, const bool append=true)
DataIO_Text class for general file I/O in plain Text format.
virtual void read_file(std::vector< dcomplex > &v, const string &f)
virtual void write_file(const std::vector< double > &v, const string &f, const bool append=true)
void set_parameter(const int precision)
virtual void read_file(double *v, const size_t n, const string &f)
void write_file_base(const T *v, const size_t n, const string &, const bool append=true)
virtual void read_file(std::vector< double > &v, const string &f)
void fetch_data(T &v, fstream &fs)
virtual void write_file(const std::vector< dcomplex > &v, const string &f, const bool append=true)
virtual void write_file(const double *v, const size_t n, const string &f, const bool append=true)
DataIO class for file I/O of general collection of data.
virtual void read_file(dcomplex *v, const size_t n, const string &f)