[Uml-devel] kdesdk/umbrello/umbrello

Brian Thomas thomas at mail630.gsfc.nasa.gov
Fri Sep 12 14:55:03 UTC 2003


CVS commit by thomas: 

allow class/interface to identify themselves via 'isInterface' method. Promotes easier code generation


  M +3 -0      class.h   1.14
  M +2 -0      interface.h   1.9


--- kdesdk/umbrello/umbrello/class.h  #1.13:1.14
@@ -199,4 +199,7 @@ public:
          */
         virtual bool loadFromXMI( QDomElement & element );
+
+        virtual bool isInterface () { return false; }
+
 signals:
         void attributeAdded(UMLObject*);

--- kdesdk/umbrello/umbrello/interface.h  #1.8:1.9
@@ -64,4 +64,6 @@ public:
         virtual bool loadFromXMI( QDomElement & element );
 
+        virtual bool isInterface () { return true; }
+
 protected:
 






More information about the umbrello-devel mailing list