#include <clause_body_string.hh>
Inheritance diagram for mpcl::text::codegen::TClauseBodyString:
Public Types | |
typedef IStreamable::char_type | char_type |
Disambiguate char type. | |
typedef IStreamable::traits_type | traits_type |
Disambiguate traits type. | |
Public Methods | |
TClauseBodyString (void) | |
Builds a new instance. | |
TClauseBodyString (const char *pkcSOURCE_CLAUSE_BODY) | |
TClauseBodyString (const TString &rkySOURCE_CLAUSE_BODY) | |
TClauseBodyString & | operator= (const TClauseBodyString &rkySOURCE_CLAUSE_BODY) |
void | setParameterExistenceSensitiveness (bool gSENSITIVENESS) |
TString | instantiate (void) const |
TString | instantiate (const char *pkcFIRST_PARAMETER_NAME, const char *pkcFIRST_PARAMETER_VALUE...) const |
TString | instantiate (const TStringToVariableMap &rktSOURCE_VARIABLE_MAP) const |
TString | instantiate (const TStringToStringMap &rktSOURCE_STRING_TO_STRING_MAP) const |
TString | instantiate (const TStringToVariableMap &rktSOURCE_VARIABLE_MAP, bool gPARAMETER_EXISTENCE_SENSITIVENESS) const |
TString | instantiate (const TStringToStringMap &rktSOURCE_STRING_MAP, bool gPARAMETER_EXISTENCE_SENSITIVENESS) const |
Protected Methods | |
void | read (basic_istream< char_type, traits_type > &rtSOURCE_ISTREAM) |
Reads the instance from stream rtSOURCE_ISTREAM. | |
void | write (basic_ostream< char_type, traits_type > &rtTARGET_OSTREAM) const |
TString | preprocess (void) const |
Protected Attributes | |
bool | gParameterExistenceSensitiveness |
Definition at line 77 of file clause_body_string.hh.
|
Builds a new instance from string pkcSOURCE_CLAUSE_BODY.
Definition at line 120 of file clause_body_string.hh. References gParameterExistenceSensitiveness, and mpcl::text::TString. |
|
Builds a new instance from string rkySOURCE_CLAUSE_BODY.
Definition at line 129 of file clause_body_string.hh. References gParameterExistenceSensitiveness, and mpcl::text::TString. |
|
Gets a string that is a instance of the code pattern result of substituting variables in rktSOURCE_STRING_MAP. If gPARAMETER_EXISTENCE_SENSITIVENESS is true, then any variable that doesn't exist in this instance string will cause an exception throw.
Definition at line 188 of file clause_body_string.cc. References mpcl::text::Format(), preprocess(), mpcl::text::TString, and mpcl::util::collection::TStringToStringMap. |
|
Gets a string that is a instance of the code pattern result of substituting variables in rktSOURCE_VARIABLE_MAP. If gPARAMETER_EXISTENCE_SENSITIVENESS is true, then any variable that doesn't exist in this instance string will cause an exception throw.
Definition at line 137 of file clause_body_string.cc. References mpcl::text::Format(), preprocess(), mpcl::text::TString, and mpcl::text::codegen::TStringToVariableMap. |
|
Gets a string that is a instance of the code pattern result of substituting variables in rktSOURCE_STRING_TO_STRING_MAP.
Definition at line 207 of file clause_body_string.hh. References gParameterExistenceSensitiveness, instantiate(), mpcl::text::TString, and mpcl::util::collection::TStringToStringMap. |
|
Gets a string that is a instance of the code pattern result of substituting variables in rktSOURCE_VARIABLE_MAP.
Definition at line 195 of file clause_body_string.hh. References gParameterExistenceSensitiveness, instantiate(), mpcl::text::TString, and mpcl::text::codegen::TStringToVariableMap. |
|
Gets a string that is a instance of the code pattern result of substituting pkcFIRST_PARAMETER_NAME by pkcFIRST_PARAMETER_VALUE, and so, with the rest of optional parameters pairs.
Definition at line 65 of file clause_body_string.cc. References mpcl::text::Format(), and mpcl::text::TString. |
|
Gets a string that is a instance of the code pattern.
Definition at line 171 of file clause_body_string.hh. References preprocess(), and mpcl::text::TString. Referenced by instantiate(). |
|
Copies from instance rkySOURCE_CLAUSE_BODY.
Definition at line 36 of file clause_body_string.cc. |
|
Gets a string that is the result of preprocessing current code (changing entities for its values).
Definition at line 246 of file clause_body_string.cc. References mpcl::text::codegen::InstantiateEntities(), and mpcl::text::TString. Referenced by instantiate(). |
|
Sets the attribute-existence sensitiveness.
Definition at line 145 of file clause_body_string.hh. References gParameterExistenceSensitiveness. |
|
Writes the instance onto stream rtTARGET_OSTREAM.
Definition at line 236 of file clause_body_string.cc. References mpcl::text::codegen::operator<<(). |
|
Boolean with parameter existence sensitiveness when the instantiation has to be done. Definition at line 101 of file clause_body_string.hh. Referenced by instantiate(), setParameterExistenceSensitiveness(), and TClauseBodyString(). |