36 #ifndef Foam_ensightReadFile_H 37 #define Foam_ensightReadFile_H A class for handling file names.
ensightReadFile(const ensightReadFile &)=delete
No copy construct.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
void operator=(const ensightReadFile &)=delete
No copy assignment.
static IOstreamOption::streamFormat detectBinaryHeader(const fileName &pathname)
Detect if the file is binary by testing for initial "(C|Fortran) Binary".
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
virtual Istream & read(token &)=0
Return next token from stream.
A variant of IFstream with specialised read() for strings, integers and floats. Correctly handles bin...
Istream & readBinaryHeader()
Read "C Binary" for binary files (eg, geometry/measured)
Input from file stream, using an ISstream.
~ensightReadFile()=default
Destructor.
virtual Istream & readKeyword(string &key)
Read element keyword.
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
virtual Istream & read(char *buf, std::streamsize count)
Binary read.
streamFormat
Data format (ascii | binary)