umbrello/umbrello
PythonWriter Class Reference
Class PythonWriter is a python code generator for UMLClassifier objects Just call writeClass and feed it a UMLClassifier. More...
#include <pythonwriter.h>

Public Member Functions | |
| PythonWriter () | |
| virtual | ~PythonWriter () |
| QStringList | defaultDatatypes () |
| virtual Uml::Programming_Language | getLanguage () |
| virtual const QStringList | reservedKeywords () const |
| virtual void | writeClass (UMLClassifier *c) |
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 26 of file pythonwriter.h.
Constructor & Destructor Documentation
| PythonWriter::PythonWriter | ( | ) |
Definition at line 39 of file pythonwriter.cpp.
| PythonWriter::~PythonWriter | ( | ) | [virtual] |
Definition at line 43 of file pythonwriter.cpp.
Member Function Documentation
| QStringList PythonWriter::defaultDatatypes | ( | ) | [virtual] |
Reimplementation of method from class CodeGenerator.
Reimplemented from CodeGenerator.
Definition at line 299 of file pythonwriter.cpp.
| Uml::Programming_Language PythonWriter::getLanguage | ( | ) | [virtual] |
Return the programming language identifier.
- Returns:
- programming language id
Implements CodeGenerator.
Definition at line 294 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 315 of file pythonwriter.cpp.
| 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 47 of file pythonwriter.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference