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

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

cppheaderclassdeclarationblock.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 CPPHEADERCLASSDECLARATIONBLOCK_H
13 #define CPPHEADERCLASSDECLARATIONBLOCK_H
14
15 #include "cppheadercodedocument.h"
16 #include "ownedhierarchicalcodeblock.h"
17
18 #include <QString>
19
20 class CPPHeaderClassDeclarationBlock : public OwnedHierarchicalCodeBlock
21 {
22 Q_OBJECT
23 public:
24
28 explicit CPPHeaderClassDeclarationBlock (CPPHeaderCodeDocument * parentDoc, const QString &start = QString(), const QString &endText = QLatin1String("}"), const QString &comment = QString());
29
33 virtual ~CPPHeaderClassDeclarationBlock ();
34
38 void updateContent ();
39
43 virtual void saveToXMI1 (QDomDocument & doc, QDomElement & root);
44
45 virtual void loadFromXMI1 (QDomElement & root);
46
47 protected:
48
52 virtual void setAttributesFromObject (TextBlock * obj);
53
54 private:
55
56 void init (CPPHeaderCodeDocument * parent, const QString &comment);
57
58 };
59
60 #endif // CPPHEADERCLASSDECLARATIONBLOCK_H
cppcodedocumentation.h
OwnedHierarchicalCodeBlock::setAttributesFromNode
virtual void setAttributesFromNode(QDomElement &element)
Definition: ownedhierarchicalcodeblock.cpp:83
HierarchicalCodeBlock::setEndText
void setEndText(const QString &new_var)
Definition: hierarchicalcodeblock.cpp:43
ClassifierCodeDocument::parentIsInterface
bool parentIsInterface()
Definition: classifiercodedocument.cpp:418
cppcodegenerator.h
CPPHeaderClassDeclarationBlock::loadFromXMI1
virtual void loadFromXMI1(QDomElement &root)
Definition: cppheaderclassdeclarationblock.cpp:33
CPPHeaderClassDeclarationBlock
Definition: cppheaderclassdeclarationblock.h:21
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
HierarchicalCodeBlock::setStartText
void setStartText(const QString &text)
Definition: hierarchicalcodeblock.cpp:199
cppheadercodedocument.h
CodeGenerator::cleanName
static QString cleanName(const QString &name)
Definition: codegenerator.cpp:549
TextBlock::setWriteOutText
void setWriteOutText(bool write)
Definition: textblock.cpp:131
CPPHeaderCodeDocument
Definition: cppheadercodedocument.h:36
CPPHeaderClassDeclarationBlock::~CPPHeaderClassDeclarationBlock
virtual ~CPPHeaderClassDeclarationBlock()
Definition: cppheaderclassdeclarationblock.cpp:26
UMLApp::commonPolicy
CodeGenerationPolicy * commonPolicy() const
Definition: uml.cpp:2274
ownedhierarchicalcodeblock.h
cppheaderclassdeclarationblock.h
CPPCodeDocumentation
Definition: cppcodedocumentation.h:28
OwnedHierarchicalCodeBlock::setAttributesOnNode
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Definition: ownedhierarchicalcodeblock.cpp:57
CPPHeaderClassDeclarationBlock::setAttributesFromObject
virtual void setAttributesFromObject(TextBlock *obj)
Definition: cppheaderclassdeclarationblock.cpp:40
UMLClassifierList
QList< UMLClassifier * > UMLClassifierList
Definition: umlclassifierlist.h:17
CodeBlockWithComments::getComment
CodeComment * getComment() const
Definition: codeblockwithcomments.cpp:47
CPPHeaderClassDeclarationBlock::CPPHeaderClassDeclarationBlock
CPPHeaderClassDeclarationBlock(CPPHeaderCodeDocument *parentDoc, const QString &start=QString(), const QString &endText=QLatin1String("}"), const QString &comment=QString())
Definition: cppheaderclassdeclarationblock.cpp:20
model_utils.h
CPPHeaderClassDeclarationBlock::init
void init(CPPHeaderCodeDocument *parent, const QString &comment)
Definition: cppheaderclassdeclarationblock.cpp:129
UMLObject::isAbstract
bool isAbstract() const
Definition: umlobject.cpp:348
UMLClassifier::hasAbstractOps
bool hasAbstractOps()
Definition: classifier.cpp:909
CodeBlockWithComments::setComment
void setComment(CodeComment *object)
Definition: codeblockwithcomments.cpp:39
UMLObject::visibility
Uml::Visibility::Enum visibility() const
Definition: umlobject.cpp:466
UMLClassifier::findSuperClassConcepts
UMLClassifierList findSuperClassConcepts(ClassifierType type=ALL)
Definition: classifier.cpp:609
Uml::Visibility::toString
QString toString(Enum item, bool mnemonic)
Definition: basictypes.cpp:124
OwnedHierarchicalCodeBlock
Definition: ownedhierarchicalcodeblock.h:27
CodeGenerationPolicy::getCodeVerboseDocumentComments
bool getCodeVerboseDocumentComments() const
Definition: codegenerationpolicy.cpp:152
CPPHeaderClassDeclarationBlock::saveToXMI1
virtual void saveToXMI1(QDomDocument &doc, QDomElement &root)
Definition: cppheaderclassdeclarationblock.cpp:48
UMLObject::doc
QString doc() const
Definition: umlobject.cpp:435
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:269
cppcodegenerationpolicy.h
ClassifierCodeDocument::getParentClassifier
UMLClassifier * getParentClassifier()
Definition: classifiercodedocument.cpp:275
uml.h
OwnedHierarchicalCodeBlock::getParentDocument
CodeDocument * getParentDocument()
Definition: ownedhierarchicalcodeblock.cpp:93
CodeGenerationPolicy::getNewLineEndingChars
QString getNewLineEndingChars() const
Definition: codegenerationpolicy.cpp:253
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
TextBlock
Definition: textblock.h:25
TextBlock::setText
void setText(const QString &text)
Definition: textblock.cpp:80
HierarchicalCodeBlock::setAttributesFromObject
virtual void setAttributesFromObject(TextBlock *obj)
Definition: hierarchicalcodeblock.cpp:297
CPPHeaderClassDeclarationBlock::updateContent
void updateContent()
Definition: cppheaderclassdeclarationblock.cpp:60