36 #ifndef Foam_formattingEntry_H 37 #define Foam_formattingEntry_H 69 "__format-entry__" + std::to_string(
n),
144 virtual void write(Ostream&
os)
const;
A class for handling keywords in dictionaries.
A dictionary entry writing only contents by default, used to save formatting symbols for the final ou...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
A token holds an item read from Istream.
formattingEntry(const keyType &key, const char *s, std::streamsize len)
Construct with character data, using the provided keyword.
bool active() const noexcept
Get the output visibility.
A keyword and a list of tokens comprise a primitiveEntry. A primitiveEntry can be read...
static keyType defaultName(label n)
Generate an entry keyword: "__format-entry__NNN". The generated names are unlikely to collide with us...
OBJstream os(runTime.globalPath()/outputName)
virtual autoPtr< entry > clone() const
Construct on freestore as copy.
virtual void write(Ostream &os) const
Write content without the keyword.
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
primitiveEntry(const keyType &key)
Construct from keyword and no tokens.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
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))