umbrello API Documentation

PascalWriter Class Reference

Pascal class writer. More...

#include <pascalwriter.h>

Inheritance diagram for PascalWriter:

SimpleCodeGenerator CodeGenerator List of all members.

Public Member Functions

 PascalWriter ()
 Basic Constructor.
virtual ~PascalWriter ()
 Empty Destructor.
virtual void writeClass (UMLClassifier *c)
 call this method to generate Ada code for a UMLClassifier
virtual Uml::Programming_Language getLanguage ()
 returns "Pascal"
QStringList defaultDatatypes ()
 Return the default datatypes for your language (bool, int etc) Default implementation returns empty list.
virtual bool isReservedKeyword (const QString &rPossiblyReservedKeyword)
 Check whether the given string is a reserved word for the language of this code generator.
virtual const QStringList reservedKeywords () const
 get list of reserved keywords

Detailed Description

Pascal class writer.

Author:
Oliver Kellogg Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org

Definition at line 25 of file pascalwriter.h.


Constructor & Destructor Documentation

PascalWriter::PascalWriter  ) 
 

Basic Constructor.

Definition at line 38 of file pascalwriter.cpp.

PascalWriter::~PascalWriter  )  [virtual]
 

Empty Destructor.

Definition at line 41 of file pascalwriter.cpp.


Member Function Documentation

void PascalWriter::writeClass UMLClassifier c  )  [virtual]
 

call this method to generate Ada code for a UMLClassifier

Parameters:
c the class to generate code for

Implements SimpleCodeGenerator.

Definition at line 123 of file pascalwriter.cpp.

References ClassifierInfo::atpriv, ClassifierInfo::atprot, ClassifierInfo::atpub, CodeGenerator::cleanName(), CodeGenerator::codeGenerated(), CodeGenerator::findObjectsRelated(), CodeGenerator::formatDoc(), UMLClassifier::getFilteredList(), CodeGenerator::getHeadingFile(), SimpleCodeGenerator::getIndent(), UMLAttribute::getInitialValue(), UMLObject::getName(), UMLClassifierListItem::getTypeName(), UMLObject::getVisibility(), CodeGenerator::openFile(), and CodeGenerator::overwritableName().

Uml::Programming_Language PascalWriter::getLanguage  )  [virtual]
 

returns "Pascal"

Implements CodeGenerator.

Definition at line 46 of file pascalwriter.cpp.

QStringList PascalWriter::defaultDatatypes  )  [virtual]
 

Return the default datatypes for your language (bool, int etc) Default implementation returns empty list.

Reimplemented from CodeGenerator.

Definition at line 369 of file pascalwriter.cpp.

bool PascalWriter::isReservedKeyword const QString &  rPossiblyReservedKeyword  )  [virtual]
 

Check whether the given string is a reserved word for the language of this code generator.

Parameters:
rPossiblyReservedKeyword The string to check.

Reimplemented from CodeGenerator.

Definition at line 403 of file pascalwriter.cpp.

References reservedKeywords().

const QStringList PascalWriter::reservedKeywords  )  const [virtual]
 

get list of reserved keywords

Reimplemented from CodeGenerator.

Definition at line 418 of file pascalwriter.cpp.

Referenced by isReservedKeyword().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:08:05 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003