17 PZError <<
"TPZBFileStream: File is already opened" << std::endl;
24 PZError <<
"TPZBFileStream: Could not open file" << std::endl;
32 PZError <<
"TPZBFileStream: File is already opened" << std::endl;
39 PZError <<
"TPZBFileStream: Could not open file" << std::endl;
54 return fOut.is_open();
72 fIn.read(reinterpret_cast<char *>(p), howMany *
sizeof(T));
75 PZError <<
"TBFileStream:Could not read from stream" << std::endl;
83 fOut.write(reinterpret_cast<const char *>(p), howMany *
sizeof(T));
86 PZError <<
"TBFileStream:Could not write to stream" << std::endl;
93 void TPZBFileStream::ReadData<double>(
double *p,
int howMany);
96 void TPZBFileStream::WriteData<double>(
const double *p,
int howMany);
void WriteData(const T *p, int howMany)
Reads howMany objects of the class T from pointer location p.
virtual bool AmIOpenForRead()
#define DebugStop()
Returns a message to user put a breakpoint in.
void OpenRead(const std::string &fileName)
void OpenWrite(const std::string &fileName)
virtual bool AmIOpenForWrite()
void ReadData(T *p, int howMany)
Reads howMany objects of the class T from pointer location p.
#define PZError
Defines the output device to error messages and the DebugStop() function.