umbrello API Documentation

AdaWriter Class Reference

class AdaWriter is a code generator for UMLClassifier objects. More...

#include <adawriter.h>

Inheritance diagram for AdaWriter:

SimpleCodeGenerator CodeGenerator List of all members.

Public Member Functions

 AdaWriter ()
 Basic Constructor.
virtual ~AdaWriter ()
 Empty Destructor.
virtual void writeClass (UMLClassifier *c)
 call this method to generate Ada code for a UMLClassifier
virtual Uml::Programming_Language getLanguage ()
 returns "Ada"
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

class AdaWriter is a code generator for UMLClassifier objects.

Create an instance of this class, and feed it a UMLClassifier when calling writeClass and it will generate an Ada package spec for that concept

Definition at line 33 of file adawriter.h.


Constructor & Destructor Documentation

AdaWriter::AdaWriter  ) 
 

Basic Constructor.

Definition at line 41 of file adawriter.cpp.

AdaWriter::~AdaWriter  )  [virtual]
 

Empty Destructor.

Definition at line 44 of file adawriter.cpp.


Member Function Documentation

void AdaWriter::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 148 of file adawriter.cpp.

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

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

returns "Ada"

Implements CodeGenerator.

Definition at line 49 of file adawriter.cpp.

QStringList AdaWriter::defaultDatatypes  )  [virtual]
 

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

Reimplemented from CodeGenerator.

Definition at line 524 of file adawriter.cpp.

bool AdaWriter::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.
Returns:
true if the keyword is reserved

Reimplemented from CodeGenerator.

Definition at line 546 of file adawriter.cpp.

References reservedKeywords().

const QStringList AdaWriter::reservedKeywords  )  const [virtual]
 

get list of reserved keywords

Reimplemented from CodeGenerator.

Definition at line 561 of file adawriter.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:03 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003