34 const Foam::word Foam::functionEntries::includeEtcEntry::typeName
36 Foam::functionEntries::includeEtcEntry::typeName_()
41 int Foam::functionEntries::includeEtcEntry::debug(0);
48 namespace functionEntries
70 Foam::fileName Foam::functionEntries::includeEtcEntry::includeEtcFileName
73 const dictionary& dict
82 if (fName.empty() || fName.isAbsolute())
105 includeEtcFileName(rawFName, parentDict)
115 parentDict.
read(ifs);
123 ) <<
"Cannot open etc file " 124 << (ifs.
name().size() ? ifs.
name() : rawFName)
125 <<
" while reading dictionary " << parentDict.
name()
143 includeEtcFileName(rawFName, parentDict)
153 entry.
read(parentDict, ifs);
161 ) <<
"Cannot open etc file " 162 << (ifs.
name().size() ? ifs.
name() : rawFName)
163 <<
" while reading dictionary " << parentDict.
name()
bool read(Istream &)
Read dictionary from Istream.
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Ostream & endl(Ostream &os)
Add newline and flush stream.
const fileName & name() const
Return the name of the stream.
static bool log
Report which file is included to stdout.
const fileName & name() const
Return the dictionary name.
addToMemberFunctionSelectionTable(functionEntry, calcEntry, execute, dictionaryIstream)
A keyword and a list of tokens is a 'primitiveEntry'. An primitiveEntry can be read, written and printed, and the types and values of its tokens analysed.
A class for handling words, derived from string.
Functions to search 'etc' directories for configuration files etc.
fileName findEtcFile(const fileName &, bool mandatory=false)
Search for a file using findEtcFiles.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Macros for easy insertion into member function selection tables.
string & inplaceExpand(string &, const HashTable< string, word, string::hash > &mapping, const char sigil= '$')
Inplace expand occurences of variables according to the mapping.
virtual bool read(const dictionary &, Istream &)
Read tokens from the given stream.
static bool execute(dictionary &parentDict, Istream &)
Execute the functionEntry in a sub-dict context.