86 const word& entryName,
93 readEntry(entryName,
dict);
122 expr.string::operator=(str);
133 expr.string::operator=(std::move(str));
142 const std::string& str,
144 const bool stripComments
161 const bool stripComments
177 const bool ok = !contains(
'$');
183 <<
"Unexpanded '$' in " << *
this <<
nl 207 string::operator=(str);
220 string::operator=(str);
233 string::operator=(std::move(str));
errorManipArg< error, int > exit(error &err, const int errNo=1)
bool valid() const
Check for unexpanded '$' entries. Fatal if any exist.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void expand(const dictionary &dict, const bool stripComments=true)
Inplace expansion with dictionary variables, and strip any embedded C/C++ comments.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
constexpr char nl
The newline '\n' character (0x0a)
exprString & operator=(const exprString &str)=default
Copy assign.
exprString()=default
Default construct.
A class for handling words, derived from Foam::string.
A variant of Foam::string with expansion of dictionary variables into a comma-separated form...
Reading is optional [identical to LAZY_READ].
bool readIfPresent(const word &keyword, const dictionary &dict)
Read/expand optional entry with dictionary variables, and strip any embedded C/C++ comments from the ...
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
meshDefDict readIfPresent("polyMeshPatches", polyPatchNames)
string removeComments(const std::string &s)
Return string with C/C++ comments removed.
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))
A class for handling character strings derived from std::string.
static exprString toExpr(const std::string &str)
Copy convert string to exprString.