44namespace functionEntries
60 primitiveEntryIstream,
78 primitiveEntryIstream,
111 const bool mandatory,
117 const fileName fName(resolveEtcFile(rawName, parentDict));
129 parentDict.
read(ifs);
139 <<
"Cannot open etc file "
140 << (ifs.name().size() ? ifs.name() : rawName)
141 <<
" while reading dictionary " << parentDict.
relativeName()
150 const bool mandatory,
157 const fileName fName(resolveEtcFile(rawName, parentDict));
169 entry.read(parentDict, ifs);
179 <<
"Cannot open etc file "
180 << (ifs.name().size() ? ifs.name() : rawName)
181 <<
" while reading dictionary " << parentDict.
relativeName()
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
Macros for easy insertion into member function selection tables.
#define addNamedToMemberFunctionSelectionTable(baseType, thisType, funcName, argNames, lookupName)
Add to hash-table of functions with 'lookupName' as the key.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
fileName relativeName(const bool caseTag=false) const
The dictionary name relative to the case.
bool read(Istream &is)
Read dictionary from Istream. Discards the header.
A keyword and a list of tokens is an 'entry'.
A class for handling file names.
static bool isAbsolute(const std::string &str)
A dictionary directive for including a file found using the Foam::findEtcFile() mechanism.
static bool log
Report to stdout which file is included.
static fileName resolveEtcFile(const fileName &f, const dictionary &dict)
Expand include fileName and search etc directories for the file.
A functionEntry causes entries to be added/manipulated on the specified dictionary given an input str...
virtual bool execute()
Calculate the output fields.
Computes the natural logarithm of an input volScalarField.
A keyword and a list of tokens comprise a primitiveEntry. A primitiveEntry can be read,...
virtual const dictionary & dict() const
This entry is not a dictionary,.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Functions to search 'etc' directories for configuration files etc.
void inplaceExpand(std::string &s, const HashTable< string > &mapping, const char sigil='$')
const fileOperation & fileHandler()
Get current file handler.
messageStream Info
Information stream (stdout output on master, null elsewhere)
fileName findEtcFile(const fileName &name, const bool mandatory=false, unsigned short location=0777)
Search for a single FILE within the etc directories.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)