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

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

cppsourcecodedocument.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) 2004-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef CPPSOURCECODEDOCUMENT_H
12 #define CPPSOURCECODEDOCUMENT_H
13
14 #include "classifiercodedocument.h"
15 #include "hierarchicalcodeblock.h"
16
17 #include <QString>
18
22 class CPPSourceCodeDocument : public ClassifierCodeDocument
23 {
24 Q_OBJECT
25 public:
26
30 explicit CPPSourceCodeDocument(UMLClassifier * classifier);
31
35 virtual ~CPPSourceCodeDocument();
36
44 bool addCodeOperation(CodeOperation * op);
45
55 void updateContent();
56
57 protected:
58
62 void resetTextBlocks();
63
64 private:
65
66 HierarchicalCodeBlock * m_constructorBlock;
67 HierarchicalCodeBlock * m_methodsBlock;
68
69 };
70
71 #endif // CPPSOURCECODEDOCUMENT_H
CPPSourceCodeDocument
Definition: cppsourcecodedocument.h:23
CPPSourceCodeDocument::addCodeOperation
bool addCodeOperation(CodeOperation *op)
Definition: cppsourcecodedocument.cpp:55
CPPSourceCodeDocument::m_methodsBlock
HierarchicalCodeBlock * m_methodsBlock
Definition: cppsourcecodedocument.h:67
CPPSourceCodeDocument::CPPSourceCodeDocument
CPPSourceCodeDocument(UMLClassifier *classifier)
Definition: cppsourcecodedocument.cpp:36
CPPSourceCodeDocument::~CPPSourceCodeDocument
virtual ~CPPSourceCodeDocument()
Definition: cppsourcecodedocument.cpp:51
CPPSourceCodeDocument::resetTextBlocks
void resetTextBlocks()
Definition: cppsourcecodedocument.cpp:72
CPPSourceCodeDocument::m_constructorBlock
HierarchicalCodeBlock * m_constructorBlock
Definition: cppsourcecodedocument.h:66
CPPSourceCodeDocument::updateContent
void updateContent()
Definition: cppsourcecodedocument.cpp:82
ClassifierCodeDocument
Definition: classifiercodedocument.h:33
CodeOperation
Definition: codeoperation.h:24
HierarchicalCodeBlock
Definition: hierarchicalcodeblock.h:25
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
classifiercodedocument.h
hierarchicalcodeblock.h