Go to the documentation of this file.
35 const Foam::word Foam::functionEntries::includeEtcEntry::typeName
37 Foam::functionEntries::includeEtcEntry::typeName_()
42 int Foam::functionEntries::includeEtcEntry::debug(0);
49 namespace functionEntries
106 includeEtcFileName(rawFName, parentDict)
116 parentDict.
read(ifs);
124 ) <<
"Cannot open etc file "
125 << (ifs.
name().size() ? ifs.
name() : rawFName)
126 <<
" while reading dictionary " << parentDict.
name()
144 includeEtcFileName(rawFName, parentDict)
154 entry.read(parentDict, ifs);
162 ) <<
"Cannot open etc file "
163 << (ifs.
name().size() ? ifs.
name() : rawFName)
164 <<
" while reading dictionary " << parentDict.
name()
A keyword and a list of tokens is an 'entry'.
fileName findEtcFile(const fileName &, bool mandatory=false)
Search for a file using findEtcFiles.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
const fileName & name() const
Return the name of the stream.
A keyword and a list of tokens is a 'primitiveEntry'. An primitiveEntry can be read,...
A class for handling words, derived from string.
A class for handling file names.
const fileName & name() const
Return the dictionary name.
bool isAbsolute() const
Return true if file name is absolute.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static fileName includeEtcFileName(const fileName &, const dictionary &)
Expand include fileName and return.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
static bool report
Report which file is included to stdout.
Macros for easy insertion into member function selection tables.
A list of keyword definitions, which are a keyword followed by any number of values (e....
addToMemberFunctionSelectionTable(functionEntry, calcEntry, execute, dictionaryIstream)
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
bool read(Istream &)
Read dictionary from Istream.
string & inplaceExpand(string &, const HashTable< string, word, string::hash > &mapping, const char sigil='$')
Inplace expand occurences of variables according to the mapping.
static bool execute(dictionary &parentDict, Istream &)
Execute the functionEntry in a sub-dict context.