49 #ifndef functionEntry_H 50 #define functionEntry_H 80 template<
class StringType>
89 const bool stripComments =
true 124 const word& functionName,
134 primitiveEntryIstream,
140 (parentDict,
entry, is)
146 const word& functionName,
void operator=(const functionEntry &)=delete
No copy assignment.
static bool execute(const word &functionName, dictionary &parentDict, Istream &is)
Execute the functionEntry in a sub-dict context.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A token holds an item read from Istream.
static bool continueReadUntilRightBrace(Istream &is, std::string &str, const bool stripComments=true)
Slurp a string until a closing '}' is found.
functionEntry(const functionEntry &)=delete
No copy construct.
A keyword and a list of tokens comprise a primitiveEntry. A primitiveEntry can be read...
A class for handling words, derived from Foam::string.
A functionEntry causes entries to be added/manipulated on the specified dictionary given an input str...
declareMemberFunctionSelectionTable(bool, functionEntry, execute, dictionaryIstream,(dictionary &parentDict, Istream &is),(parentDict, is))
virtual void write(Ostream &os) const
Write.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
virtual const dictionary & dict() const
This entry is not a dictionary, calling this function generates a FatalError.
Macros to ease declaration of member function selection tables.
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
static token readLine(const word &key, Istream &is)
Read line and return as a string token.
static List< StringType > readStringList(Istream &is)
Read a List of strings values, treating a single entry like a list of size 1.
A keyword and a list of tokens is an 'entry'.