umbrello: umbrello/codegenerators/codegenfactory.h Source File

umbrello 2.32.1 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

codegenfactory.h
Go to the documentation of this file.
1 /***************************************************************************
2 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2004-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef CODEGENFACTORY_H
12 #define CODEGENFACTORY_H
13
14 #include "basictypes.h"
15 #include "codeaccessormethod.h"
16
17 // fwd decls
18 class CodeGenerator;
19 class ClassifierCodeDocument;
20 class CodeOperation;
21 class CodeClassField;
22 class CodeClassFieldDeclarationBlock;
23 class CodeGenPolicyExt;
24 class UMLClassifier;
25 class UMLOperation;
26 class UMLAttribute;
27 class UMLRole;
28
37 namespace CodeGenFactory {
38
39 CodeGenerator* createObject(Uml::ProgrammingLanguage::Enum pl);
40
41 CodeOperation *newCodeOperation(ClassifierCodeDocument *cd, UMLOperation * op);
42
43 CodeClassField *newCodeClassField(ClassifierCodeDocument *cd, UMLAttribute * at);
44
45 CodeClassField *newCodeClassField(ClassifierCodeDocument *cd, UMLRole *role);
46
47 CodeAccessorMethod *newCodeAccessorMethod(ClassifierCodeDocument *cd,
48 CodeClassField *cf,
49 CodeAccessorMethod::AccessorType type);
50
51 CodeClassFieldDeclarationBlock *newDeclarationCodeBlock(ClassifierCodeDocument *cd,
52 CodeClassField * cf);
53
54 CodeComment *newCodeComment(CodeDocument *cd);
55
56 CodeDocument *newClassifierCodeDocument(UMLClassifier *classifier);
57
58 CodeGenPolicyExt* newCodeGenPolicyExt(Uml::ProgrammingLanguage::Enum pl);
59 }
60
61 #endif //CODEGENFACTORY_H
Uml::ProgrammingLanguage::PHP
@ PHP
Definition: basictypes.h:283
CPPHeaderCodeOperation
Definition: cppheadercodeoperation.h:22
umlrole.h
cppcodedocumentation.h
IDLWriter
Definition: idlwriter.h:30
rubycodeaccessormethod.h
CodeGenFactory::newDeclarationCodeBlock
CodeClassFieldDeclarationBlock * newDeclarationCodeBlock(ClassifierCodeDocument *cd, CodeClassField *cf)
Definition: codegenfactory.cpp:363
DCodeComment
Definition: dcodecomment.h:26
RubyCodeOperation
Definition: rubycodeoperation.h:23
pythonwriter.h
rubycodeclassfield.h
cppcodeclassfield.h
javacodecomment.h
xmlschemawriter.h
cppheadercodeaccessormethod.h
Uml::ProgrammingLanguage::Perl
@ Perl
Definition: basictypes.h:282
CodeGenFactory::createObject
CodeGenerator * createObject(Uml::ProgrammingLanguage::Enum pl)
Definition: codegenfactory.cpp:97
cppcodegenerator.h
jswriter.h
pascalwriter.h
codegenfactory.h
javawriter.h
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:271
JavaCodeAccessorMethod::update
void update()
Definition: javacodeaccessormethod.cpp:202
CodeClassFieldDeclarationBlock
Definition: codeclassfielddeclarationblock.h:30
CPPSourceCodeAccessorMethod::update
void update()
Definition: cppsourcecodeaccessormethod.cpp:34
CPPSourceCodeOperation::updateMethodDeclaration
virtual void updateMethodDeclaration()
Definition: cppsourcecodeoperation.cpp:48
Uml::ProgrammingLanguage::PostgreSQL
@ PostgreSQL
Definition: basictypes.h:285
JavaCodeComment
Definition: javacodecomment.h:26
CodeClassField::finishInitialization
void finishInitialization()
Definition: codeclassfield.cpp:661
Uml::ProgrammingLanguage::Pascal
@ Pascal
Definition: basictypes.h:281
dcodecomment.h
rubywriter.h
tclwriter.h
cppheadercodedocument.h
adawriter.h
CPPSourceCodeOperation::updateContent
virtual void updateContent()
Definition: cppsourcecodeoperation.cpp:36
dcodegenerationpolicy.h
Uml::ProgrammingLanguage::Java
@ Java
Definition: basictypes.h:278
rubycodeoperation.h
RubyCodeAccessorMethod::update
void update()
Definition: rubycodeaccessormethod.cpp:240
operation.h
javacodeclassfielddeclarationblock.h
Uml::ProgrammingLanguage::Tcl
@ Tcl
Definition: basictypes.h:289
CodeComment
Definition: codecomment.h:24
DClassifierCodeDocument
Definition: dclassifiercodedocument.h:37
CPPHeaderCodeDocument
Definition: cppheadercodedocument.h:36
CppWriter
Definition: cppwriter.h:35
cppheadercodeclassfielddeclarationblock.h
XMLCodeComment
Definition: xmlcodecomment.h:26
DCodeOperation
Definition: dcodeoperation.h:22
Uml::ProgrammingLanguage::MySQL
@ MySQL
Definition: basictypes.h:280
cppsourcecodeclassfielddeclarationblock.h
SQLWriter
Definition: sqlwriter.h:30
xmlcodecomment.h
Uml::ProgrammingLanguage::Python
@ Python
Definition: basictypes.h:286
DWriter
Definition: dwriter.h:33
dcodeclassfield.h
Uml::ProgrammingLanguage::ActionScript
@ ActionScript
Definition: basictypes.h:272
CodeAccessorMethod
Definition: codeaccessormethod.h:21
Uml::ProgrammingLanguage::XMLSchema
@ XMLSchema
Definition: basictypes.h:291
CPPHeaderCodeAccessorMethod
Definition: cppheadercodeaccessormethod.h:22
CPPCodeDocumentation
Definition: cppcodedocumentation.h:28
Uml::ProgrammingLanguage::Ruby
@ Ruby
Definition: basictypes.h:287
aswriter.h
Settings::GeneralState::newcodegen
bool newcodegen
Definition: optionstate.h:58
CPPCodeGenerator
Definition: cppcodegenerator.h:27
ValaWriter
Definition: valawriter.h:29
dcodeoperation.h
CodeClassField
Definition: codeclassfield.h:30
javaclassifiercodedocument.h
Settings::OptionState::generalState
GeneralState generalState
Definition: optionstate.h:326
CodeDocument
Definition: codedocument.h:33
CPPHeaderCodeClassFieldDeclarationBlock
Definition: cppheadercodeclassfielddeclarationblock.h:20
CodeGenFactory
Definition: codegenfactory.cpp:95
DCodeClassFieldDeclarationBlock
Definition: dcodeclassfielddeclarationblock.h:20
CPPSourceCodeOperation
Definition: cppsourcecodeoperation.h:22
PascalWriter
Definition: pascalwriter.h:26
Uml::ProgrammingLanguage::IDL
@ IDL
Definition: basictypes.h:277
PostgreSQLWriter
Definition: postgresqlwriter.h:23
DCodeAccessorMethod
Definition: dcodeaccessormethod.h:22
JavaCodeClassFieldDeclarationBlock
Definition: javacodeclassfielddeclarationblock.h:20
CodeGenPolicyExt
Definition: codegenpolicyext.h:28
CPPCodeGenerationPolicy
Definition: cppcodegenerationpolicy.h:23
DCodeAccessorMethod::update
void update()
Definition: dcodeaccessormethod.cpp:208
RubyWriter
Definition: rubywriter.h:27
UMLRole
Definition: umlrole.h:25
dcodegenerator.h
UMLApp::setPolicyExt
void setPolicyExt(CodeGenPolicyExt *policy)
Definition: uml.cpp:2282
optionstate.h
ClassifierCodeDocument
Definition: classifiercodedocument.h:33
Settings::optionState
OptionState & optionState()
Definition: optionstate.cpp:362
PhpWriter
Definition: phpwriter.h:24
CodeGenFactory::newClassifierCodeDocument
CodeDocument * newClassifierCodeDocument(UMLClassifier *c)
Definition: codegenfactory.cpp:192
rubyclassifiercodedocument.h
phpwriter.h
rubycodecomment.h
Uml::ProgrammingLanguage::toString
QString toString(Enum item)
Definition: basictypes.cpp:873
dcodeclassfielddeclarationblock.h
CodeBlockWithComments::setOverallIndentationLevel
void setOverallIndentationLevel(int level)
Definition: codeblockwithcomments.cpp:164
postgresqlwriter.h
CPPSourceCodeClassFieldDeclarationBlock
Definition: cppsourcecodeclassfielddeclarationblock.h:20
javacodeoperation.h
cppsourcecodeaccessormethod.h
JavaCodeClassField
Definition: javacodeclassfield.h:22
dcodeaccessormethod.h
Uml::ProgrammingLanguage::SQL
@ SQL
Definition: basictypes.h:288
CodeGenFactory::newCodeComment
CodeComment * newCodeComment(CodeDocument *cd)
Definition: codegenfactory.cpp:402
mysqlwriter.h
CodeOperation::updateMethodDeclaration
virtual void updateMethodDeclaration()=0
attribute.h
JavaWriter
Definition: javawriter.h:33
CodeGenerator::initFromParentDocument
virtual void initFromParentDocument()=0
javacodeclassfield.h
uWarning
#define uWarning()
Definition: debug_utils.h:124
ASWriter
Definition: aswriter.h:26
CPPHeaderCodeAccessorMethod::update
void update()
Definition: cppheadercodeaccessormethod.cpp:34
Uml::ProgrammingLanguage::D
@ D
Definition: basictypes.h:276
csharpwriter.h
ClassifierCodeDocument::synchronize
virtual void synchronize()
Definition: classifiercodedocument.cpp:480
JavaCodeOperation
Definition: javacodeoperation.h:22
basictypes.h
Uml::ProgrammingLanguage::Ada
@ Ada
Definition: basictypes.h:273
RubyCodeClassFieldDeclarationBlock
Definition: rubycodeclassfielddeclarationblock.h:21
ClassifierCodeDocument::initCodeClassFields
virtual void initCodeClassFields()
Definition: classifiercodedocument.cpp:540
AdaWriter
Definition: adawriter.h:33
JSWriter
Definition: jswriter.h:26
Uml::ProgrammingLanguage::Cpp
@ Cpp
Definition: basictypes.h:274
CPPHeaderCodeOperation::updateMethodDeclaration
virtual void updateMethodDeclaration()
Definition: cppheadercodeoperation.cpp:55
dwriter.h
dclassifiercodedocument.h
JavaCodeAccessorMethod
Definition: javacodeaccessormethod.h:22
CodeGenFactory::newCodeAccessorMethod
CodeAccessorMethod * newCodeAccessorMethod(ClassifierCodeDocument *ccd, CodeClassField *cf, CodeAccessorMethod::AccessorType type)
Definition: codegenfactory.cpp:313
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:269
RubyCodeAccessorMethod
Definition: rubycodeaccessormethod.h:22
UMLAttribute
Sets up attribute information.
Definition: attribute.h:28
CPPCodeClassField
Definition: cppcodeclassfield.h:22
PythonWriter
Definition: pythonwriter.h:27
cppcodegenerationpolicy.h
javacodegenerationpolicy.h
CPPSourceCodeDocument
Definition: cppsourcecodedocument.h:23
DCodeGenerator
Definition: dcodegenerator.h:27
javacodegenerator.h
JavaClassifierCodeDocument
Definition: javaclassifiercodedocument.h:33
RubyCodeGenerationPolicy
Definition: rubycodegenerationpolicy.h:24
Settings::OptionState
Definition: optionstate.h:314
RubyCodeClassField
Definition: rubycodeclassfield.h:23
cppsourcecodeoperation.h
javaantcodedocument.h
UMLOperation
Definition: operation.h:25
CodeOperation
Definition: codeoperation.h:24
PerlWriter
Definition: perlwriter.h:28
uml.h
CodeOperation::updateContent
virtual void updateContent()
Definition: codeoperation.cpp:151
cppheadercodeoperation.h
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
debug_utils.h
perlwriter.h
JavaANTCodeDocument
Definition: javaantcodedocument.h:26
RubyClassifierCodeDocument
Definition: rubyclassifiercodedocument.h:37
CPPSourceCodeClassFieldDeclarationBlock::updateContent
void updateContent()
Definition: cppsourcecodeclassfielddeclarationblock.cpp:28
Uml::ProgrammingLanguage::Vala
@ Vala
Definition: basictypes.h:290
codeaccessormethod.h
php5writer.h
javacodeaccessormethod.h
RubyCodeGenerator
Definition: rubycodegenerator.h:28
MySQLWriter
Definition: mysqlwriter.h:27
DCodeGenerationPolicy
Definition: dcodegenerationpolicy.h:23
codegenerator.h
cppsourcecodedocument.h
CodeGenFactory::newCodeClassField
CodeClassField * newCodeClassField(ClassifierCodeDocument *ccd, UMLAttribute *at)
Definition: codegenfactory.cpp:265
JavaCodeGenerator
Definition: javacodegenerator.h:28
CodeGenerator
Definition: codegenerator.h:57
idlwriter.h
rubycodeclassfielddeclarationblock.h
cppwriter.h
CodeGenFactory::newCodeGenPolicyExt
CodeGenPolicyExt * newCodeGenPolicyExt(Uml::ProgrammingLanguage::Enum pl)
Definition: codegenfactory.cpp:435
Uml::ProgrammingLanguage::JavaScript
@ JavaScript
Definition: basictypes.h:279
Uml::ProgrammingLanguage::CSharp
@ CSharp
Definition: basictypes.h:275
rubycodegenerator.h
RubyCodeComment
Definition: rubycodecomment.h:28
CodeAccessorMethod::AccessorType
AccessorType
Definition: codeaccessormethod.h:32
valawriter.h
CodeGenFactory::newCodeOperation
CodeOperation * newCodeOperation(ClassifierCodeDocument *ccd, UMLOperation *op)
Definition: codegenfactory.cpp:222
DCodeClassField
Definition: dcodeclassfield.h:22
sqlwriter.h
CodeClassFieldDeclarationBlock::updateContent
virtual void updateContent()=0
JavaCodeGenerationPolicy
Definition: javacodegenerationpolicy.h:23
umldoc.h
CPPHeaderCodeClassFieldDeclarationBlock::updateContent
void updateContent()
Definition: cppheadercodeclassfielddeclarationblock.cpp:28
CPPSourceCodeAccessorMethod
Definition: cppsourcecodeaccessormethod.h:22
CSharpWriter
Definition: csharpwriter.h:26
rubycodegenerationpolicy.h
Php5Writer
Definition: php5writer.h:25
CPPHeaderCodeOperation::updateContent
virtual void updateContent()
Definition: cppheadercodeoperation.cpp:44
Uml::ProgrammingLanguage::PHP5
@ PHP5
Definition: basictypes.h:284
XMLSchemaWriter
Definition: xmlschemawriter.h:38
TclWriter
Definition: tclwriter.h:32