#include <perlwriter.h>
|  | 
| enum | GenerationState { Generated
, Failed
, Skipped
 } | 
| virtual void | syncCodeToDocument () | 
| virtual void | syncCodeToDocument () | 
| void | codeGenerated (UMLClassifier *classifier, bool generated) | 
| void | codeGenerated (UMLClassifier *classifier, CodeGenerator::GenerationState result) | 
| void | showGeneratedFile (const QString &filename) | 
| static QString | cleanName (const QString &name) | 
| static QString | formatDoc (const QString &text, const QString &linePrefix=QStringLiteral(" *"), int lineWidth=80) | 
| static QString | formatFullDocBlock (const QString &text, const QString &blockHeader=QStringLiteral("/* "), const QString &blockFooter=QStringLiteral(" */"), const QString &linePrefix=QStringLiteral(" *"), int lineWidth=80) | 
| static QString | formatSourceCode (const QString &code, const QString &indentation) | 
| static void | findObjectsRelated (UMLClassifier *c, UMLPackageList &cList) | 
| QString | findFileName (UMLPackage *classifier, const QString &ext) | 
| QString | overwritableName (UMLPackage *classifier, const QString &name, const QString &ext) | 
| bool | hasDefaultValueAttr (UMLClassifier *c) | 
| bool | hasAbstractOps (UMLClassifier *c) | 
| QString | indent () | 
| virtual void | initFromParentDocument () | 
| QString | overwritableName (const QString &name, const QString &extension) | 
| bool | openFile (QFile &file, const QString &name) | 
| void | writeListedCodeDocsToFile (CodeDocumentList *docs) | 
| virtual void | finalizeRun () | 
| QString | className_ | 
| QString | fileName_ | 
| QMap< UMLPackage *, QString > | m_fileMap | 
| bool | m_createDirHierarchyForPackages | 
| QString | m_indentation | 
| int | m_indentLevel | 
| QString | m_endl | 
| QHash< QString, CodeDocument * > | m_codeDocumentDictionary | 
| bool | m_applyToAllRemaining | 
| UMLDoc * | m_document | 
Class PerlWriter is a Perl code generator for UMLClassifier objects. Just call writeClass and feed it a UMLClassifier. 
◆ PerlWriter()
      
        
          | PerlWriter::PerlWriter | ( |  | ) |  | 
      
 
 
◆ ~PerlWriter()
  
  | 
        
          | PerlWriter::~PerlWriter | ( |  | ) |  |  | virtual | 
 
 
◆ defaultDatatypes()
  
  | 
        
          | QStringList PerlWriter::defaultDatatypes | ( |  | ) | const |  | virtual | 
 
Get list of default datatypes. 
- Returns
- the list of default datatypes 
Reimplemented from CodeGenerator.
 
 
◆ GetUseStatements()
  
  | 
        
          | bool PerlWriter::GetUseStatements | ( | UMLClassifier * | c, |  
          |  |  | QString & | Ret, |  
          |  |  | QString & | ThisPkgName ) |  | private | 
 
 
◆ language()
Returns "Perl". 
- Returns
- the programming language identifier 
Implements CodeGenerator.
 
 
◆ reservedKeywords()
  
  | 
        
          | QStringList PerlWriter::reservedKeywords | ( |  | ) | const |  | virtual | 
 
Get list of reserved keywords. 
- Returns
- the list of reserved keywords 
Reimplemented from CodeGenerator.
 
 
◆ writeAttributes() [1/2]
  
  | 
        
          | void PerlWriter::writeAttributes | ( | UMLAttributeList & | atList, |  
          |  |  | QTextStream & | perl ) |  | private | 
 
Write a list of class attributes. 
- Parameters
- 
  
    | atList | the list of attributes |  | perl | output stream for the Perl file |  
 
 
 
◆ writeAttributes() [2/2]
  
  | 
        
          | void PerlWriter::writeAttributes | ( | UMLClassifier * | c, |  
          |  |  | QTextStream & | perl ) |  | private | 
 
Write all the attributes of a class. 
- Parameters
- 
  
    | c | the class we are generating code for |  | perl | output stream for the Perl file |  
 
 
 
◆ writeClass()
◆ writeOperations() [1/2]
  
  | 
        
          | void PerlWriter::writeOperations | ( | const QString & | classname, |  
          |  |  | UMLOperationList & | opList, |  
          |  |  | QTextStream & | perl ) |  | private | 
 
Write a list of class operations. 
- Parameters
- 
  
    | classname | the name of the class |  | opList | the list of operations |  | perl | output stream for the Perl file |  
 
 
 
◆ writeOperations() [2/2]
  
  | 
        
          | void PerlWriter::writeOperations | ( | UMLClassifier * | c, |  
          |  |  | QTextStream & | perl ) |  | private | 
 
Write all operations for a given class. 
- Parameters
- 
  
    | c | the classifier we are generating code for |  | perl | output stream for the Perl file |  
 
 
 
The documentation for this class was generated from the following files: