[Uml-devel] kdesdk/umbrello/umbrello
Brian Thomas
thomas at mail630.gsfc.nasa.gov
Thu Nov 6 14:51:12 UTC 2003
CVS commit by thomas:
added hasAbstractOps method to class. Needed for codegeneration fixes.
M +8 -0 classifier.cpp 1.19
M +5 -0 classifier.h 1.17
--- kdesdk/umbrello/umbrello/classifier.h #1.16:1.17
@@ -218,4 +218,9 @@ public:
virtual bool isInterface () = 0;
+ /**
+ * return back whether or not this classfiier has abstract operations in it.
+ */
+ bool hasAbstractOps ();
+
signals:
/** Signals that a new UMLOperation has been added to the classifer.
--- kdesdk/umbrello/umbrello/classifier.cpp #1.18:1.19
@@ -286,4 +286,12 @@ bool UMLClassifier::acceptAssociationTyp
}
+bool UMLClassifier::hasAbstractOps () {
+ QPtrList<UMLOperation> *opl = getFilteredOperationsList();
+ for(UMLOperation *op = opl->first(); op ; op = opl->next())
+ if(op->getAbstract())
+ return true;
+ return false;
+}
+
////////////////////////////////////////////////////////////////////////////////////////////////////
int UMLClassifier::operations() {
More information about the umbrello-devel
mailing list