1 #ifndef TPZFILESTREAM_H 2 #define TPZFILESTREAM_H 8 template <
class T>
class Fad;
9 template <
int Num,
class T>
class TFad;
30 void OpenRead(
const std::string &fileName);
31 void OpenWrite(
const std::string &fileName);
45 virtual void Write(
const int *p,
int howMany) {
46 WriteData<int>(p,howMany);
49 virtual void Write(
const unsigned int *p,
int howMany) {
50 WriteData<unsigned int>(p,howMany);
53 virtual void Write(
const uint64_t *p,
int howMany) {
54 WriteData<uint64_t>(p,howMany);
57 virtual void Write(
const int64_t *p,
int howMany) {
58 WriteData<int64_t>(p,howMany);
61 virtual void Write(
const float *p,
int howMany) {
62 WriteData<float>(p,howMany);
65 virtual void Write(
const double *p,
int howMany) {
66 WriteData<double>(p,howMany);
69 virtual void Write(
const unsigned char *p,
int howMany) {
70 WriteData<unsigned char>(p,howMany);
73 virtual void Write(
const char *p,
int howMany) {
74 WriteData<char>(p,howMany);
77 virtual void Write(
const std::complex <float> *p,
int howMany) {
78 WriteData< std::complex <float> >(p,howMany);
81 virtual void Write(
const std::complex <double> *p,
int howMany) {
82 WriteData< std::complex <double> >(p,howMany);
88 WriteData< TFad <1,REAL> >(p,howMany);
92 WriteData< TFad <6,REAL> >(p,howMany);
96 WriteData< TFad <8,REAL> >(p,howMany);
100 WriteData< TFad <9,REAL> >(p,howMany);
104 WriteData< TFad <10,REAL> >(p,howMany);
108 WriteData< TFad <14,REAL> >(p,howMany);
112 WriteData< Fad <float> >(p,howMany);
116 WriteData< Fad <double> >(p,howMany);
123 virtual void Read(
int *p,
int howMany) {
124 ReadData<int>(p,howMany);
127 virtual void Read(
unsigned int *p,
int howMany) {
128 ReadData<unsigned int>(p,howMany);
131 virtual void Read(uint64_t *p,
int howMany) {
132 ReadData<uint64_t>(p,howMany);
135 virtual void Read(int64_t *p,
int howMany) {
136 ReadData<int64_t>(p,howMany);
139 virtual void Read(
float *p,
int howMany) {
140 ReadData<float>(p,howMany);
143 virtual void Read(
double *p,
int howMany) {
144 ReadData<double>(p,howMany);
147 virtual void Read(
unsigned char *p,
int howMany) {
148 ReadData<unsigned char>(p,howMany);
151 virtual void Read(
char *p,
int howMany) {
152 ReadData<char>(p,howMany);
155 virtual void Read(std::complex <float> *p,
int howMany) {
156 ReadData< std::complex <float> >(p,howMany);
159 virtual void Read(std::complex <double> *p,
int howMany) {
160 ReadData< std::complex <double> >(p,howMany);
166 ReadData< TFad <1,REAL> >(p,howMany);
170 ReadData< TFad <6,REAL> >(p,howMany);
174 ReadData< TFad <8,REAL> >(p,howMany);
178 ReadData< TFad <9,REAL> >(p,howMany);
182 ReadData< TFad <10,REAL> >(p,howMany);
186 ReadData< TFad <14,REAL> >(p,howMany);
190 ReadData< Fad <float> >(p,howMany);
194 ReadData< Fad <double> >(p,howMany);
200 #endif// TPZFILESTREAM_H virtual void Write(const int *p, int howMany)
virtual void Write(const double *p, int howMany)
void ReadData(T *p, int howMany)
virtual void Write(const std::complex< double > *p, int howMany)
virtual void Read(unsigned int *p, int howMany)
virtual void Read(std::complex< double > *p, int howMany)
void OpenWrite(const std::string &fileName)
virtual void Write(const char *p, int howMany)
virtual void Write(const float *p, int howMany)
virtual void Read(char *p, int howMany)
void OpenRead(const std::string &fileName)
virtual void Read(uint64_t *p, int howMany)
Implements reading from and writing to an ascii file. Persistency.
virtual void Write(const bool val)
virtual void Read(int *p, int howMany)
void WriteData(const T *p, int howMany)
virtual void Read(float *p, int howMany)
virtual bool AmIOpenForWrite()
virtual void Read(unsigned char *p, int howMany)
virtual void Write(const unsigned char *p, int howMany)
virtual void Read(int64_t *p, int howMany)
virtual void Write(const uint64_t *p, int howMany)
virtual void Write(const int64_t *p, int howMany)
virtual void Write(const unsigned int *p, int howMany)
virtual void Write(const std::complex< float > *p, int howMany)
virtual void Read(std::complex< float > *p, int howMany)
virtual bool AmIOpenForRead()
virtual void Read(double *p, int howMany)
virtual void Read(bool &val)