55 static bool allowUndef_;
58 static scalar undefValue_;
64 static string dirFmt_;
Ostream & writeUndef()
Write undef value.
Ensight output with specialised write() for strings, integers and floats. Correctly handles binary wr...
virtual Ostream & write(const char)=0
Write character.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A class for handling file names.
static scalar undefValue(const scalar)
Assign the value to represent undef in the results.
label count(const ListType &l, typename ListType::const_reference x)
Count the number of occurrences of a value in a list.
static string subDir(const label)
Consistent zero-padded numbers for subdirectories.
virtual Ostream & writeKeyword(const string &key)
Write element keyword with trailing newline, optionally with undef.
~ensightFile()
Destructor.
streamFormat
Enumeration for the format of data in the stream.
static string mask()
The '*' mask appropriate for subDir.
streamFormat format() const
Return current stream format.
virtual Ostream & write(const char *buf, std::streamsize count)
Binary write.
static bool allowUndef()
Return setting for whether 'undef' values are allowed in results.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Ostream & writeBinaryHeader()
Write "C Binary" for binary files (eg, geometry/measured)
void newline()
Add carriage return to ascii stream.
void operator=(const ensightFile &)=delete
Disallow default bitwise assignment.
static label subDirWidth()
Return current width of subDir and mask.
ensightFile(const fileName &filePath, IOstream::streamFormat format=IOstream::BINARY)
Construct from filePath.