36#ifndef Foam_formattingEntry_H
37#define Foam_formattingEntry_H
69 "__format-entry__" + std::to_string(
n),
128 bool active(
bool on)
noexcept
144 virtual void write(Ostream&
os)
const;
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual autoPtr< entry > clone() const
Construct on freestore as copy.
A dictionary entry writing only contents by default, used to save formatting symbols for the final ou...
formattingEntry(const keyType &key, const char *s, std::streamsize len)
Construct with character data, using the provided keyword.
primitiveEntry(const keyType &key)
Inherit all constructors from primitiveEntry.
formattingEntry(const label n, const char *s, std::streamsize len)
Construct with character data, using a generated keyword.
formattingEntry(const label n, const std::string &content)
Construct with character data, using a generated keyword.
virtual autoPtr< entry > clone(const dictionary &) const
Clone the entry.
bool active(bool on) noexcept
Set output visibility on/off.
bool active() const noexcept
Get the output visibility.
formattingEntry(const label n, std::string &&content)
Construct with character data, using a generated keyword.
formattingEntry(const label n, token &&tok, bool visible=true)
Construct with token data, using a generated keyword.
static keyType defaultName(label n)
Generate an entry keyword: "__format-entry__NNN". The generated names are unlikely to collide with us...
A class for handling keywords in dictionaries.
A keyword and a list of tokens comprise a primitiveEntry. A primitiveEntry can be read,...
primitiveEntry(const keyType &key)
Construct from keyword and no tokens.
A token holds an item read from Istream.
OBJstream os(runTime.globalPath()/outputName)
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))