umbrello
2.35.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 saveToXMI(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:421
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
#define DEBUG_REGISTER(src)
Definition: debug_utils.h:129
UMLClassifier * getParentClassifier() const
Definition: classifiercodedocument.cpp:278
virtual void finalizeRun()
Definition: codegenerator.cpp:384
ObjectType
Definition: umlobject.h:75
#define logDebug1(s, a)
Definition: uml.h:541
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
virtual void loadFromXMI(QDomElement &root)
Definition: codedocument.cpp:345
Enum
Definition: basictypes.h:291
void loadCodeForOperation(const QString &id, const QDomElement &codeDocElement)
Definition: codegenerator.cpp:219
@ Ask
Definition: codegenerationpolicy.h:42
Definition: umlattributelist.h:20
void setForceDoc(bool f)
Definition: codegenerator.cpp:759
virtual QString getHeadingFile(const QString &file)
Definition: codegenerator.cpp:406
UMLAttributeList getParmList() const
Definition: operation.cpp:177
UMLClassifierList classesAndInterfaces(bool includeNested=true) const
Definition: umldoc.cpp:3048
virtual void loadFromXMI(QDomElement &element)
Definition: codegenerator.cpp:177
static QString cleanName(const QString &name)
Definition: codegenerator.cpp:548
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:284
void setCodeVerboseSectionComments(bool new_var)
Definition: codegenerationpolicy.cpp:111
virtual bool isReservedKeyword(const QString &keyword)
Definition: codegenerator.cpp:796
@ A
Definition: basictypes.h:237
@ Generated
Definition: codegenerator.h:57
static void findObjectsRelated(UMLClassifier *c, UMLPackageList &cList)
Definition: codegenerator.cpp:621
CodeGenerationPolicy * commonPolicy() const
Definition: uml.cpp:2459
QString toString(const ID::Type &id)
Definition: basictypes.cpp:1306
#define logError1(s, a)
Definition: uml.h:545
virtual QStringList defaultDatatypes() const
Definition: codegenerator.cpp:783
@ 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:109
std::string Type
Definition: basictypes.h:371
CodeDocument * findCodeDocumentByClassifier(UMLClassifier *classifier)
Definition: codegenerator.cpp:299
QString findFileName(CodeDocument *codeDocument)
Definition: codegenerator.cpp:564
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
UMLOperation * asUMLOperation()
Definition: umlobject.cpp:1437
ObjectType baseType() const
Definition: umlobject.cpp:393
@ Cancel
Definition: codegenerationpolicy.h:42
bool forceDoc() const
Definition: codegenerator.cpp:764
Definition: classifiercodedocument.h:28
QHash< QString, CodeDocument * > m_codeDocumentDictionary
Definition: codegenerator.h:135
virtual void writeCodeToFile()
Definition: codegenerator.cpp:309
static QString formatSourceCode(const QString &code, const QString &indentation)
Definition: codegenerator.cpp:742
@ Skipped
Definition: codegenerator.h:57
@ Aggregation
Definition: basictypes.h:94
virtual QStringList reservedKeywords() const
Definition: codegenerator.cpp:805
QString toString(Enum item)
Definition: basictypes.cpp:912
ID::Type fromString(const QString &id)
Definition: basictypes.cpp:1311
void setForceSections(bool f)
Definition: codegenerator.cpp:769
void setSourceCode(const QString &code)
Definition: operation.cpp:515
QString getHeadingFile(const QString &str)
Definition: codegenerationpolicy.cpp:542
UMLPackage * asUMLPackage()
Definition: umlobject.cpp:1438
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:1092
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
virtual ~CodeGenerator()
Definition: codegenerator.cpp:66
#define i18n
Definition: main.cpp:35
@ Association
Definition: basictypes.h:96
static QString formatDoc(const QString &text, const QString &linePrefix=QLatin1String(" *"), int lineWidth=80)
Definition: codegenerator.cpp:711
Definition: codegenerationpolicy.h:25
Definition: simplecodegenerator.h:29
bool getCodeVerboseDocumentComments() const
Definition: codegenerationpolicy.cpp:148
bool removeCodeDocument(CodeDocument *remove_object)
Definition: codegenerator.cpp:149
@ B
Definition: basictypes.h:238
QString headingFileDir() const
static QString toString(ObjectType ot)
Definition: umlobject.cpp:1214
bool includeHeadings() const
#define logWarn1(s, a)
Definition: uml.h:544
@ 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:168
OverwritePolicy getOverwritePolicy() const
Definition: codegenerationpolicy.cpp:81
static UMLApp * app()
Definition: uml.cpp:349
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:77
QList< UMLPackage * > UMLPackageList
Definition: umlpackagelist.h:11
#define logWarn0(s)
Definition: uml.h:538
bool m_applyToAllRemaining
Definition: codegenerator.h:141
void codeGenerated(UMLClassifier *concept, bool generated)
Definition: moc_codegenerator.cpp:166
CodeGenerator()
Definition: codegenerator.cpp:51
Definition: operation.h:19
QString getFileName() const
Definition: codedocument.cpp:60
virtual void saveToXMI(QXmlStreamWriter &writer)
Definition: codegenerator.cpp:244
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:426
@ Composition
Definition: basictypes.h:103
QString ID() const
Definition: codedocument.cpp:140
virtual Uml::ProgrammingLanguage::Enum language() const =0
#define uIgnoreZeroPointer(a)
Definition: debug_utils.h:142
@ 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:774
QList< UMLOperation * > UMLOperationList
Definition: umloperationlist.h:12
QList< CodeDocument * > CodeDocumentList
Definition: codedocumentlist.h:12
bool addCodeDocument(CodeDocument *add_object)
Definition: codegenerator.cpp:124
UMLDoc * m_document
Definition: codegenerator.h:146
virtual void createDefaultStereotypes()
Definition: codegenerator.cpp:814
void writeListedCodeDocsToFile(CodeDocumentList *docs)
Definition: codegenerator.cpp:340
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:522
QString getSourceCode() const
Definition: operation.cpp:523
#define logError2(s, a, b)
Definition: uml.h:551
Non-graphical information for a Package.
Definition: package.h:27
void setIncludeHeadings(bool i)