Go to the documentation of this file.
38 #ifndef dynamicCodeContext_H
39 #define dynamicCodeContext_H
59 std::reference_wrapper<const dictionary> dict_;
147 const string&
libs()
const
153 const string&
code()
const
171 void append(
const std::string& str)
const string & libs() const
Return the code-libs.
SHA1 & append(const char *str)
Append data for processing.
A class for handling file names.
const dictionary & dict() const
Return the parent dictionary context.
Functions to compute SHA1 message digest according to the NIST specification FIPS-180-1.
Encapsulation of dynamic code dictionaries.
const string & include() const
Return the code-includes.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
dynamicCodeContext()
Construct null.
void append(const std::string &str)
Add content to SHA1 hashing.
static void inplaceExpand(string &code, const dictionary &dict)
Cleanup string and expand with dictionary parameters.
const string & code() const
Return the code.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
void setCodeContext(const dictionary &dict)
Set code context from a dictionary.
const string & options() const
Return the code-options.
const string & localCode() const
Return the local (file-scope) code.
const SHA1 & sha1() const
Return SHA1 calculated from options, libs, include, code.
bool valid() const
Considered valid if not using dictionary::null as the context.
static unsigned addLineDirective(string &code, label lineNum, const fileName &file)
Prefix a #line directive to code.