60 #ifndef includeEntry_H
61 #define includeEntry_H
69 namespace functionEntries
92 void removeInsertNamedArgs
105 const string&
fName()
const
117 char(
operator[](1).pToken())
118 +
operator[](2).stringToken()
119 +
char(
operator[](3).pToken()),
label lineNumber() const
Return current stream line number.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
label size() const
Return the number of elements in the UList.
A 2-tuple for storing two objects of different types.
A 3-tuple for storing three objects of different types.
T & operator[](const label)
Return element of UList.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
virtual autoPtr< entry > clone() const
Construct on freestore as copy.
A class for handling file names.
Specify an include file when reading dictionaries.
virtual bool virtualExecute(const dictionary &contextDict, primitiveEntry &contextEntry, Istream &)
Expand the functionEntry into the contextEntry.
virtual bool includeIfPresent() const
Return true if file presence is optional.
const string & fName() const
Return the file name.
includeEntry(const functionName &functionType, const label lineNumber, const dictionary &parentDict, Istream &is)
Construct from functionType, dictionary and Istream.
virtual fileName includeFileName(const fileName &dir, const fileName &, const dictionary &) const
Expand include fileName and return.
Tuple2< string, label > args() const
Return the arguments string for processing by insertNamedArgs.
void operator=(const includeEntry &)=delete
Disallow default bitwise assignment.
virtual bool execute(dictionary &contextDict, Istream &)
Expand the functionEntry into the contextDict.
FunctionTypeName("#include")
Runtime type information.
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 functionName is a word starting with '#'.
A keyword and a list of tokens is a 'primitiveEntry'. An primitiveEntry can be read,...
static const string null
An empty string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.