36 const Foam::word Foam::functionEntries::includeEntry::typeName
38 Foam::functionEntries::includeEntry::typeName_()
43 int Foam::functionEntries::includeEntry::debug(0);
50 namespace functionEntries
130 includeFileName(is.
name().
path(), rawFName, parentDict)
146 if (parentDict.
found(
"FoamFile"))
148 foamFileDict = parentDict.
subDict(
"FoamFile");
152 parentDict.
read(ifs);
155 if (!foamFileDict.
isNull())
159 parentDict.
add(
"FoamFile", foamFileDict);
160 parentDict += parentDictTmp;
170 ) <<
"Cannot open include file " 171 << (ifs.
name().size() ? ifs.
name() : rawFName)
172 <<
" while reading dictionary " << parentDict.
name()
190 includeFileName(is.
name().
path(), rawFName, parentDict)
203 entry.
read(parentDict, ifs);
211 ) <<
"Cannot open include file " 212 << (ifs.
name().size() ? ifs.
name() : rawFName)
213 <<
" while reading dictionary " << parentDict.
name()
bool isNull() const
Return whether this dictionary is null.
bool read(Istream &)
Read dictionary from Istream.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
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 execute(dictionary &parentDict, Istream &)
Execute the functionEntry in a sub-dict context.
addToMemberFunctionSelectionTable(functionEntry, calcEntry, execute, dictionaryIstream)
bool add(entry *, bool mergeEntry=false)
Add a new entry.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
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.
bool isAbsolute() const
Return true if file name is absolute.
A class for handling words, derived from string.
virtual const fileName & name() const
Return the name of the stream.
const fileOperation & fileHandler()
Get current file handler.
static fileName includeFileName(Istream &, const dictionary &)
Read the include fileName from Istream, expand and return.
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.
fileName path() const
Return directory path name (part before last /)
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 log
Report which file is included to stdout.
void clear()
Clear the dictionary.
fileName path(UMean.rootPath()/UMean.caseName()/functionObjects::writeFile::outputPrefix/"graphs"/UMean.instance())