Go to the documentation of this file.
127 virtual Ostream&
write(
const char* buf, std::streamsize count);
~ensightFile()
Destructor.
streamFormat format() const
Return current stream format.
A class for handling file names.
static string mask()
The '*' mask appropriate for subDir.
void operator=(const ensightFile &)
Disallow default bitwise assignment.
Ostream & writeBinaryHeader()
Write "C Binary" for binary files (eg, geometry/measured)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual Ostream & write(const token &)=0
Write next token to stream.
void newline()
Add carriage return to ascii stream.
Ostream & writeUndef()
Write undef value.
static label subDirWidth()
Return current width of subDir and mask.
virtual Ostream & write(const char *buf, std::streamsize count)
Binary write.
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.
static bool allowUndef()
Return setting for whether 'undef' values are allowed in results.
static string mask_
The '*' mask appropriate for subDir.
static scalar undefValue(const scalar)
Assign the value to represent undef in the results.
Ensight output with specialized write() for strings, integers and floats. Correctly handles binary wr...
static bool allowUndef_
Allow undef in results.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static scalar undefValue_
Value to represent undef in results.
static string dirFmt_
The printf format for zero-padded subdirectory numbers.
ensightFile(const ensightFile &)
Disallow default copy constructor.
streamFormat
Enumeration for the format of data in the stream.