Go to the documentation of this file.
53 sprintf(buf, dirFmt_.c_str(),
n);
67 std::ostringstream oss;
68 oss <<
"%0" <<
n <<
"d";
118 bool old = allowUndef_;
129 scalar old = undefValue_;
138 std::streamsize count
141 stdStream().
write(buf, count);
148 return write(
string(value));
176 reinterpret_cast<char const *
>(buf),
193 unsigned int ivalue(value);
197 reinterpret_cast<char const *
>(&ivalue),
203 stdStream().width(10);
204 stdStream() << value;
214 const label fieldWidth
219 unsigned int ivalue(value);
223 reinterpret_cast<char const *
>(&ivalue),
229 stdStream().width(fieldWidth);
230 stdStream() << value;
245 reinterpret_cast<char const *
>(&fvalue),
251 stdStream().width(12);
252 stdStream() << fvalue;
279 write(
string(key +
" undef"));
Smanip< ios_base::fmtflags > setf(const ios_base::fmtflags flags)
~ensightFile()
Destructor.
word format(conversionProperties.lookup("format"))
A class for handling file names.
static string mask()
The '*' mask appropriate for subDir.
Ostream & writeBinaryHeader()
Write "C Binary" for binary files (eg, geometry/measured)
A class for handling character strings derived from std::string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static const floatScalar floatScalarVGREAT
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.
graph_traits< Graph >::vertices_size_type size_type
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.
IOstream & scientific(IOstream &io)
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.