86 const word& entryName,
93 readEntry(entryName,
dict);
106 const bool removeComments
122 expr.string::operator=(str);
133 expr.string::operator=(std::move(str));
142 const std::string& str,
144 const bool stripComments
150 expr.expand(
dict, stripComments);
161 const bool stripComments
167 expr.expand(
dict, 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));
propsDict readIfPresent("fields", acceptFields)
@ READ_IF_PRESENT
Reading is optional [identical to LAZY_READ].
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,...
A variant of Foam::string with expansion of dictionary variables into a comma-separated form.
bool readIfPresent(const word &keyword, const dictionary &dict)
Read/expand optional entry with dictionary variables, and strip any embedded C/C++ comments from the ...
bool valid() const
Check for unexpanded '$' entries. Fatal if any exist.
exprString()=default
Default construct.
void expand(const dictionary &dict, const bool stripComments=true)
Inplace expansion with dictionary variables, and strip any embedded C/C++ comments.
exprString & operator=(const exprString &str)=default
Copy assign.
static exprString toExpr(const std::string &str)
Copy convert string to exprString.
bool readEntry(const word &keyword, const dictionary &dict, IOobjectOption::readOption readOpt=IOobjectOption::MUST_READ)
Read/expand entry with dictionary variables, and strip any embedded C/C++ comments from the input.
A class for handling character strings derived from std::string.
string()=default
Default construct.
bool contains(char c) const noexcept
True if string contains given character (cf. C++23).
A class for handling words, derived from Foam::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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))
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a).