umbrello: umbrello/codegenerators/cpp/cppheadercodeoperation.h Source File

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

cppheadercodeoperation.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) 2003 Brian Thomas <thomas@mail630.gsfc.nasa.gov> *
8 * copyright (C) 2004-2020 *
9 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
10 ***************************************************************************/
11
12 #ifndef CPPHEADERCODEOPERATION_H
13 #define CPPHEADERCODEOPERATION_H
14
15 #include "codeoperation.h"
16
17 #include <QString>
18
19 class CPPHeaderCodeDocument;
20
21 class CPPHeaderCodeOperation : virtual public CodeOperation
22 {
23 Q_OBJECT
24 public:
25
29 CPPHeaderCodeOperation (CPPHeaderCodeDocument * doc, UMLOperation * op,
30 const QString & body = QString(), const QString & comment = QString());
31
35 virtual ~CPPHeaderCodeOperation ();
36
37 virtual int lastEditableLine();
38
39 virtual void updateMethodDeclaration();
40 virtual void updateContent();
41
42 protected:
43
47 virtual void applyStereotypes (QString&, UMLOperation *, bool, bool, QString&, QString&);
48
49 };
50
51 #endif // CPPHEADERCODEOPERATION_H
CPPHeaderCodeOperation
Definition: cppheadercodeoperation.h:21
Import_Rose::methodName
void methodName(const QString &m)
Definition: import_rose.cpp:61
cppcodedocumentation.h
CPPCodeGenerationPolicy::getDocToolTag
QString getDocToolTag()
Definition: cppcodegenerationpolicy.cpp:256
ClassifierCodeDocument::parentIsInterface
bool parentIsInterface()
Definition: classifiercodedocument.cpp:418
CPPHeaderCodeOperation::CPPHeaderCodeOperation
CPPHeaderCodeOperation(CPPHeaderCodeDocument *doc, UMLOperation *op, const QString &body=QString(), const QString &comment=QString())
Definition: cppheadercodeoperation.cpp:21
cppcodegenerator.h
UMLAttributeList
Definition: umlattributelist.h:26
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
UMLOperation::getParmList
UMLAttributeList getParmList() const
Definition: operation.cpp:178
cppheadercodedocument.h
UMLAttribute::getInitialValue
QString getInitialValue() const
Definition: attribute.cpp:99
UMLClassifierListItem::getTypeName
virtual QString getTypeName() const
Definition: classifierlistitem.cpp:112
CPPHeaderCodeDocument
Definition: cppheadercodedocument.h:35
UMLOperation::getConst
bool getConst() const
Definition: operation.cpp:430
CPPCodeDocumentation
Definition: cppcodedocumentation.h:27
UMLObject::isStatic
bool isStatic() const
Definition: umlobject.cpp:366
CodeBlockWithComments::getComment
CodeComment * getComment() const
Definition: codeblockwithcomments.cpp:47
CodeMethodBlock::getParentDocument
CodeDocument * getParentDocument()
Definition: codemethodblock.cpp:33
CodeGenPolicyExt
Definition: codegenpolicyext.h:27
CPPCodeGenerationPolicy
Definition: cppcodegenerationpolicy.h:22
UMLObject::isAbstract
bool isAbstract() const
Definition: umlobject.cpp:348
codeoperation.h
ClassifierCodeDocument
Definition: classifiercodedocument.h:32
CPPHeaderCodeOperation::~CPPHeaderCodeOperation
virtual ~CPPHeaderCodeOperation()
Definition: cppheadercodeoperation.cpp:36
UMLOperation::isLifeOperation
bool isLifeOperation()
Definition: operation.cpp:414
UMLOperation::getOverride
bool getOverride() const
Definition: operation.cpp:446
CPPHeaderCodeOperation::updateMethodDeclaration
virtual void updateMethodDeclaration()
Definition: cppheadercodeoperation.cpp:55
UMLObject::doc
QString doc() const
Definition: umlobject.cpp:435
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:269
UMLAttribute
Sets up attribute information.
Definition: attribute.h:27
cppcodegenerationpolicy.h
CodeBlock::contentType
ContentType contentType() const
Definition: codeblock.cpp:54
CodeBlock::AutoGenerated
@ AutoGenerated
the content was generated by code generation itself
Definition: codeblock.h:46
CPPCodeGenerationPolicy::getOperationsAreInline
bool getOperationsAreInline()
Definition: cppcodegenerationpolicy.cpp:100
CodeMethodBlock::setEndMethodText
void setEndMethodText(const QString &value)
Definition: codemethodblock.cpp:66
CodeOperation::getParentOperation
UMLOperation * getParentOperation()
Definition: codeoperation.cpp:64
UMLOperation
Definition: operation.h:24
CodeOperation
Definition: codeoperation.h:23
UMLApp::policyExt
CodeGenPolicyExt * policyExt() const
Definition: uml.cpp:2290
uml.h
cppheadercodeoperation.h
TextBlock::getNewLineEndingChars
static QString getNewLineEndingChars()
Definition: textblock.cpp:172
CPPHeaderCodeOperation::applyStereotypes
virtual void applyStereotypes(QString &, UMLOperation *, bool, bool, QString &, QString &)
Definition: cppheadercodeoperation.cpp:133
CPPHeaderCodeOperation::lastEditableLine
virtual int lastEditableLine()
Definition: cppheadercodeoperation.cpp:123
CodeMethodBlock::setStartMethodText
void setStartMethodText(const QString &value)
Definition: codemethodblock.cpp:58
TextBlock::setText
void setText(const QString &text)
Definition: textblock.cpp:80
UMLObject::stereotype
QString stereotype(bool includeAdornments=false) const
Definition: umlobject.cpp:558
CPPHeaderCodeOperation::updateContent
virtual void updateContent()
Definition: cppheadercodeoperation.cpp:44