umbrello/umbrello
AdaWriter Class Reference
Class AdaWriter is a code generator for UMLClassifier objects. More...
#include <adawriter.h>

Public Member Functions | |
| AdaWriter () | |
| virtual | ~AdaWriter () |
| QStringList | defaultDatatypes () |
| virtual Uml::Programming_Language | getLanguage () |
| virtual bool | isReservedKeyword (const QString &rPossiblyReservedKeyword) |
| virtual const QStringList | reservedKeywords () const |
| virtual void | writeClass (UMLClassifier *c) |
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 34 of file adawriter.h.
Constructor & Destructor Documentation
| AdaWriter::AdaWriter | ( | ) |
Basic Constructor.
Definition at line 42 of file adawriter.cpp.
| AdaWriter::~AdaWriter | ( | ) | [virtual] |
Empty Destructor.
Definition at line 46 of file adawriter.cpp.
Member Function Documentation
| 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 530 of file adawriter.cpp.
| Uml::Programming_Language AdaWriter::getLanguage | ( | ) | [virtual] |
| 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
- Parameters:
-
rPossiblyReservedKeyword The string to check.
Reimplemented from CodeGenerator.
Definition at line 553 of file adawriter.cpp.
| const QStringList AdaWriter::reservedKeywords | ( | ) | const [virtual] |
Get list of reserved keywords.
get list of reserved keywords
Reimplemented from CodeGenerator.
Definition at line 569 of file adawriter.cpp.
| 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 156 of file adawriter.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference