umbrello: umbrello/codegenerators/ruby/rubyclassdeclarationblock.h Source File

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

rubyclassdeclarationblock.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) 2005 *
8 * Richard Dale <Richard_Dale@tipitina.demon.co.uk> *
9 * copyright (C) 2006-2020 *
10 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
11 ***************************************************************************/
12
13 #ifndef RUBYCLASSDECLARATIONBLOCK_H
14 #define RUBYCLASSDECLARATIONBLOCK_H
15
16 #include "rubyclassifiercodedocument.h"
17 #include "ownedhierarchicalcodeblock.h"
18
19 #include <QString>
20
21 class RubyClassDeclarationBlock : public OwnedHierarchicalCodeBlock
22 {
23 Q_OBJECT
24 public:
25
29 explicit RubyClassDeclarationBlock (RubyClassifierCodeDocument * parentDoc, const QString &start = QString(), const QString &endText = QLatin1String("end"), const QString &comment = QString());
30
34 virtual ~RubyClassDeclarationBlock ();
35
39 void updateContent ();
40
44 virtual void saveToXMI1 (QDomDocument & doc, QDomElement & root);
45
49 virtual void loadFromXMI1 (QDomElement & root);
50
51 private:
52
53 void init (RubyClassifierCodeDocument * parent, const QString &comment);
54
55 };
56
57 #endif // RUBYCLASSDECLARATIONBLOCK_H
RubyCodeDocumentation
Definition: rubycodedocumentation.h:30
rubyclassdeclarationblock.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
RubyClassDeclarationBlock::RubyClassDeclarationBlock
RubyClassDeclarationBlock(RubyClassifierCodeDocument *parentDoc, const QString &start=QString(), const QString &endText=QLatin1String("end"), const QString &comment=QString())
Definition: rubyclassdeclarationblock.cpp:19
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
HierarchicalCodeBlock::setStartText
void setStartText(const QString &text)
Definition: hierarchicalcodeblock.cpp:199
TextBlock::setWriteOutText
void setWriteOutText(bool write)
Definition: textblock.cpp:131
UMLClassifier::INTERFACE
@ INTERFACE
Definition: classifier.h:47
RubyClassDeclarationBlock::saveToXMI1
virtual void saveToXMI1(QDomDocument &doc, QDomElement &root)
Definition: rubyclassdeclarationblock.cpp:32
RubyClassDeclarationBlock::loadFromXMI1
virtual void loadFromXMI1(QDomElement &root)
Definition: rubyclassdeclarationblock.cpp:44
UMLApp::commonPolicy
CodeGenerationPolicy * commonPolicy() const
Definition: uml.cpp:2274
ownedhierarchicalcodeblock.h
OwnedHierarchicalCodeBlock::setAttributesOnNode
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Definition: ownedhierarchicalcodeblock.cpp:57
UMLClassifierList
QList< UMLClassifier * > UMLClassifierList
Definition: umlclassifierlist.h:17
CodeBlockWithComments::getComment
CodeComment * getComment() const
Definition: codeblockwithcomments.cpp:47
RubyClassDeclarationBlock::~RubyClassDeclarationBlock
virtual ~RubyClassDeclarationBlock()
Definition: rubyclassdeclarationblock.cpp:25
rubyclassifiercodedocument.h
CodeBlockWithComments::setComment
void setComment(CodeComment *object)
Definition: codeblockwithcomments.cpp:39
UMLClassifier::findSuperClassConcepts
UMLClassifierList findSuperClassConcepts(ClassifierType type=ALL)
Definition: classifier.cpp:609
OwnedHierarchicalCodeBlock
Definition: ownedhierarchicalcodeblock.h:27
RubyClassDeclarationBlock::init
void init(RubyClassifierCodeDocument *parent, const QString &comment)
Definition: rubyclassdeclarationblock.cpp:116
CodeGenerationPolicy
Definition: codegenerationpolicy.h:30
CodeGenerationPolicy::getCodeVerboseDocumentComments
bool getCodeVerboseDocumentComments() const
Definition: codegenerationpolicy.cpp:152
rubycodedocumentation.h
RubyClassifierCodeDocument::getRubyClassName
QString getRubyClassName(const QString &name)
Definition: rubyclassifiercodedocument.cpp:87
RubyClassDeclarationBlock::updateContent
void updateContent()
Definition: rubyclassdeclarationblock.cpp:52
UMLObject::doc
QString doc() const
Definition: umlobject.cpp:435
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:269
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
RubyClassifierCodeDocument
Definition: rubyclassifiercodedocument.h:37
UMLClassifier::CLASS
@ CLASS
Definition: classifier.h:47
TextBlock::setText
void setText(const QString &text)
Definition: textblock.cpp:80
RubyClassDeclarationBlock
Definition: rubyclassdeclarationblock.h:22
RubyCodeGenerator::cppToRubyType
static QString cppToRubyType(const QString &cppType)
Definition: rubycodegenerator.cpp:111
rubycodegenerator.h