Go to the documentation of this file.
43 #ifndef expressions_exprString_H
44 #define expressions_exprString_H
78 inline explicit exprString(
const std::string&
s,
bool doValidate=
true);
81 inline explicit exprString(std::string&&
s,
bool doValidate=
true);
84 inline explicit exprString(
const char*
s,
bool doValidate=
true);
90 const std::string& str,
92 const bool stripComments =
true
101 const bool stripComments =
true
110 const bool stripComments =
true
133 const bool stripComments =
true
143 const bool stripComments =
true
153 const bool stripComments =
true
168 inline bool valid()
const;
183 bool mandatory =
true,
184 const bool stripComments =
true
215 bool writeEmpty =
false
static exprString getEntry(const word &keyword, const dictionary &dict, const bool stripComments=true)
A class for handling words, derived from Foam::string.
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 exprString toExpr(const std::string &str)
A class for handling character strings derived from std::string.
static exprString getOptional(const word &keyword, const dictionary &dict, const bool stripComments=true)
Hash function class. The default definition is for primitives. Non-primitives used to hash entries on...
void expand(const dictionary &dict, const bool stripComments=true)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
bool readEntry(const word &keyword, const dictionary &dict, bool mandatory=true, const bool stripComments=true)
bool writeEntry(const word &keyword, Ostream &os, bool writeEmpty=false) const
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static void inplaceExpand(std::string &str, const dictionary &dict, const bool stripComments=true)
exprString & operator=(const exprString &str)=default