umbrello/umbrello
#include <cppwriter.h>
Additional Inherited Members | |
Public Slots inherited from SimpleCodeGenerator | |
void | syncCodeToDocument () |
Public Slots inherited from CodeGenerator | |
virtual void | checkAddUMLObject (UMLObject *obj) |
virtual void | checkRemoveUMLObject (UMLObject *obj) |
virtual void | syncCodeToDocument () |
Signals inherited from CodeGenerator | |
void | codeGenerated (UMLClassifier *concept, bool generated) |
void | showGeneratedFile (const QString &filename) |
Static Public Member Functions inherited from CodeGenerator | |
static QString | cleanName (const QString &name) |
static void | findObjectsRelated (UMLClassifier *c, UMLPackageList &cList) |
static QString | formatDoc (const QString &text, const QString &linePrefix=" *", int lineWidth=80) |
static QString | formatSourceCode (const QString &code, const QString &indentation) |
Protected Member Functions inherited from SimpleCodeGenerator | |
QString | findFileName (UMLPackage *concept, const QString &ext) |
bool | hasAbstractOps (UMLClassifier *c) |
bool | hasDefaultValueAttr (UMLClassifier *c) |
QString | indent () |
void | initFromParentDocument () |
QString | overwritableName (UMLPackage *concept, const QString &name, const QString &ext) |
Protected Member Functions inherited from CodeGenerator | |
bool | openFile (QFile &file, const QString &name) |
QString | overwritableName (const QString &name, const QString &extension) |
void | writeListedCodeDocsToFile (CodeDocumentList *docs) |
Protected Attributes inherited from SimpleCodeGenerator | |
QString | className_ |
QString | fileName_ |
bool | m_createDirHierarchyForPackages |
QString | m_endl |
QMap< UMLPackage *, QString > | m_fileMap |
QString | m_indentation |
int | m_indentLevel |
Protected Attributes inherited from CodeGenerator | |
bool | m_applyToAllRemaining |
QHash< QString, CodeDocument * > | m_codeDocumentDictionary |
UMLDoc * | m_document |
Detailed Description
Class CppWriter is a code generator for UMLClassifier objects.
Create an instance of this class, and feed it a UMLClassifier when calling writeClass and it will generate both a header (.h) and source (.cpp) file for that classifier. Note: This is the "old" code generator that does not support code editing in the Modeller but uses significantly less file space because the source code is not replicated in the XMI file.
Definition at line 34 of file cppwriter.h.
Constructor & Destructor Documentation
CppWriter::CppWriter | ( | ) |
Constructor, initialises a couple of variables.
Definition at line 42 of file cppwriter.cpp.
|
virtual |
Destructor, empty.
Definition at line 68 of file cppwriter.cpp.
Member Function Documentation
|
virtual |
Add C++ primitives as datatypes.
- Returns
- the list of default datatypes
Reimplemented from CodeGenerator.
Definition at line 1322 of file cppwriter.cpp.
|
virtual |
Returns "C++".
- Returns
- the programming language identifier
Implements CodeGenerator.
Definition at line 76 of file cppwriter.cpp.
|
virtual |
Get list of reserved keywords.
- Returns
- the list of reserved keywords
Reimplemented from CodeGenerator.
Definition at line 1331 of file cppwriter.cpp.
|
virtual |
Call this method to generate cpp code for a UMLClassifier.
- Parameters
-
c the class to generate code for
Implements SimpleCodeGenerator.
Definition at line 93 of file cppwriter.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.