38
39
virtual ~PerlWriter();
41
* call this method to generate Perl code for a UMLClassifier
42
* @param c the class you want to generate code for.
42
* Call this method to generate Perl code for a UMLClassifier.
43
* @param c the class you want to generate code for
44
45
virtual void writeClass(UMLClassifier *c);
49
* @return the programming language identifier
49
51
virtual Uml::Programming_Language getLanguage();
52
* get list of reserved keywords
54
* Get list of reserved keywords.
55
* @return the list of reserved keywords
54
57
virtual const QStringList reservedKeywords() const;
60
* Get list of default datatypes.
61
* @return the list of default datatypes
56
63
QStringList defaultDatatypes();
61
* we do not want to write the comment "Private methods" twice
62
* not sure whether this is php specific
68
* We do not want to write the comment "Private methods" twice
69
* not sure whether this is php specific.
64
71
bool bPrivateSectionCommentIsWritten;
67
* write all operations for a given class
69
* @param c the concept we are generating code for
70
* @param perl output stream for the Perl file
74
* Write all operations for a given class.
76
* @param c the concept we are generating code for
77
* @param perl output stream for the Perl file
72
79
void writeOperations(UMLClassifier *c, QTextStream &perl);
75
* write a list of class operations
77
* @param classname the name of the class
78
* @param opList the list of operations
79
* @param perl output stream for the Perl file
82
* Write a list of class operations.
84
* @param classname the name of the class
85
* @param opList the list of operations
86
* @param perl output stream for the Perl file
81
88
void writeOperations(const QString &classname, UMLOperationList &opList,
82
89
QTextStream &perl);
84
/** write all the attributes of a class
85
* @param c the class we are generating code for
86
* @param perl output stream for the Perl file
92
* Write all the attributes of a class.
93
* @param c the class we are generating code for
94
* @param perl output stream for the Perl file
88
96
void writeAttributes(UMLClassifier *c, QTextStream &perl);
90
/** write a list of class attributes
91
* @param atList the list of attributes
92
* @param perl output stream for the Perl file
99
* Write a list of class attributes.
100
* @param atList the list of attributes
101
* @param perl output stream for the Perl file
94
103
void writeAttributes(UMLAttributeList &atList, QTextStream &perl);
96
105
bool GetUseStatements(UMLClassifier *c, QString &Ret,