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
144 const bool stripComments =
false
163 const bool stripComments =
true
167 inline bool valid()
const;
exprString & expand(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)
Copy convert string to exprString.
A class for handling character strings derived from std::string.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
word name(const complex &c)
Return string representation of complex.
exprString()=default
Construct null.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool valid() const
Check for unexpanded '$' entries. Fatal if any exist.
static exprString getExpression(const word &name, const dictionary &dict, const bool stripComments=false)
static void inplaceExpand(std::string &str, const dictionary &dict, const bool stripComments=true)
exprString & operator=(const exprString &str)=default
Copy assign.
~exprString()=default
Destructor.