35 const Foam::word Foam::functionEntries::includeEtcEntry::typeName
37 Foam::functionEntries::includeEtcEntry::typeName_()
42 int Foam::functionEntries::includeEtcEntry::debug(0);
49 namespace functionEntries
71 Foam::fileName Foam::functionEntries::includeEtcEntry::includeEtcFileName
74 const dictionary& dict
83 if (fName.empty() || fName.isAbsolute())
106 includeEtcFileName(rawFName, parentDict)
119 parentDict.
read(ifs);
127 ) <<
"Cannot open etc file " 128 << (ifs.
name().size() ? ifs.
name() : rawFName)
129 <<
" while reading dictionary " << parentDict.
name()
147 includeEtcFileName(rawFName, parentDict)
160 entry.
read(parentDict, ifs);
168 ) <<
"Cannot open etc file " 169 << (ifs.
name().size() ? ifs.
name() : rawFName)
170 <<
" while reading dictionary " << parentDict.
name()
bool read(Istream &)
Read dictionary from Istream.
A class for handling file names.
virtual const fileName & name() const
Return the name of the stream.
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.
static bool log
Report which file is included to stdout.
addToMemberFunctionSelectionTable(functionEntry, calcEntry, execute, dictionaryIstream)
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
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.
const fileName & name() const
Return the dictionary name.
A class for handling words, derived from string.
Functions to search 'etc' directories for configuration files etc.
const fileOperation & fileHandler()
Get current file handler.
fileName findEtcFile(const fileName &, bool mandatory=false)
Search for a file using findEtcFiles.
string & inplaceExpand(string &, const HashTable< string, word, string::hash > &mapping, const char sigil='$')
Inplace expand occurrences of variables according to the mapping.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Macros for easy insertion into member function selection tables.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
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.