Moved implementations from header to cpp.
This commit is contained in:
parent
e4ccd93b09
commit
8d3bddfa1e
2 changed files with 42 additions and 30 deletions
|
|
@ -13,3 +13,38 @@ QString LanguageConfig::getTypeName(Oid dbtype) const
|
||||||
{
|
{
|
||||||
return m_typeMappings->getTypeForOid(dbtype);
|
return m_typeMappings->getTypeForOid(dbtype);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void LanguageConfig::setNameManglingRules(std::shared_ptr<const NameManglingRules> name_mangling_rules)
|
||||||
|
{
|
||||||
|
m_varNaming = name_mangling_rules;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::shared_ptr<const TypeMappings> LanguageConfig::typeMappings() const
|
||||||
|
{
|
||||||
|
return m_typeMappings;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LanguageConfig::setTypeMappings(std::shared_ptr<const TypeMappings> type_mappings)
|
||||||
|
{
|
||||||
|
m_typeMappings = type_mappings;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::shared_ptr<const StructureTemplate> LanguageConfig::structureTemplate() const
|
||||||
|
{
|
||||||
|
return m_structureTemplate;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LanguageConfig::setStructureTemplate(std::shared_ptr<const StructureTemplate> structure_template)
|
||||||
|
{
|
||||||
|
m_structureTemplate = structure_template;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::shared_ptr<const IndentationConfig> LanguageConfig::indentationConfig() const
|
||||||
|
{
|
||||||
|
return m_indentationConfig;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LanguageConfig::setIndentationConfig(std::shared_ptr<const IndentationConfig> indentation_config)
|
||||||
|
{
|
||||||
|
m_indentationConfig = indentation_config;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,36 +18,13 @@ public:
|
||||||
QString columnNameToFieldName(const QString& column_name) const;
|
QString columnNameToFieldName(const QString& column_name) const;
|
||||||
QString getTypeName(Oid dbtype) const;
|
QString getTypeName(Oid dbtype) const;
|
||||||
|
|
||||||
void setNameManglingRules(std::shared_ptr<const NameManglingRules> name_mangling_rules)
|
void setNameManglingRules(std::shared_ptr<const NameManglingRules> name_mangling_rules);
|
||||||
{
|
std::shared_ptr<const TypeMappings> typeMappings() const;
|
||||||
m_varNaming = name_mangling_rules;
|
void setTypeMappings(std::shared_ptr<const TypeMappings> type_mappings);
|
||||||
}
|
std::shared_ptr<const StructureTemplate> structureTemplate() const;
|
||||||
|
void setStructureTemplate(std::shared_ptr<const StructureTemplate> structure_template);
|
||||||
std::shared_ptr<const TypeMappings> typeMappings() const { return m_typeMappings; }
|
std::shared_ptr<const IndentationConfig> indentationConfig() const;
|
||||||
void setTypeMappings(std::shared_ptr<const TypeMappings> type_mappings)
|
void setIndentationConfig(std::shared_ptr<const IndentationConfig> indentation_config);
|
||||||
{
|
|
||||||
m_typeMappings = type_mappings;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::shared_ptr<const StructureTemplate> structureTemplate() const
|
|
||||||
{
|
|
||||||
return m_structureTemplate;
|
|
||||||
}
|
|
||||||
|
|
||||||
void setStructureTemplate(std::shared_ptr<const StructureTemplate> structure_template)
|
|
||||||
{
|
|
||||||
m_structureTemplate = structure_template;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::shared_ptr<const IndentationConfig> indentationConfig() const
|
|
||||||
{
|
|
||||||
return m_indentationConfig;
|
|
||||||
}
|
|
||||||
|
|
||||||
void setIndentationConfig(std::shared_ptr<const IndentationConfig> indentation_config)
|
|
||||||
{
|
|
||||||
m_indentationConfig = indentation_config;
|
|
||||||
}
|
|
||||||
private:
|
private:
|
||||||
/** Default template for declaring a variable of the correct type.
|
/** Default template for declaring a variable of the correct type.
|
||||||
* exmaple: "{$type} {$varname};"
|
* exmaple: "{$type} {$varname};"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue