umbrello: umbrello/codegenerators/codegenfactory.h Source File

umbrello 2.32.3 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
basictypes.h
ClassifierCodeDocument
Definition: classifiercodedocument.h:33
CodeAccessorMethod
Definition: codeaccessormethod.h:21
CodeAccessorMethod::AccessorType
AccessorType
Definition: codeaccessormethod.h:32
CodeClassFieldDeclarationBlock
Definition: codeclassfielddeclarationblock.h:30
CodeClassField
Definition: codeclassfield.h:30
CodeComment
Definition: codecomment.h:24
CodeDocument
Definition: codedocument.h:33
CodeGenPolicyExt
Definition: codegenpolicyext.h:28
CodeGenerator
Definition: codegenerator.h:57
CodeOperation
Definition: codeoperation.h:24
UMLAttribute
Sets up attribute information.
Definition: attribute.h:28
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
UMLOperation
Definition: operation.h:25
UMLRole
Definition: umlrole.h:25
codeaccessormethod.h
CodeGenFactory
Definition: codegenfactory.cpp:95
CodeGenFactory::newCodeGenPolicyExt
CodeGenPolicyExt * newCodeGenPolicyExt(Uml::ProgrammingLanguage::Enum pl)
Definition: codegenfactory.cpp:435
CodeGenFactory::createObject
CodeGenerator * createObject(Uml::ProgrammingLanguage::Enum pl)
Definition: codegenfactory.cpp:97
CodeGenFactory::newDeclarationCodeBlock
CodeClassFieldDeclarationBlock * newDeclarationCodeBlock(ClassifierCodeDocument *cd, CodeClassField *cf)
Definition: codegenfactory.cpp:363
CodeGenFactory::newClassifierCodeDocument
CodeDocument * newClassifierCodeDocument(UMLClassifier *c)
Definition: codegenfactory.cpp:192
CodeGenFactory::newCodeComment
CodeComment * newCodeComment(CodeDocument *cd)
Definition: codegenfactory.cpp:402
CodeGenFactory::newCodeClassField
CodeClassField * newCodeClassField(ClassifierCodeDocument *ccd, UMLAttribute *at)
Definition: codegenfactory.cpp:265
CodeGenFactory::newCodeOperation
CodeOperation * newCodeOperation(ClassifierCodeDocument *ccd, UMLOperation *op)
Definition: codegenfactory.cpp:222
CodeGenFactory::newCodeAccessorMethod
CodeAccessorMethod * newCodeAccessorMethod(ClassifierCodeDocument *ccd, CodeClassField *cf, CodeAccessorMethod::AccessorType type)
Definition: codegenfactory.cpp:313
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:271