[Uml-devel] KDE/kdesdk/umbrello/umbrello/codegenerators
Oliver Kellogg
okellogg at users.sourceforge.net
Sun Feb 10 21:47:34 UTC 2008
SVN commit 773373 by okellogg:
defaultDatatypes(): Reimplementation of CodeGenerator method by Egbert Voigt.
CCMAIL: EgbertMarieVoigt at aol.com
M +15 -0 pythonwriter.cpp
M +5 -0 pythonwriter.h
--- trunk/KDE/kdesdk/umbrello/umbrello/codegenerators/pythonwriter.cpp #773372:773373
@@ -293,6 +293,21 @@
return Uml::pl_Python;
}
+QStringList PythonWriter::defaultDatatypes() {
+ QStringList l;
+ l.append("array");
+ l.append("bool");
+ l.append("tuple");
+ l.append("float");
+ l.append("int");
+ l.append("long");
+ l.append("dict");
+ l.append("object");
+ l.append("set");
+ l.append("string");
+ return l;
+}
+
const QStringList PythonWriter::reservedKeywords() const
{
static QStringList keywords;
--- trunk/KDE/kdesdk/umbrello/umbrello/codegenerators/pythonwriter.h #773372:773373
@@ -57,6 +57,11 @@
*/
virtual const QStringList reservedKeywords() const;
+ /**
+ * Reimplementation of method from class CodeGenerator
+ */
+ QStringList defaultDatatypes();
+
private:
/**
More information about the umbrello-devel
mailing list