umbrello/umbrello
perlwriter.cpp
Go to the documentation of this file.
415 str.replace(QRegExp(QLatin1String("%year%")), QDate::currentDate().toString(QLatin1String("yyyy")));
568 perl << "_init sets all " << classname << " attributes to their default values unless already set" << m_endl << m_endl << "=cut" << m_endl << m_endl;
590 void PerlWriter::writeOperations(const QString &classname, UMLOperationList &opList, QTextStream &perl)
int pos(int nth) const
UMLAssociationList getAggregations()
Shorthand for getSpecificAssocs(Uml::at_Aggregation)
Definition: umlcanvasobject.cpp:423
virtual Uml::ProgrammingLanguage::Enum language() const
Returns "Perl".
Definition: perlwriter.cpp:502
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
This class contains the non-graphical information required for a UML Package.
Definition: package.h:32
QString cap(int nth) const
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
QString getInitialValue() const
Returns The initial value of the UMLAttribute.
Definition: attribute.cpp:99
Uml::Visibility::Enum visibility() const
Returns the visibility of the object.
Definition: umlobject.cpp:431
bool openFile(QFile &file, const QString &name)
Opens a file named "name" for writing in the outputDirectory.
Definition: codegenerator.cpp:601
void setMinimal(bool minimal)
void setOutputDirectory(QDir new_var)
Set the value of m_outputDirectory location of where output files will go.
Definition: codegenerationpolicy.cpp:196
QString findFileName(UMLPackage *concept, const QString &ext)
Determine the file name.
Definition: simplecodegenerator.cpp:89
QString fileName() const
QString simplified() const
class CodeGenerationPolicy This class describes the code generation policy for this project...
Definition: codegenerationpolicy.h:29
This sub-class adds copyInto and clone to the QPtrList base class.
Definition: umlattributelist.h:26
bool hasDefaultValueAttr(UMLClassifier *c)
Check whether classifier has default values for attributes.
Definition: simplecodegenerator.cpp:241
virtual QStringList reservedKeywords() const
Get list of reserved keywords.
Definition: perlwriter.cpp:734
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
QString & remove(int position, int n)
Definition: basictypes.h:58
QDir getOutputDirectory()
Get the value of m_outputDirectory location of where output files will go.
Definition: codegenerationpolicy.cpp:206
int indexIn(const QString &str, int offset, CaretMode caretMode) const
int count(const T &value) const
bool exists() 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
UMLAssociationList getCompositions()
Shorthand for getSpecificAssocs(Uml::at_Composition)
Definition: umlcanvasobject.cpp:433
Definition: basictypes.h:258
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
CodeGenerationPolicy * commonPolicy() const
Returns the default code generation policy.
Definition: uml.cpp:2219
bool contains(QChar ch, Qt::CaseSensitivity cs) const
Definition: basictypes.h:57
virtual void close()
QTime currentTime()
QString & replace(int position, int n, QChar after)
UMLAttributeList getAttributeList() const
Returns the attributes for the specified scope.
Definition: classifier.cpp:449
QString toString(Enum item)
Convert ModelType item into QString representation.
Definition: basictypes.cpp:39
QString absolutePath() const
bool mkdir(const QString &dirName) const
UMLClassifierList getSuperClasses(bool withRealizations=true)
Return a list of the superclasses of this concept.
Definition: umlcanvasobject.cpp:360
QDate currentDate()
QString package(const QString &separator=QString(), bool includeRoot=false)
Return the package(s) in which this UMLObject is contained as a text.
Definition: umlobject.cpp:601
QString getSourceCode() const
Returns the source code for this operation.
Definition: operation.cpp:440
UMLOperationList getOpList(bool includeInherited=false, UMLClassifierSet *alreadyTraversed=0)
Return a list of operations for the Classifier.
Definition: classifier.cpp:968
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)
virtual void writeClass(UMLClassifier *c)
Call this method to generate Perl code for a UMLClassifier.
Definition: perlwriter.cpp:332
virtual QString getTypeName() const
Returns the type name of the UMLClassifierListItem.
Definition: classifierlistitem.cpp:110
Definition: basictypes.h:59
Definition: umlobject.h:55
void setPath(const QString &path)
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.