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 SPDX-License-Identifier: GPL-2.0-or-later
3
4 SPDX-FileCopyrightText: 2003 Brian Thomas <thomas@mail630.gsfc.nasa.gov>
5 SPDX-FileCopyrightText: 2004-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
6*/
7
8#ifndef CPPHEADERCLASSDECLARATIONBLOCK_H
9#define CPPHEADERCLASSDECLARATIONBLOCK_H
10
11#include "cppheadercodedocument.h"
12#include "ownedhierarchicalcodeblock.h"
13
14#include <QString>
15
16 class CPPHeaderClassDeclarationBlock : public OwnedHierarchicalCodeBlock
17{
18 Q_OBJECT
19public:
20
24 explicit CPPHeaderClassDeclarationBlock (CPPHeaderCodeDocument * parentDoc, const QString &start = QString(), const QString &endText = QLatin1String("}"), const QString &comment = QString());
25
29 virtual ~CPPHeaderClassDeclarationBlock ();
30
34 void updateContent ();
35
39 virtual void saveToXMI1(QXmlStreamWriter& writer);
40
41 virtual void loadFromXMI1 (QDomElement & root);
42
43protected:
44
48 virtual void setAttributesFromObject (TextBlock * obj);
49
50private:
51
52 void init (CPPHeaderCodeDocument * parent, const QString &comment);
53
54};
55
56#endif // CPPHEADERCLASSDECLARATIONBLOCK_H
CPPHeaderClassDeclarationBlock
Definition: cppheaderclassdeclarationblock.h:17
CPPHeaderClassDeclarationBlock::loadFromXMI1
virtual void loadFromXMI1(QDomElement &root)
Definition: cppheaderclassdeclarationblock.cpp:29
CPPHeaderClassDeclarationBlock::init
void init(CPPHeaderCodeDocument *parent, const QString &comment)
Definition: cppheaderclassdeclarationblock.cpp:125
CPPHeaderClassDeclarationBlock::saveToXMI1
virtual void saveToXMI1(QXmlStreamWriter &writer)
Definition: cppheaderclassdeclarationblock.cpp:44
CPPHeaderClassDeclarationBlock::CPPHeaderClassDeclarationBlock
CPPHeaderClassDeclarationBlock(CPPHeaderCodeDocument *parentDoc, const QString &start=QString(), const QString &endText=QLatin1String("}"), const QString &comment=QString())
Definition: cppheaderclassdeclarationblock.cpp:16
CPPHeaderClassDeclarationBlock::~CPPHeaderClassDeclarationBlock
virtual ~CPPHeaderClassDeclarationBlock()
Definition: cppheaderclassdeclarationblock.cpp:22
CPPHeaderClassDeclarationBlock::setAttributesFromObject
virtual void setAttributesFromObject(TextBlock *obj)
Definition: cppheaderclassdeclarationblock.cpp:36
CPPHeaderClassDeclarationBlock::updateContent
void updateContent()
Definition: cppheaderclassdeclarationblock.cpp:56
CPPHeaderCodeDocument
Definition: cppheadercodedocument.h:32
OwnedHierarchicalCodeBlock
Definition: ownedhierarchicalcodeblock.h:23
TextBlock
Definition: textblock.h:23
cppheadercodedocument.h
ownedhierarchicalcodeblock.h