44 separateCloud_(false),
57 const word& formatKeyword,
73 ::snprintf(buf, 32, printf_.c_str(),
static_cast<int>(i));
77 return word(buf,
false);
93 printf_ =
"%0" + std::to_string(
n) +
"d";
A list of keyword definitions, which are a keyword followed by a number of values (eg...
A simple container for options an IOstream can normally have.
word padded(const label i) const
Consistent zero-padded integer value.
Configuration options for the ensightCase.
A class for handling words, derived from Foam::string.
IOstreamOption::floatFormat timeFormat() const noexcept
Time format for case file (general/fixed/scientific)
static floatFormat floatFormatEnum(const word &fmtName, const floatFormat deflt=floatFormat::general)
Lookup floatFormat enum corresponding to the string (general | fixed | scientific).
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
options(IOstreamOption::streamFormat fmt=IOstreamOption::BINARY)
Construct with the specified format (default is binary)
int timePrecision() const noexcept
Time precision for case file.
streamFormat
Data format (ascii | binary)
int width() const noexcept
Return current width of mask and padded.
IOstream & scientific(IOstream &io)