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