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
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
void trim()
Inplace trim leading and trailing whitespace.
exprString(exprString &&rhs)=default
Move construct.
static exprString getOptional(const word &keyword, const dictionary &dict, const bool stripComments=true)
bool valid() const
Check for unexpanded '$' entries. Fatal if any exist.
exprString()=default
Default construct.
static void inplaceExpand(std::string &str, const dictionary &dict, const bool stripComments=true)
void expand(const dictionary &dict, const bool stripComments=true)
exprString & operator=(exprString &&str)=default
Move assign.
exprString & operator=(const exprString &str)=default
Copy assign.
static exprString getEntry(const word &keyword, const dictionary &dict, const bool stripComments=true)
static exprString toExpr(const std::string &str)
Copy convert string to exprString.
bool readEntry(const word &keyword, const dictionary &dict, bool mandatory=true, const bool stripComments=true)
~exprString()=default
Destructor.
exprString(const exprString &rhs)=default
Copy construct.
bool writeEntry(const word &keyword, Ostream &os, bool writeEmpty=false) const
A class for handling character strings derived from std::string.
A class for handling words, derived from Foam::string.
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))
Hash function class. The default definition is for primitives. Non-primitives used to hash entries on...
Hashing functor for string and derived string classes.