Go to the documentation of this file.
134 code =
"#line " +
Foam::name(lineNum + 1) +
" \"" +
name +
"\"\n" + code;
A keyword and a list of tokens is an 'entry'.
string localCode_
Optional "localCode" entry.
const entry & lookupEntry(const word &, bool recursive, bool patternMatch) const
Find and return an entry data stream if present otherwise error.
A class for handling file names.
virtual ITstream & stream() const =0
Return token stream if this entry is a primitive entry.
const dictionary & dict() const
Return the parent dictionary context.
const fileName & name() const
Return the dictionary name.
string libs_
Optional "codeLib" entry.
SHA1Digest sha1_
Calculated SHA1Digest.
static void addLineDirective(string &, const label lineNum, const fileName &name)
Helper: add #line directive.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
The output stream for calculating SHA1 digests.
virtual label startLineNumber() const =0
Return line number of first token in dictionary.
A list of keyword definitions, which are a keyword followed by any number of values (e....
const entry * lookupEntryPtr(const word &, bool recursive, bool patternMatch) const
Find and return an entry data stream pointer if present.
string include_
Optional "codeInclude" entry.
dynamicCodeContext(const dictionary &)
Construct from a dictionary.
string options_
Optional "codeOptions" entry.
Foam::SHA1Digest digest()
Return SHA1::Digest for the data processed until now.
string & inplaceExpand(string &, const HashTable< string, word, string::hash > &mapping, const char sigil='$')
Inplace expand occurences of variables according to the mapping.
word name(const complex &)
Return a string representation of a complex.
string code_
Mandatory "code" entry.
string trim(const string &)
Return string trimmed of leading and trailing whitespace.