Changeset View
Changeset View
Standalone View
Standalone View
umbrello/codegenerators/cpp/cppwriter.cpp
Context not available. | |||||
45 | : m_stringIncludeRequired(false) | 45 | : m_stringIncludeRequired(false) | ||
---|---|---|---|---|---|
46 | { | 46 | { | ||
47 | // Probably we could resolve this better through the use of templates, | 47 | // Probably we could resolve this better through the use of templates, | ||
48 | // but it is a quick n dirty fix for the timebeing.. until codegeneration | 48 | // but it is a quick n dirty fix for the time being.. until codegeneration | ||
49 | // template system is in place. | 49 | // template system is in place. | ||
50 | // You can insert code here. 3 general variables exist: "%VARNAME%" | 50 | // You can insert code here. 3 general variables exist: "%VARNAME%" | ||
51 | // allows you to specify where the vector variable should be in your code, | 51 | // allows you to specify where the vector variable should be in your code, | ||
Context not available. | |||||
390 | if (!c->package().isEmpty() && policyExt()->getPackageIsNamespace()) | 390 | if (!c->package().isEmpty() && policyExt()->getPackageIsNamespace()) | ||
391 | cpp << m_endl << "namespace " << cleanName(c->package()) << " {" << m_endl << m_endl; | 391 | cpp << m_endl << "namespace " << cleanName(c->package()) << " {" << m_endl << m_endl; | ||
392 | 392 | | |||
393 | //Write class Documentation if there is somthing or if force option | 393 | //Write class Documentation if there is something or if force option | ||
394 | if (forceDoc() || !c->doc().isEmpty()) { | 394 | if (forceDoc() || !c->doc().isEmpty()) { | ||
395 | cpp << m_endl << "/**" << m_endl; | 395 | cpp << m_endl << "/**" << m_endl; | ||
396 | cpp << " * class " << className_ << m_endl; | 396 | cpp << " * class " << className_ << m_endl; | ||
Context not available. | |||||
1315 | } | 1315 | } | ||
1316 | 1316 | | |||
1317 | /** | 1317 | /** | ||
1318 | * Intellegently print out header include/forward decl. for associated classes. | 1318 | * Intelligently print out header include/forward decl. for associated classes. | ||
1319 | * Note: | 1319 | * Note: | ||
1320 | * To prevent circular including when both classifiers on either end | 1320 | * To prevent circular including when both classifiers on either end | ||
1321 | * of an association have roles we need to have forward declaration of | 1321 | * of an association have roles we need to have forward declaration of | ||
Context not available. |