umbrello: umbrello/codegenerators/php/phpwriter.h Source File

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

phpwriter.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3
4 SPDX-FileCopyrightText: 2002 Heiko Nardmann <h.nardmann@secunet.de>
5 SPDX-FileCopyrightText: 2003-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
6*/
7
8#ifndef PHPWRITER_H
9#define PHPWRITER_H
10
11#include "simplecodegenerator.h"
12#include "umlattributelist.h"
13#include "umloperationlist.h"
14
19 class PhpWriter : public SimpleCodeGenerator
20{
21 Q_OBJECT
22public:
23
24 PhpWriter();
25 virtual ~PhpWriter();
26
27 virtual void writeClass(UMLClassifier *c);
28
29 virtual Uml::ProgrammingLanguage::Enum language() const;
30
31 virtual QStringList reservedKeywords() const;
32
33private:
34 void writeOperations(UMLClassifier *c, QTextStream &php);
35 void writeOperations(const QString& classname,
36 UMLOperationList &opList,
37 QTextStream &php);
38
39 void writeAttributes(UMLClassifier *c, QTextStream &php);
40 void writeAttributes(UMLAttributeList &atList, QTextStream &php);
41};
42
43#endif //PHPWRITER
PhpWriter::writeOperations
void writeOperations(UMLClassifier *c, QTextStream &php)
Definition phpwriter.cpp:3143
PhpWriter::PhpWriter
PhpWriter()
Definition phpwriter.cpp:2977
PhpWriter::reservedKeywords
virtual QStringList reservedKeywords() const
Definition phpwriter.cpp:3350
PhpWriter::language
virtual Uml::ProgrammingLanguage::Enum language() const
Definition phpwriter.cpp:3341
PhpWriter::writeAttributes
void writeAttributes(UMLClassifier *c, QTextStream &php)
Definition phpwriter.cpp:3264
PhpWriter::writeClass
virtual void writeClass(UMLClassifier *c)
Definition phpwriter.cpp:2989
PhpWriter::~PhpWriter
virtual ~PhpWriter()
Definition phpwriter.cpp:2981
SimpleCodeGenerator::SimpleCodeGenerator
SimpleCodeGenerator(bool createDirHierarchyForPackages=true)
Definition simplecodegenerator.cpp:41
UMLAttributeList
Definition umlattributelist.h:21
UMLClassifier
Information for a non-graphical Concept/Class.
Definition classifier.h:35
Uml::ProgrammingLanguage::Enum
Enum
Definition basictypes.h:291
simplecodegenerator.h
umlattributelist.h
umloperationlist.h
UMLOperationList
QList< UMLOperation * > UMLOperationList
Definition umloperationlist.h:14