NeoPZ
|
Implements reading from and writing to an ascii file. Persistency. More...
#include <TPZFileStream.h>
Public Member Functions | |
TPZFileStream () | |
virtual | ~TPZFileStream () |
void | OpenRead (const std::string &fileName) |
void | OpenWrite (const std::string &fileName) |
virtual bool | AmIOpenForRead () |
virtual bool | AmIOpenForWrite () |
void | CloseRead () |
void | CloseWrite () |
bool | eof () |
virtual void | Write (const int *p, int howMany) |
virtual void | Write (const unsigned int *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 float *p, int howMany) |
virtual void | Write (const double *p, int howMany) |
virtual void | Write (const unsigned char *p, int howMany) |
virtual void | Write (const char *p, int howMany) |
virtual void | Write (const std::complex< float > *p, int howMany) |
virtual void | Write (const std::complex< double > *p, int howMany) |
virtual void | Read (int *p, int howMany) |
virtual void | Read (unsigned int *p, int howMany) |
virtual void | Read (uint64_t *p, int howMany) |
virtual void | Read (int64_t *p, int howMany) |
virtual void | Read (float *p, int howMany) |
virtual void | Read (double *p, int howMany) |
virtual void | Read (unsigned char *p, int howMany) |
virtual void | Read (char *p, int howMany) |
virtual void | Read (std::complex< float > *p, int howMany) |
virtual void | Read (std::complex< double > *p, int howMany) |
Public Member Functions inherited from TPZStream | |
TPZStream () | |
virtual | ~TPZStream () |
virtual void | Write (const bool val) |
virtual void | Write (const long double *p, int howMany=1) |
Writes howMany floating points at pointer location p. More... | |
virtual void | Write (const std::string *p, int howMany=1) |
virtual void | Write (const std::complex< long double > *p, int howMany=1) |
Writes howMany complex-long double at pointer location p. More... | |
void | Write (const TPZFlopCounter *p, int howMany=1) |
virtual void | Read (bool &val) |
virtual void | Read (long double *p, int howMany=1) |
virtual void | Read (std::string *p, int howMany=1) |
virtual void | Read (std::complex< long double > *p, int howMany=1) |
Reads howMany complex-long double from pointer location p. More... | |
void | Read (TPZFlopCounter *p, int howMany=1) |
template<class T , typename std::enable_if<(std::is_same< std::string, T >::value||is_arithmetic_pz< T >::value), int >::type * = nullptr> | |
void | Write (const TPZVec< T > &vec) |
template<class T , typename std::enable_if<!(std::is_same< std::string, T >::value||is_arithmetic_pz< T >::value), int >::type * = nullptr> | |
void | Write (const TPZVec< T > &vec) |
template<class T > | |
void | WritePointers (const TPZVec< TPZAutoPointer< T >> &vec) |
template<class T , typename std::enable_if<(std::is_same< std::string, T >::value||is_arithmetic_pz< T >::value), int >::type * = nullptr> | |
void | Write (const std::vector< T > &vec) |
template<class T , typename std::enable_if<!(std::is_same< std::string, T >::value||is_arithmetic_pz< T >::value), int >::type * = nullptr> | |
void | Write (const std::vector< T > &vec) |
void | Write (const TPZVec< TPZFlopCounter > &vec) |
template<class T , class U > | |
void | Write (const std::map< T, U > &vec) |
template<class T , typename std::enable_if<(std::is_same< std::string, T >::value||is_arithmetic_pz< T >::value), int >::type * = nullptr> | |
void | Write (const std::set< T > &vec) |
template<class T > | |
void | Read (TPZVec< T > &vec) |
template<class T , typename std::enable_if<!(std::is_same< std::string, T >::value||is_arithmetic_pz< T >::value), int >::type * = nullptr> | |
void | Read (TPZVec< T > &vec, void *context) |
template<class T , typename std::enable_if<(std::is_same< std::string, T >::value||is_arithmetic_pz< T >::value), int >::type * = nullptr> | |
void | Read (TPZVec< T > &vec, void *context) |
template<class T > | |
void | ReadPointers (TPZVec< TPZAutoPointer< T >> &vec) |
void | Read (TPZVec< TPZFlopCounter > &vec) |
template<class T , typename std::enable_if<!(std::is_same< std::string, T >::value||is_arithmetic_pz< T >::value), int >::type * = nullptr> | |
void | Read (std::vector< T > &vec, void *context) |
template<class T , typename std::enable_if<(std::is_same< std::string, T >::value||is_arithmetic_pz< T >::value), int >::type * = nullptr> | |
void | Read (std::vector< T > &vec, void *context) |
template<int N> | |
void | Read (TPZManVector< REAL, N > &vec) |
template<int N> | |
void | Read (TPZManVector< int64_t, N > &vec) |
template<class T , class U > | |
void | Read (std::map< T, U > &vec) |
template<class T , typename std::enable_if<(std::is_same< std::string, T >::value||is_arithmetic_pz< T >::value), int >::type * = nullptr> | |
void | Read (std::set< T > &vec) |
template<class T > | |
void | WritePointers (const TPZVec< T *> &vec) |
template<class T > | |
void | ReadPointers (TPZVec< T *> &vec) |
template<class T > | |
void | WritePointers (const std::map< int, TPZAutoPointer< T >> &vec) |
template<class T > | |
void | ReadPointers (std::map< int, TPZAutoPointer< T > > &vec) |
template<class T > | |
void | WritePointers (const std::map< int, T *> &vec) |
template<class T > | |
void | ReadPointers (std::map< int, T *> &vec) |
template<class T > | |
void | WritePointers (const std::set< T *> &vec) |
template<class T > | |
void | ReadPointers (std::set< T *> &vec) |
template<class T , int EXP> | |
void | WritePointers (const TPZChunkVector< T *, EXP > &vec) |
template<class T , int EXP> | |
void | ReadPointers (TPZChunkVector< T *, EXP > &vec) |
template<class T , int EXP> | |
void | WritePointers (const TPZAdmChunkVector< T *, EXP > &vec) |
template<class T , int EXP> | |
void | ReadPointers (TPZAdmChunkVector< T *, EXP > &vec) |
template<class T > | |
void | ReadPointers (std::map< int, TPZAutoPointer< T >> &map) |
Private Member Functions | |
template<class T > | |
void | ReadData (T *p, int howMany) |
template<class T > | |
void | WriteData (const T *p, int howMany) |
Private Attributes | |
std::ifstream | fIn |
std::ofstream | fOut |
Implements reading from and writing to an ascii file. Persistency.
Definition at line 15 of file TPZFileStream.h.
TPZFileStream::TPZFileStream | ( | ) |
Definition at line 9 of file TPZFileStream.cpp.
|
virtual |
Definition at line 12 of file TPZFileStream.cpp.
References CloseRead(), and CloseWrite().
|
virtual |
Implements TPZGeneralFStream.
Definition at line 45 of file TPZFileStream.cpp.
References fIn.
Referenced by OpenRead().
|
virtual |
Implements TPZGeneralFStream.
Definition at line 49 of file TPZFileStream.cpp.
References fOut.
Referenced by OpenWrite().
|
virtual |
Implements TPZGeneralFStream.
Definition at line 53 of file TPZFileStream.cpp.
References fIn.
Referenced by ~TPZFileStream().
|
virtual |
Implements TPZGeneralFStream.
Definition at line 59 of file TPZFileStream.cpp.
References fOut.
Referenced by ~TPZFileStream().
|
inline |
Definition at line 39 of file TPZFileStream.h.
References TPZStream::Write().
|
virtual |
Implements TPZGeneralFStream.
Definition at line 17 of file TPZFileStream.cpp.
References AmIOpenForRead(), fIn, and PZError.
|
virtual |
Implements TPZGeneralFStream.
Definition at line 31 of file TPZFileStream.cpp.
References AmIOpenForWrite(), TPZPersistenceManagerNS::binary, fOut, and PZError.
Referenced by TPZEulerAnalysis::WriteCMesh().
|
inlinevirtual |
|
inlinevirtual |
Implements TPZStream.
Definition at line 127 of file TPZFileStream.h.
|
inlinevirtual |
Implements TPZStream.
Definition at line 131 of file TPZFileStream.h.
|
inlinevirtual |
Implements TPZStream.
Definition at line 135 of file TPZFileStream.h.
|
inlinevirtual |
Implements TPZStream.
Definition at line 139 of file TPZFileStream.h.
|
inlinevirtual |
Implements TPZStream.
Definition at line 143 of file TPZFileStream.h.
|
inlinevirtual |
Implements TPZStream.
Definition at line 147 of file TPZFileStream.h.
|
inlinevirtual |
Implements TPZStream.
Definition at line 151 of file TPZFileStream.h.
|
inlinevirtual |
Implements TPZStream.
Definition at line 155 of file TPZFileStream.h.
|
inlinevirtual |
|
private |
Definition at line 66 of file TPZFileStream.cpp.
|
inlinevirtual |
|
inlinevirtual |
Implements TPZStream.
Definition at line 49 of file TPZFileStream.h.
|
inlinevirtual |
Implements TPZStream.
Definition at line 53 of file TPZFileStream.h.
|
inlinevirtual |
Implements TPZStream.
Definition at line 57 of file TPZFileStream.h.
|
inlinevirtual |
Implements TPZStream.
Definition at line 61 of file TPZFileStream.h.
|
inlinevirtual |
Implements TPZStream.
Definition at line 65 of file TPZFileStream.h.
|
inlinevirtual |
Implements TPZStream.
Definition at line 69 of file TPZFileStream.h.
|
inlinevirtual |
Implements TPZStream.
Definition at line 73 of file TPZFileStream.h.
|
inlinevirtual |
Implements TPZStream.
Definition at line 77 of file TPZFileStream.h.
|
inlinevirtual |
Implements TPZStream.
Definition at line 81 of file TPZFileStream.h.
References TPZStream::Read(), and Write().
|
private |
Definition at line 87 of file TPZFileStream.cpp.
|
private |
Definition at line 17 of file TPZFileStream.h.
Referenced by AmIOpenForRead(), CloseRead(), OpenRead(), and ReadData().
|
private |
Definition at line 18 of file TPZFileStream.h.
Referenced by AmIOpenForWrite(), CloseWrite(), OpenWrite(), and WriteData().