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)
154 parentDict.
read(ifs);
157 if (foamFileDict.size() != 0)
162 parentDict += parentDictTmp;
172 ) <<
"Cannot open include file "
173 << (ifs.
name().size() ? ifs.
name() : rawFName)
174 <<
" while reading dictionary " << parentDict.
name()
192 includeFileName(is.
name().
path(), rawFName, parentDict)
204 entry.read(parentDict, ifs);
212 ) <<
"Cannot open include file "
213 << (ifs.
name().size() ? ifs.
name() : rawFName)
214 <<
" while reading dictionary " << parentDict.
name()
Macros for easy insertion into member function selection tables.
static constexpr const char * foamFile
Keyword for the FoamFile header sub-dictionary.
streamFormat format() const
Return current stream format.
virtual const fileName & name() const
Return the name of the stream.
versionNumber version() const
Return the stream version.
virtual const fileName & name() const
Return the name of the stream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const fileName & name() const
Return the dictionary name.
A list of keyword definitions, which are a keyword followed by any number of values (e....
bool read(Istream &, const bool keepHeader=false)
Read dictionary from Istream, optionally keeping the header.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
bool add(entry *, bool mergeEntry=false)
Add a new entry.
void clear()
Clear the dictionary.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
A keyword and a list of tokens is an 'entry'.
A class for handling file names.
bool isAbsolute() const
Return true if file name is absolute.
fileName path() const
Return directory path name (part before last /)
Specify an include file when reading dictionaries, expects a single string to follow.
static bool execute(dictionary &parentDict, Istream &)
Execute the functionEntry in a sub-dict context.
static fileName includeFileName(Istream &, const dictionary &)
Read the include fileName from Istream, expand and return.
static bool log
Report which file is included to stdout.
A functionEntry causes entries to be added/manipulated on the specified dictionary given an input str...
A keyword and a list of tokens is a 'primitiveEntry'. An primitiveEntry can be read,...
const dictionary & dict() const
This entry is not a dictionary,.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
addToMemberFunctionSelectionTable(functionEntry, includeFvConstraintEntry, execute, dictionaryIstream)
string & inplaceExpandEntry(string &s, const dictionary &dict, const bool allowEnvVars, const bool allowEmpty, const char sigil='$')
Inplace expand occurrences of variables according to the dictionary.
const fileOperation & fileHandler()
Get current file handler.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.