umbrello
2.32.1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
Go to the documentation of this file.
8 #ifndef CODEGENERATOR_H
9 #define CODEGENERATOR_H
30 class QXmlStreamWriter;
68 virtual void saveToXMI1(QXmlStreamWriter& writer);
91 static QString
cleanName(
const QString &name);
93 static QString
formatDoc(
const QString& text,
const QString& linePrefix = QLatin1String(
" *"),
int lineWidth = 80);
128 bool openFile(QFile& file,
const QString &name);
163 #endif // CODEGENERATOR_H
@ Ok
Definition: codegenerationpolicy.h:42
virtual Uml::ID::Type id() const
Definition: umlobject.cpp:420
GNU GENERAL PUBLIC LICENSE June Free Software Inc Franklin Fifth USA Everyone is permitted to copy and distribute verbatim copies of this license document
Definition: GPL-2.0-only.txt:8
UMLClassifier * getParentClassifier() const
Definition: classifiercodedocument.cpp:278
virtual void finalizeRun()
Definition: codegenerator.cpp:382
ObjectType
Definition: umlobject.h:75
b Accompany it with a written valid for at least three to give any third for a charge no more than your cost of physically performing source a complete machine readable copy of the corresponding source code
Definition: GPL-2.0-only.txt:139
CodeDocumentList m_codedocumentVector
Definition: codegenerator.h:149
Enum
Definition: basictypes.h:291
void loadCodeForOperation(const QString &id, const QDomElement &codeDocElement)
Definition: codegenerator.cpp:217
UMLOperation * asUMLOperation()
Definition: umlobject.cpp:1404
@ Ask
Definition: codegenerationpolicy.h:42
Definition: umlattributelist.h:20
void setForceDoc(bool f)
Definition: codegenerator.cpp:757
virtual QString getHeadingFile(const QString &file)
Definition: codegenerator.cpp:404
UMLAttributeList getParmList() const
Definition: operation.cpp:173
UMLClassifierList classesAndInterfaces(bool includeNested=true) const
Definition: umldoc.cpp:2985
static QString cleanName(const QString &name)
Definition: codegenerator.cpp:546
GenerationState
Definition: codegenerator.h:57
void setCodeVerboseDocumentComments(bool new_var)
Definition: codegenerationpolicy.cpp:135
UMLClassifier * getType() const
Definition: classifierlistitem.cpp:98
virtual void syncCodeToDocument()
Definition: codegenerator.cpp:282
void setCodeVerboseSectionComments(bool new_var)
Definition: codegenerationpolicy.cpp:111
virtual bool isReservedKeyword(const QString &keyword)
Definition: codegenerator.cpp:794
@ A
Definition: basictypes.h:237
@ Generated
Definition: codegenerator.h:57
static void findObjectsRelated(UMLClassifier *c, UMLPackageList &cList)
Definition: codegenerator.cpp:619
CodeGenerationPolicy * commonPolicy() const
Definition: uml.cpp:2283
QString toString(const ID::Type &id)
Definition: basictypes.cpp:1300
virtual QStringList defaultDatatypes() const
Definition: codegenerator.cpp:781
@ Never
Definition: codegenerationpolicy.h:42
QList< UMLClassifier * > UMLClassifierList
Definition: umlclassifierlist.h:12
virtual QString getPath() const
Definition: codedocument.cpp:97
CodeDocument * findCodeDocumentByID(const QString &id)
Definition: codegenerator.cpp:107
std::string Type
Definition: basictypes.h:371
CodeDocument * findCodeDocumentByClassifier(UMLClassifier *classifier)
Definition: codegenerator.cpp:297
QString findFileName(CodeDocument *codeDocument)
Definition: codegenerator.cpp:562
QString getFileExtension() const
Definition: codedocument.cpp:79
void setHeadingFileDir(const QString &)
Definition: codedocument.h:29
@ UniAssociation
Definition: basictypes.h:105
void setOverwritePolicy(OverwritePolicy new_var)
Definition: codegenerationpolicy.cpp:70
The base class for UML objects.
Definition: umlobject.h:69
ObjectType baseType() const
Definition: umlobject.cpp:392
@ Cancel
Definition: codegenerationpolicy.h:42
bool forceDoc() const
Definition: codegenerator.cpp:762
Definition: classifiercodedocument.h:28
QHash< QString, CodeDocument * > m_codeDocumentDictionary
Definition: codegenerator.h:135
virtual void loadFromXMI1(QDomElement &element)
Definition: codegenerator.cpp:175
virtual void writeCodeToFile()
Definition: codegenerator.cpp:307
static QString formatSourceCode(const QString &code, const QString &indentation)
Definition: codegenerator.cpp:740
@ Skipped
Definition: codegenerator.h:57
@ Aggregation
Definition: basictypes.h:94
virtual QStringList reservedKeywords() const
Definition: codegenerator.cpp:803
QString toString(Enum item)
Definition: basictypes.cpp:910
ID::Type fromString(const QString &id)
Definition: basictypes.cpp:1305
void setForceSections(bool f)
Definition: codegenerator.cpp:767
void setSourceCode(const QString &code)
Definition: operation.cpp:494
virtual void loadFromXMI1(QDomElement &root)
Definition: codedocument.cpp:345
QString getHeadingFile(const QString &str)
Definition: codegenerationpolicy.cpp:542
void showGeneratedFile(const QString &filename)
Definition: moc_codegenerator.cpp:180
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed we want its recipients to know that what they have is not the so that any problems introduced by others will not reflect on the original authors reputations any free program is threatened constantly by software patents We wish to avoid the danger that redistributors of a free program will individually obtain patent in effect making the program proprietary To prevent we have made it clear that any patent must be licensed for everyone s free use or not licensed at all The precise terms and conditions for distribution and modification follow TERMS AND CONDITIONS FOR DISTRIBUTION AND MODIFICATION This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License The refers to any such program or and a work based on the Program means either the Program or any derivative work under copyright a work containing the Program or a portion of it
Definition: GPL-2.0-only.txt:64
UMLObject * findObjectById(Uml::ID::Type id)
Definition: umldoc.cpp:1039
virtual void initFromParentDocument()=0
it is up to the author donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License If the distribution and or use of the Library is restricted in certain countries either by patents or by copyrighted the original copyright holder who places the Library under this License may add an geographical distribution limitation excluding those so that distribution is permitted only in or among countries not thus excluded In such this License incorporates the limitation as if written in the body of this License The Free Software Foundation may publish revised and or new versions of the Library General Public License from time to time Such new versions will be similar in spirit to the present but may differ in detail to address new problems or concerns Each version is given a distinguishing version number If the Library specifies a version number of this License which applies to it and any later you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation If the Library does not specify a license version number
Definition: LGPL-2.0-only.txt:368
QString a
Definition: petalnode.cpp:13
#define uWarning()
Definition: debug_utils.h:110
virtual ~CodeGenerator()
Definition: codegenerator.cpp:64
#define i18n
Definition: main.cpp:34
@ Association
Definition: basictypes.h:96
virtual void saveToXMI1(QXmlStreamWriter &writer)
Definition: codegenerator.cpp:242
static QString formatDoc(const QString &text, const QString &linePrefix=QLatin1String(" *"), int lineWidth=80)
Definition: codegenerator.cpp:709
Definition: codegenerationpolicy.h:25
#define uDebug()
Definition: debug_utils.h:108
Definition: simplecodegenerator.h:29
bool getCodeVerboseDocumentComments() const
Definition: codegenerationpolicy.cpp:148
bool removeCodeDocument(CodeDocument *remove_object)
Definition: codegenerator.cpp:147
@ B
Definition: basictypes.h:238
QString headingFileDir() const
static QString toString(ObjectType ot)
Definition: umlobject.cpp:1180
bool includeHeadings() const
@ Generalization
Definition: basictypes.h:93
type show c for details The hypothetical commands show w and show c should show the appropriate parts of the General Public License Of the commands you use may be called something other than show w and show c
Definition: GPL-2.0-only.txt:301
CodeDocumentList * getCodeDocumentList()
Definition: codegenerator.cpp:166
OverwritePolicy getOverwritePolicy() const
Definition: codegenerationpolicy.cpp:81
static UMLApp * app()
Definition: uml.cpp:275
Sets up attribute information.
Definition: attribute.h:22
bool isUMLDatatype() const
Definition: umlobject.h:204
Definition: codeviewerdialog.h:22
QString getUniqueID(CodeDocument *codeDoc)
Definition: codegenerator.cpp:75
QList< UMLPackage * > UMLPackageList
Definition: umlpackagelist.h:11
bool m_applyToAllRemaining
Definition: codegenerator.h:141
void codeGenerated(UMLClassifier *concept, bool generated)
Definition: moc_codegenerator.cpp:166
CodeGenerator()
Definition: codegenerator.cpp:49
#define uError()
Definition: debug_utils.h:109
Definition: operation.h:19
QString getFileName() const
Definition: codedocument.cpp:60
QString getNewLineEndingChars() const
Definition: codegenerationpolicy.cpp:249
Information for a non-graphical Concept/Class.
Definition: classifier.h:34
Sets up association information.
Definition: association.h:28
QDir getOutputDirectory()
Definition: codegenerationpolicy.cpp:207
QString overwritableName(const QString &name, const QString &extension)
Definition: codegenerator.cpp:424
@ Composition
Definition: basictypes.h:103
QString ID() const
Definition: codedocument.cpp:140
virtual Uml::ProgrammingLanguage::Enum language() const =0
UMLPackage * asUMLPackage()
Definition: umlobject.cpp:1405
#define uIgnoreZeroPointer(a)
Definition: debug_utils.h:120
@ ot_Operation
Definition: umlobject.h:89
Definition: codegenerator.h:53
Definition: overwritedialog.h:24
int m_lastIDIndex
Definition: codegenerator.h:150
@ Dependency
Definition: basictypes.h:95
bool forceSections() const
Definition: codegenerator.cpp:772
QList< UMLOperation * > UMLOperationList
Definition: umloperationlist.h:12
QList< CodeDocument * > CodeDocumentList
Definition: codedocumentlist.h:12
bool addCodeDocument(CodeDocument *add_object)
Definition: codegenerator.cpp:122
UMLDoc * m_document
Definition: codegenerator.h:146
virtual void createDefaultStereotypes()
Definition: codegenerator.cpp:812
void writeListedCodeDocsToFile(CodeDocumentList *docs)
Definition: codegenerator.cpp:338
void setID(const QString &new_id)
Definition: codedocument.cpp:131
bool getCodeVerboseSectionComments() const
Definition: codegenerationpolicy.cpp:123
QList< UMLAssociation * > UMLAssociationList
Definition: umlassociationlist.h:12
@ Realization
Definition: basictypes.h:104
@ Failed
Definition: codegenerator.h:57
bool openFile(QFile &file, const QString &name)
Definition: codegenerator.cpp:520
QString getSourceCode() const
Definition: operation.cpp:502
Non-graphical information for a Package.
Definition: package.h:27
void setIncludeHeadings(bool i)