AdaWriter Class Reference
class AdaWriter is a code generator for UMLClassifier objects. More...
#include <adawriter.h>
Inheritance diagram for AdaWriter:

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
|
|
Basic Constructor.
Definition at line 41 of file adawriter.cpp. |
|
|
Empty Destructor.
Definition at line 44 of file adawriter.cpp. |
Member Function Documentation
|
|
call this method to generate Ada code for a UMLClassifier
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(). |
|
|
returns "Ada"
Implements CodeGenerator. Definition at line 49 of file adawriter.cpp. |
|
|
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. |
|
|
Check whether the given string is a reserved word for the language of this code generator.
Reimplemented from CodeGenerator. Definition at line 546 of file adawriter.cpp. References reservedKeywords(). |
|
|
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:
