Go to the documentation of this file.
22 #ifndef __dataIO_hpp__
23 #define __dataIO_hpp__
115 std::vector<T>& data);
#define fatalExit
Fatal exit.
bool writeDataAsciiBinary(iOstream &os, span< T > data)
bool writeData(iOstream &os, span< T > data)
Write data to the end of file from all processors.
virtual bool gatherData(span< T > data)=0
gather data from all processors and put the results in buffer_
static uniquePtr< dataIO > create(const IOPattern &iop)
TypeInfo("dataIO")
Type info.
dataIO & operator=(const dataIO &)=default
dataIO(const IOPattern &iop)
bool writeDataASCII(iOstream &os, span< T > data)
Interface class for any input stream
bool readDataAsciiBinary(iIstream &is, std::vector< T > &data)
bool readDataAscii(iIstream &is, std::vector< T > &vec)
INLINE_FUNCTION iOstream & operator<<(iOstream &str, const AB3History &ab3)
virtual ~dataIO()=default
virtual const word & name() const
Return the name of the stream.
#define ioErrorInFile(fileName, lineNumber)
Report an error in file operation with supplied fileName and lineNumber.
int32 lineNumber() const
Const access to the current stream line number.
Interface class for any output stream.
create_vCtor(dataIO, IOPattern,(const IOPattern &iop),(iop))
bool readData(iIstream &is, std::vector< T > &data)