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

umbrello 2.32.3 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
CPPHeaderClassDeclarationBlock
Definition: cppheaderclassdeclarationblock.h:21
CPPHeaderClassDeclarationBlock::loadFromXMI1
virtual void loadFromXMI1(QDomElement &root)
Definition: cppheaderclassdeclarationblock.cpp:33
CPPHeaderClassDeclarationBlock::init
void init(CPPHeaderCodeDocument *parent, const QString &comment)
Definition: cppheaderclassdeclarationblock.cpp:129
CPPHeaderClassDeclarationBlock::CPPHeaderClassDeclarationBlock
CPPHeaderClassDeclarationBlock(CPPHeaderCodeDocument *parentDoc, const QString &start=QString(), const QString &endText=QLatin1String("}"), const QString &comment=QString())
Definition: cppheaderclassdeclarationblock.cpp:20
CPPHeaderClassDeclarationBlock::saveToXMI1
virtual void saveToXMI1(QDomDocument &doc, QDomElement &root)
Definition: cppheaderclassdeclarationblock.cpp:48
CPPHeaderClassDeclarationBlock::~CPPHeaderClassDeclarationBlock
virtual ~CPPHeaderClassDeclarationBlock()
Definition: cppheaderclassdeclarationblock.cpp:26
CPPHeaderClassDeclarationBlock::setAttributesFromObject
virtual void setAttributesFromObject(TextBlock *obj)
Definition: cppheaderclassdeclarationblock.cpp:40
CPPHeaderClassDeclarationBlock::updateContent
void updateContent()
Definition: cppheaderclassdeclarationblock.cpp:60
CPPHeaderCodeDocument
Definition: cppheadercodedocument.h:36
OwnedHierarchicalCodeBlock
Definition: ownedhierarchicalcodeblock.h:27
TextBlock
Definition: textblock.h:25
cppheadercodedocument.h
ownedhierarchicalcodeblock.h