30 template<
class CodedType>
31 const Foam::word Foam::CodedBase<CodedType>::codeTemplateC =
32 Foam::word(CodedType::typeName_()) +
"Template.C";
34 template<
class CodedType>
35 const Foam::word Foam::CodedBase<CodedType>::codeTemplateH =
36 Foam::word(CodedType::typeName_()) +
"Template.H";
41 template<
class CodedType>
49 template<
class CodedType>
52 return CodedType::typeName +
" " + codeName();
58 template<
class CodedType>
61 codeName_(dict.
lookup(
"name")),
66 template<
class CodedType>
69 codeName_(cb.codeName_),
77 template<
class CodedType>
84 template<
class CodedType>
91 template<
class CodedType>
99 template<
class CodedType>
106 if (dict_.found(codeKeys_[i]))
110 << token::END_STATEMENT <<
nl;
A class for handling verbatimStrings, derived from string.
#define forAll(list, i)
Loop across all elements in list.
virtual Ostream & write(const char)=0
Write character.
Ostream & writeKeyword(Foam::Ostream &os, const keyType &kw)
Write the keyword to the Ostream with the current level of indentation.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual const dictionary & codeDict() const
Get the dictionary to initialize the codeContext.
virtual const word & codeName() const
Name of the dynamically generated CodedType.
stressControl lookup("compactNormalStress") >> compactNormalStress
A class for handling words, derived from string.
Templated wrapper class to reduce code duplication and simplify maintenance of coded classes...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
CodedBase()
Construct null.
virtual ~CodedBase()
Destructor.
void writeCode(Ostream &os) const
A class for handling character strings derived from std::string.