umbrello/umbrello
pascalwriter.cpp
Go to the documentation of this file.
const char * className() const
UMLObject * getObject(Uml::RoleType::Enum role) const
Returns the UMLObject assigned to the given role.
Definition: association.cpp:497
Definition: umlobject.h:61
This class contains the non-graphical information required for a UML Package.
Definition: package.h:32
This sub-class adds copyInto and clone to the QPtrList base class...
Definition: umlclassifierlistitemlist.h:26
QString & append(QChar ch)
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
Classifiers (classes, interfaces) have lists of operations, attributes, templates and others...
Definition: classifierlistitem.h:29
QString getInitialValue() const
Returns The initial value of the UMLAttribute.
Definition: attribute.cpp:99
Definition: basictypes.h:215
Uml::ParameterDirection::Enum getParmKind() const
Definition: attribute.cpp:122
Uml::Visibility::Enum visibility() const
Returns the visibility of the object.
Definition: umlobject.cpp:431
virtual UMLClassifierListItemList getFilteredList(UMLObject::ObjectType ot) const
Returns the entries in m_List that are of the requested type.
Definition: classifier.cpp:1027
bool openFile(QFile &file, const QString &name)
Opens a file named "name" for writing in the outputDirectory.
Definition: codegenerator.cpp:601
Definition: umlobject.h:56
QString fileName() const
A simple code generator interface designed to work with the existing codewriters. ...
Definition: simplecodegenerator.h:27
This sub-class adds copyInto and clone to the QPtrList base class.
Definition: umlattributelist.h:26
virtual bool isReservedKeyword(const QString &rPossiblyReservedKeyword)
Check whether the given string is a reserved word for the language of this code generator.
Definition: pascalwriter.cpp:444
virtual QString getHeadingFile(const QString &file)
Gets the heading file (as a string) to be inserted at the beginning of the generated file...
Definition: codegenerator.cpp:497
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:910
Definition: basictypes.h:58
This class contains the non-graphic representation of an association.
Definition: association.h:32
const char * name() const
static QString toString(ObjectType ot)
Helper function for debug output.
Definition: umlobject.cpp:1079
int count(const T &value) const
void append(const T &value)
bool isInterface() const
Returns true if this classifier represents an interface.
Definition: classifier.cpp:117
bool isEmpty() const
void codeGenerated(UMLClassifier *concept, bool generated)
bool isEmpty() const
QString overwritableName(UMLPackage *concept, const QString &name, const QString &ext)
Check if a file named "name" with extension "ext" already exists.
Definition: simplecodegenerator.cpp:165
T & first()
QStringList defaultDatatypes()
Returns the default datatypes in a list.
Definition: pascalwriter.cpp:410
static QString formatSourceCode(const QString &code, const QString &indentation)
Format source code for output in source files by adding the correct indentation to every line of code...
Definition: codegenerator.cpp:821
static void findObjectsRelated(UMLClassifier *c, UMLPackageList &cList)
Finds all classes in the current document to which objects of class c are in some way related...
Definition: codegenerator.cpp:700
iterator end()
QString toLower() const
QString stereotype(bool includeAdornments=false) const
Returns the stereotype.
Definition: umlobject.cpp:579
Definition: basictypes.h:57
virtual void close()
This class contains the non-graphical information required for a UML Enum.
Definition: enum.h:28
Definition: umlobject.h:54
QString & replace(int position, int n, QChar after)
bool isStatic() const
Returns true if this UMLObject has classifier scope, otherwise false (the default).
Definition: umlobject.cpp:331
UMLAttributeList getAttributeList() const
Returns the attributes for the specified scope.
Definition: classifier.cpp:449
UMLPackage * umlPackage()
Returns the UMLPackage that this class is located in.
Definition: umlobject.cpp:639
Definition: umlobject.h:57
UMLClassifierList getSuperClasses(bool withRealizations=true)
Return a list of the superclasses of this concept.
Definition: umlcanvasobject.cpp:360
typedef ConstIterator
QString getSourceCode() const
Returns the source code for this operation.
Definition: operation.cpp:440
Definition: basictypes.h:257
Definition: basictypes.h:39
Definition: basictypes.h:233
UMLOperationList getOpList(bool includeInherited=false, UMLClassifierSet *alreadyTraversed=0)
Return a list of operations for the Classifier.
Definition: classifier.cpp:968
virtual Uml::ProgrammingLanguage::Enum language() const
Returns "Pascal".
Definition: pascalwriter.cpp:55
QString getRoleName(Uml::RoleType::Enum role) const
Returns the name assigned to the role A.
Definition: association.cpp:568
static QString formatDoc(const QString &text, const QString &linePrefix=QLatin1String(" *"), int lineWidth=80)
Format documentation for output in source files.
Definition: codegenerator.cpp:790
static QString cleanName(const QString &name)
Replaces spaces with underscores and capitalises as defined in m_modname.
Definition: codegenerator.cpp:627
void showGeneratedFile(const QString &filename)
QString getMultiplicity(Uml::RoleType::Enum role) const
Returns the multiplicity assigned to the given role.
Definition: association.cpp:559
virtual QStringList reservedKeywords() const
Get list of reserved keywords.
Definition: pascalwriter.cpp:460
QObject * parent() const
virtual QString fullyQualifiedName(const QString &separator=QString(), bool includeRoot=false) const
Returns the fully qualified name, i.e.
Definition: umlobject.cpp:202
virtual QString getTypeName() const
Returns the type name of the UMLClassifierListItem.
Definition: classifierlistitem.cpp:110
iterator begin()
Definition: basictypes.h:59
Definition: umlobject.h:55
QString indent()
Returns the current indent string based on m_indentLevel and m_indentation.
Definition: simplecodegenerator.cpp:74
UMLFolder * rootFolder(Uml::ModelType::Enum mt)
Return the predefined root folder of the given type.
Definition: umldoc.cpp:2721
virtual void writeClass(UMLClassifier *c)
Call this method to generate Pascal code for a UMLClassifier.
Definition: pascalwriter.cpp:142
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.