umbrello/umbrello
PythonWriter Class Reference
#include <pythonwriter.h>
Inheritance diagram for PythonWriter:

Detailed Description
Class PythonWriter is a python code generator for UMLClassifier objects Just call writeClass and feed it a UMLClassifier.NOTE: There is a unit test available for this class. Please, use and adapt it when necessary.
Definition at line 34 of file pythonwriter.h.
Public Member Functions | |
| PythonWriter () | |
| virtual | ~PythonWriter () |
| virtual void | writeClass (UMLClassifier *c) |
| virtual Uml::Programming_Language | getLanguage () |
| virtual const QStringList | reservedKeywords () const |
Constructor & Destructor Documentation
| PythonWriter::PythonWriter | ( | ) |
Definition at line 36 of file pythonwriter.cpp.
| PythonWriter::~PythonWriter | ( | ) | [virtual] |
Definition at line 40 of file pythonwriter.cpp.
Member Function Documentation
| void PythonWriter::writeClass | ( | UMLClassifier * | c | ) | [virtual] |
Call this method to generate C++ code for a UMLClassifier.
- Parameters:
-
c the class you want to generate code for
Implements SimpleCodeGenerator.
Definition at line 44 of file pythonwriter.cpp.
| Uml::Programming_Language PythonWriter::getLanguage | ( | ) | [virtual] |
Return the programming language identifier.
- Returns:
- programming language id
Implements CodeGenerator.
Definition at line 291 of file pythonwriter.cpp.
| const QStringList PythonWriter::reservedKeywords | ( | ) | const [virtual] |
Get list of reserved keywords.
- Returns:
- the list of reserved keywords
Reimplemented from CodeGenerator.
Definition at line 296 of file pythonwriter.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference