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

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

cppheadercodedocument.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-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
6*/
7
8#ifndef CPPHEADERCODEDOCUMENT_H
9#define CPPHEADERCODEDOCUMENT_H
10
11#include "codeclassfieldlist.h"
12#include "classifiercodedocument.h"
13#include "hierarchicalcodeblock.h"
14
15#include <QString>
16
17 class CPPHeaderClassDeclarationBlock;
18
31 class CPPHeaderCodeDocument : public ClassifierCodeDocument
32{
33 Q_OBJECT
34 public:
35
36 explicit CPPHeaderCodeDocument(UMLClassifier* classifier);
37 virtual ~CPPHeaderCodeDocument();
38
39 bool addCodeOperation(CodeOperation* op);
40
41 void updateContent();
42
46 //virtual void saveToXMI(QXmlStreamWriter& writer);
47
48 protected:
49
50 // reset/clear our inventory of textblocks in this document
51 void resetTextBlocks();
52
57 virtual void loadChildTextBlocksFromNode(QDomElement & root);
58
59 void addOrUpdateCodeClassFieldMethodsInCodeBlock(CodeClassFieldList &list, CPPHeaderClassDeclarationBlock * codeBlock);
60
64 CodeComment * newCodeComment();
65
66 private:
67
68 CPPHeaderClassDeclarationBlock * m_classDeclCodeBlock;
69
70 HierarchicalCodeBlock * m_publicBlock;
71 HierarchicalCodeBlock * m_privateBlock;
72 HierarchicalCodeBlock * m_protectedBlock;
73
74 HierarchicalCodeBlock * m_namespaceBlock;
75
76 HierarchicalCodeBlock * m_pubConstructorBlock;
77 HierarchicalCodeBlock * m_protConstructorBlock;
78 HierarchicalCodeBlock * m_privConstructorBlock;
79
80 HierarchicalCodeBlock * m_pubOperationsBlock;
81 HierarchicalCodeBlock * m_privOperationsBlock;
82 HierarchicalCodeBlock * m_protOperationsBlock;
83
84 CPPHeaderClassDeclarationBlock * getClassDecl();
85
86};
87
88#endif // CPPHEADERCODEDOCUMENT_H
CPPHeaderClassDeclarationBlock
Definition: cppheaderclassdeclarationblock.h:17
CPPHeaderCodeDocument
Definition: cppheadercodedocument.h:32
CPPHeaderCodeDocument::m_publicBlock
HierarchicalCodeBlock * m_publicBlock
Definition: cppheadercodedocument.h:70
CPPHeaderCodeDocument::m_pubOperationsBlock
HierarchicalCodeBlock * m_pubOperationsBlock
Definition: cppheadercodedocument.h:80
CPPHeaderCodeDocument::resetTextBlocks
void resetTextBlocks()
Definition: cppheadercodedocument.cpp:213
CPPHeaderCodeDocument::updateContent
void updateContent()
Definition: cppheadercodedocument.cpp:331
CPPHeaderCodeDocument::newCodeComment
CodeComment * newCodeComment()
CPPHeaderCodeDocument::m_protectedBlock
HierarchicalCodeBlock * m_protectedBlock
Definition: cppheadercodedocument.h:72
CPPHeaderCodeDocument::m_privOperationsBlock
HierarchicalCodeBlock * m_privOperationsBlock
Definition: cppheadercodedocument.h:81
CPPHeaderCodeDocument::addCodeOperation
bool addCodeOperation(CodeOperation *op)
Definition: cppheadercodedocument.cpp:272
CPPHeaderCodeDocument::~CPPHeaderCodeDocument
virtual ~CPPHeaderCodeDocument()
Definition: cppheadercodedocument.cpp:60
CPPHeaderCodeDocument::m_protOperationsBlock
HierarchicalCodeBlock * m_protOperationsBlock
Definition: cppheadercodedocument.h:82
CPPHeaderCodeDocument::m_protConstructorBlock
HierarchicalCodeBlock * m_protConstructorBlock
Definition: cppheadercodedocument.h:77
CPPHeaderCodeDocument::getClassDecl
CPPHeaderClassDeclarationBlock * getClassDecl()
Definition: cppheadercodedocument.cpp:65
CPPHeaderCodeDocument::m_pubConstructorBlock
HierarchicalCodeBlock * m_pubConstructorBlock
Definition: cppheadercodedocument.h:76
CPPHeaderCodeDocument::addOrUpdateCodeClassFieldMethodsInCodeBlock
void addOrUpdateCodeClassFieldMethodsInCodeBlock(CodeClassFieldList &list, CPPHeaderClassDeclarationBlock *codeBlock)
CPPHeaderCodeDocument::m_classDeclCodeBlock
CPPHeaderClassDeclarationBlock * m_classDeclCodeBlock
Definition: cppheadercodedocument.h:68
CPPHeaderCodeDocument::m_namespaceBlock
HierarchicalCodeBlock * m_namespaceBlock
Definition: cppheadercodedocument.h:74
CPPHeaderCodeDocument::m_privConstructorBlock
HierarchicalCodeBlock * m_privConstructorBlock
Definition: cppheadercodedocument.h:78
CPPHeaderCodeDocument::loadChildTextBlocksFromNode
virtual void loadChildTextBlocksFromNode(QDomElement &root)
Definition: cppheadercodedocument.cpp:79
CPPHeaderCodeDocument::m_privateBlock
HierarchicalCodeBlock * m_privateBlock
Definition: cppheadercodedocument.h:71
ClassifierCodeDocument
Definition: classifiercodedocument.h:29
CodeComment
Definition: codecomment.h:20
CodeOperation
Definition: codeoperation.h:20
HierarchicalCodeBlock
Definition: hierarchicalcodeblock.h:21
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: umlclassifier.h:35
classifiercodedocument.h
codeclassfieldlist.h
CodeClassFieldList
QList< CodeClassField * > CodeClassFieldList
Definition: codeclassfieldlist.h:14
hierarchicalcodeblock.h