umbrello/umbrello
simplecodegenerator.cpp
Go to the documentation of this file.
165 QString SimpleCodeGenerator::overwritableName(UMLPackage* concept, const QString &name, const QString &ext)
179 switch(commonPolicy->getOverwritePolicy()) { //if it exists, check the OverwritePolicy we should use
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
QString getInitialValue() const
Returns The initial value of the UMLAttribute.
Definition: attribute.cpp:98
CodeDocument * newClassifierCodeDocument(UMLClassifier *classifier)
Create a new classifier code document.
Definition: simplecodegenerator.cpp:272
SimpleCodeGenerator(bool createDirHierarchyForPackages=true)
Constructor.
Definition: simplecodegenerator.cpp:46
QString getNewLineEndingChars() const
Utility function to get the actual characters.
Definition: codegenerationpolicy.cpp:248
QString findFileName(UMLPackage *concept, const QString &ext)
Determine the file name.
Definition: simplecodegenerator.cpp:89
class CodeGenerationPolicy This class describes the code generation policy for this project...
Definition: codegenerationpolicy.h:29
This sub-class adds copyInto and clone to the QPtrList base class.
Definition: umlattributelist.h:26
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
QDir getOutputDirectory()
Get the value of m_outputDirectory location of where output files will go.
Definition: codegenerationpolicy.cpp:206
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
bool isCommonDataType(QString type)
Return true if the given type is common among the majority of programming languages, such as "bool" or "boolean".
Definition: model_utils.cpp:528
QString getIndentation() const
Utility method to get the amount (and type of whitespace) to indent with.
Definition: codegenerationpolicy.cpp:299
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
CodeGenerationPolicy * commonPolicy() const
Returns the default code generation policy.
Definition: uml.cpp:2132
UMLClassifierList classesAndInterfaces(bool includeNested=true)
Returns a list of the classes and interfaces in this UMLDoc.
Definition: umldoc.cpp:2491
OverwritePolicy getOverwritePolicy() const
Get the value of m_overwritePolicy Policy of how to deal with overwriting existing files...
Definition: codegenerationpolicy.cpp:80
bool m_applyToAllRemaining
Used by overwriteDialogue to know if the apply to all remaining files checkbox should be checked (is ...
Definition: codegenerator.h:184
UMLAttributeList getAttributeList() const
Returns the attributes for the specified scope.
Definition: classifier.cpp:441
Used by CodeGenerator::findFileName when it needs to ask the user if they want to overwrite and exist...
Definition: overwritedialogue.h:29
This class collects together all of the code documents which form this project, and generates code fo...
Definition: codegenerator.h:68
UMLOperationList getOpList(bool includeInherited=false, UMLClassifierSet *alreadyTraversed=0)
Return a list of operations for the Classifier.
Definition: classifier.cpp:960
bool hasAbstractOps(UMLClassifier *c)
Check whether classifier has abstract operations.
Definition: simplecodegenerator.cpp:256
virtual QString fullyQualifiedName(const QString &separator=QString(), bool includeRoot=false) const
Returns the fully qualified name, i.e.
Definition: umlobject.cpp:201
void setOverwritePolicy(OverwritePolicy new_var)
Set the value of m_overwritePolicy Policy of how to deal with overwriting existing files...
Definition: codegenerationpolicy.cpp:69
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.