31 bool Foam::ensightFile::allowUndef_ =
false;
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
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"));
graph_traits< Graph >::vertices_size_type size_type
streamFormat
Enumeration for the format of data in the stream.
ios_base::fmtflags setf(const ios_base::fmtflags f)
Set flags of stream.
virtual int precision() const
Get precision of output field.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual Ostream & write(const char)=0
Write character.
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.
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.
A class for handling character strings derived from std::string.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
IOstream & scientific(IOstream &io)
label count(const ListType &l, typename ListType::const_reference x)
Count the number of occurrences of a value in a list.
static const floatScalar floatScalarVGreat
word format(conversionProperties.lookup("format"))