Bridge++
Version 1.5.4
|
DataIO_Text class for general file I/O in plain Text format. More...
#include <dataIO_Text.h>
Public Member Functions | |
DataIO_Text () | |
~DataIO_Text () | |
virtual void | read_file (double *v, const size_t n, const string &f) |
virtual void | write_file (const double *v, const size_t n, const string &f, const bool append=true) |
virtual void | read_file (dcomplex *v, const size_t n, const string &f) |
virtual void | write_file (const dcomplex *v, const size_t n, const string &f, const bool append=true) |
virtual void | read_file (std::vector< double > &v, const string &f) |
virtual void | write_file (const std::vector< double > &v, const string &f, const bool append=true) |
virtual void | read_file (std::vector< dcomplex > &v, const string &f) |
virtual void | write_file (const std::vector< dcomplex > &v, const string &f, const bool append=true) |
void | set_parameter (const int precision) |
Public Member Functions inherited from DataIO | |
DataIO () | |
virtual | ~DataIO () |
Private Member Functions | |
template<typename T > | |
void | read_file_base (T *v, const size_t n, const string &) |
template<typename T > | |
void | write_file_base (const T *v, const size_t n, const string &, const bool append=true) |
template<typename T > | |
void | fetch_data (T &v, fstream &fs) |
template<typename T > | |
void | store_data (const T &v, fstream &fs) |
template<> | |
void | store_data (const double &v, fstream &fs) |
template<> | |
void | store_data (const dcomplex &v, fstream &fs) |
template<> | |
void | fetch_data (double &v, fstream &fs) |
template<> | |
void | fetch_data (dcomplex &v, fstream &fs) |
Private Attributes | |
int | m_format_precision |
Additional Inherited Members | |
Protected Attributes inherited from DataIO | |
Bridge::VerboseLevel | m_vl |
DataIO_Text class for general file I/O in plain Text format.
DataIO_Text class provides file I/O in plain Text format. output format of numerical precision can be specified through set_parameter method. default is given as enum.
Data are read from/written to file through the primary node (rank 0 usually).
The read/write methods in various data formats are all derived from template functions whose implementation given in dataIO_Text_impl.h included at the bottom.
Definition at line 44 of file dataIO_Text.h.
|
inline |
Definition at line 47 of file dataIO_Text.h.
|
inline |
Definition at line 48 of file dataIO_Text.h.
|
inlineprivate |
Definition at line 84 of file dataIO_Text_impl.h.
|
inlineprivate |
|
inlineprivate |
Definition at line 95 of file dataIO_Text_impl.h.
|
inlinevirtual |
Implements DataIO.
Definition at line 50 of file dataIO_Text.h.
|
inlinevirtual |
Implements DataIO.
Definition at line 55 of file dataIO_Text.h.
|
inlinevirtual |
Implements DataIO.
Definition at line 60 of file dataIO_Text.h.
|
inlinevirtual |
Implements DataIO.
Definition at line 70 of file dataIO_Text.h.
|
private |
Definition at line 18 of file dataIO_Text_impl.h.
|
inline |
Definition at line 80 of file dataIO_Text.h.
|
inlineprivate |
Definition at line 68 of file dataIO_Text_impl.h.
|
inlineprivate |
Definition at line 76 of file dataIO_Text_impl.h.
|
inlineprivate |
|
inlinevirtual |
Implements DataIO.
Definition at line 52 of file dataIO_Text.h.
|
inlinevirtual |
Implements DataIO.
Definition at line 57 of file dataIO_Text.h.
|
inlinevirtual |
Implements DataIO.
Definition at line 62 of file dataIO_Text.h.
|
inlinevirtual |
Implements DataIO.
Definition at line 72 of file dataIO_Text.h.
|
private |
Definition at line 41 of file dataIO_Text_impl.h.
|
private |
Definition at line 83 of file dataIO_Text.h.