umbrello/umbrello
simplecodegenerator.h
Go to the documentation of this file.
This class contains the non-graphical information required for a UML Package.
Definition: package.h:32
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
CodeDocument * newClassifierCodeDocument(UMLClassifier *classifier)
Create a new classifier code document.
Definition: simplecodegenerator.cpp:272
SimpleCodeGenerator(bool createDirHierarchyForPackages=true)
Constructor.
Definition: simplecodegenerator.cpp:46
QString findFileName(UMLPackage *concept, const QString &ext)
Determine the file name.
Definition: simplecodegenerator.cpp:89
A simple code generator interface designed to work with the existing codewriters. ...
Definition: simplecodegenerator.h:28
bool hasDefaultValueAttr(UMLClassifier *c)
Check whether classifier has default values for attributes.
Definition: simplecodegenerator.cpp:241
void writeCodeToFile()
Write all concepts in project to file.
Definition: simplecodegenerator.cpp:281
virtual void writeClass(UMLClassifier *c)=0
Call this method to generate code for a UMLClassifier.
void syncCodeToDocument()
A little method to provide some compatibility between the newer codegenpolicy object and the older cl...
Definition: simplecodegenerator.cpp:307
QMap< UMLPackage *, QString > m_fileMap
Maps UMLObjects to filenames.
Definition: simplecodegenerator.h:63
bool m_createDirHierarchyForPackages
For some code generators, it does not make much sense to create a directory for each package because ...
Definition: simplecodegenerator.h:71
QString overwritableName(UMLPackage *concept, const QString &name, const QString &ext)
Check if a file named "name" with extension "ext" already exists.
Definition: simplecodegenerator.cpp:165
This class collects together all of the code documents which form this project, and generates code fo...
Definition: codegenerator.h:68
bool hasAbstractOps(UMLClassifier *c)
Check whether classifier has abstract operations.
Definition: simplecodegenerator.cpp:256
QString indent()
Returns the current indent string based on m_indentLevel and m_indentation.
Definition: simplecodegenerator.cpp:74
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.