55 static bool allowUndef_;
58 static scalar undefValue_;
64 static string dirFmt_;
121 virtual Ostream&
write(
const char* buf, std::streamsize count);
Ostream & writeUndef()
Write undef value.
Ensight output with specialized write() for strings, integers and floats. Correctly handles binary wr...
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.
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.
ensightFile(const fileName &pathname, IOstream::streamFormat format=IOstream::BINARY)
Construct from pathname.
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.
virtual Ostream & write(const token &)=0
Write next token to stream.
void operator=(const ensightFile &)=delete
Disallow default bitwise assignment.
static label subDirWidth()
Return current width of subDir and mask.