umbrello/umbrello
CPPCodeGenerator Class Reference
#include <cppcodegenerator.h>

Detailed Description
Definition at line 31 of file cppcodegenerator.h.
Constructor & Destructor Documentation
| CPPCodeGenerator::CPPCodeGenerator | ( | ) |
| CPPCodeGenerator::~CPPCodeGenerator | ( | ) | [virtual] |
Member Function Documentation
| void CPPCodeGenerator::setCreateProjectMakefile | ( | bool | buildIt | ) |
Set the value of m_createMakefile.
- Parameters:
-
new_var the new value of m_createMakefile
Definition at line 68 of file cppcodegenerator.cpp.
| bool CPPCodeGenerator::getCreateProjectMakefile | ( | ) |
Get the value of m_createMakefile.
- Returns:
- the value of m_createMakefile
Definition at line 79 of file cppcodegenerator.cpp.
Definition at line 157 of file cppcodegenerator.cpp.
| bool CPPCodeGenerator::addHeaderCodeDocument | ( | CPPHeaderCodeDocument * | doc | ) |
Add a header CodeDocument object from m_headercodedocumentVector List.
Definition at line 83 of file cppcodegenerator.cpp.
| bool CPPCodeGenerator::removeHeaderCodeDocument | ( | CPPHeaderCodeDocument * | remove_object | ) |
Remove a header CodeDocument object from m_headercodedocumentVector List.
Definition at line 107 of file cppcodegenerator.cpp.
| Uml::Programming_Language CPPCodeGenerator::getLanguage | ( | ) | [virtual] |
returns "Cpp"
returns "C++"
Implements CodeGenerator.
Definition at line 60 of file cppcodegenerator.cpp.
| CodeDocument * CPPCodeGenerator::newClassifierCodeDocument | ( | UMLClassifier * | classifier | ) | [virtual] |
- Returns:
- ClassifierCodeDocument
- Parameters:
-
classifier The classifier for which the CodeDocument is to be created
Implements CodeGenerator.
Definition at line 247 of file cppcodegenerator.cpp.
| CPPHeaderCodeDocument * CPPCodeGenerator::newHeaderClassifierCodeDocument | ( | UMLClassifier * | classifier | ) |
Definition at line 254 of file cppcodegenerator.cpp.
| CodeViewerDialog * CPPCodeGenerator::getCodeViewerDialog | ( | QWidget * | parent, | |
| CodeDocument * | doc, | |||
| Settings::CodeViewerState | state | |||
| ) | [virtual] |
Get the editing dialog for this code document.
Reimplemented from CodeGenerator.
Definition at line 120 of file cppcodegenerator.cpp.
| void CPPCodeGenerator::writeCodeToFile | ( | ) | [virtual] |
Write out all code documents to file as appropriate.
Reimplemented from CodeGenerator.
Definition at line 203 of file cppcodegenerator.cpp.
| void CPPCodeGenerator::writeCodeToFile | ( | UMLClassifierList & | list | ) | [virtual] |
This method is here to provide class wizard the ability to write out only those classes which are selected by the user.
Reimplemented from CodeGenerator.
Definition at line 215 of file cppcodegenerator.cpp.
| QStringList CPPCodeGenerator::defaultDatatypes | ( | ) | [virtual] |
Add C++ primitives as datatypes.
Reimplemented from CodeGenerator.
Definition at line 354 of file cppcodegenerator.cpp.
| void CPPCodeGenerator::saveToXMI | ( | QDomDocument & | doc, | |
| QDomElement & | root | |||
| ) | [virtual] |
Save the XMI representation of this object.
Reimplemented from CodeGenerator.
Definition at line 163 of file cppcodegenerator.cpp.
| const QStringList CPPCodeGenerator::reservedKeywords | ( | ) | const [virtual] |
get list of reserved keywords
Reimplemented from CodeGenerator.
Definition at line 358 of file cppcodegenerator.cpp.
| void CPPCodeGenerator::createDefaultStereotypes | ( | ) | [virtual] |
Add the default stereotypes for c++ (constructor, int etc).
Reimplemented from CodeGenerator.
Definition at line 362 of file cppcodegenerator.cpp.
| void CPPCodeGenerator::initFromParentDocument | ( | ) | [virtual] |
Overloaded so that we may have both source and header documents for each classifier.
Reimplemented from CodeGenerator.
Definition at line 274 of file cppcodegenerator.cpp.
| CPPMakefileCodeDocument * CPPCodeGenerator::newMakefileCodeDocument | ( | ) | [protected] |
- Returns:
- CPPMakeCodeDocument
- Returns:
- CPPMakefileCodeDocument
- Parameters:
-
this
Definition at line 265 of file cppcodegenerator.cpp.
| CPPHeaderCodeDocument * CPPCodeGenerator::findHeaderCodeDocumentByClassifier | ( | UMLClassifier * | classifier | ) | [protected] |
Find a cppheadercodedocument by the given classifier.
- Returns:
- CPPHeaderCodeDocument
- Parameters:
-
classifier
Definition at line 236 of file cppcodegenerator.cpp.
| void CPPCodeGenerator::checkAddUMLObject | ( | UMLObject * | obj | ) | [virtual, slot] |
These 2 functions check for adding or removing objects to the UMLDocument they are need to be overridden here because unlike in the Java (or most other lang) we add 2 types of classifiercodedocument per classifier, e.g.
a "source" and a "header" document.
Reimplemented from CodeGenerator.
Definition at line 302 of file cppcodegenerator.cpp.
| void CPPCodeGenerator::checkRemoveUMLObject | ( | UMLObject * | obj | ) | [virtual, slot] |
| void CPPCodeGenerator::syncCodeToDocument | ( | ) | [virtual, slot] |
Force a synchronize of this code generator, and its present contents, to that of the parent UMLDocument.
"UserGenerated" code will be preserved, but Autogenerated contents will be updated/replaced or removed as is apppropriate.
Need to override parent method because we have header documents to consider too.
Reimplemented from CodeGenerator.
Definition at line 185 of file cppcodegenerator.cpp.
Member Data Documentation
const bool CPPCodeGenerator::DEFAULT_BUILD_MAKEFILE = false [static] |
Definition at line 36 of file cppcodegenerator.h.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference