44 for (
const token& tok : toks)
72 const auto&
s = tok.stringToken();
73 if (
s.starts_with(
"//") && !
s.ends_with(
'\n'))
94 primitiveEntry(key, token::undefinedToken)
107 const std::string& content
121 std::string&& content
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
T & front()
Access first element of the list, position [0].
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.
virtual void write(Ostream &os) const
Write content without the keyword.
A class for handling keywords in dictionaries.
A keyword and a list of tokens comprise a primitiveEntry. A primitiveEntry can be read,...
A token holds an item read from Istream.
@ CHAR_DATA
String-variant: plain character content.
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))
static void writeTokens(Ostream &os, const UList< token > &toks)