Further improvements to codegeneration the defaultcpp config is now called the PgLab
config as it is very specific to the PgLab codebase. More hard programmed templates moved out of codebuilder to the language config.
This commit is contained in:
parent
0ba632afd1
commit
0c3bb27e58
10 changed files with 143 additions and 91 deletions
|
|
@ -8,6 +8,7 @@ class NameManglingRules;
|
|||
class TypeMappings;
|
||||
class StructureTemplate;
|
||||
class IndentationConfig;
|
||||
class ResultLoopTemplate;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
|
@ -25,6 +26,8 @@ public:
|
|||
void setStructureTemplate(std::shared_ptr<const StructureTemplate> structure_template);
|
||||
std::shared_ptr<const IndentationConfig> indentationConfig() const;
|
||||
void setIndentationConfig(std::shared_ptr<const IndentationConfig> indentation_config);
|
||||
std::shared_ptr<const ResultLoopTemplate> resultLoopTemplate() const;
|
||||
void setResultLoopTemplate(std::shared_ptr<const ResultLoopTemplate> result_loop_template);
|
||||
private:
|
||||
/** Default template for declaring a variable of the correct type.
|
||||
* exmaple: "{$type} {$varname};"
|
||||
|
|
@ -34,13 +37,12 @@ private:
|
|||
std::shared_ptr<const TypeMappings> m_typeMappings;
|
||||
std::shared_ptr<const StructureTemplate> m_structureTemplate;
|
||||
std::shared_ptr<const IndentationConfig> m_indentationConfig;
|
||||
std::shared_ptr<const ResultLoopTemplate> m_resultLoopTemplate;
|
||||
|
||||
enum class VariableStrategy {
|
||||
UseLocalVariables,
|
||||
DeclareClass
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif // LANGUAGECONFIG_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue