X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/6a0ffdb10d7344d99e04c5518fca2b8295df94be..e40a5399ec7887c2606f18575c809b0d05b09278:/AbstractInterface.cpp?ds=inline

diff --git a/AbstractInterface.cpp b/AbstractInterface.cpp
index 03a1a98..3295dc8 100644
--- a/AbstractInterface.cpp
+++ b/AbstractInterface.cpp
@@ -243,6 +243,13 @@ bool AbstractInterface::setAssociatedIface(AbstractInterface* iface) {
   return true;
 }
 
+AbstractInterface* AbstractInterface::getClockIface() {
+  if (clkIfaceType == ClockName) {
+    return owner->getIfaceFromName(clkIface);
+  }
+  return NULL;
+}
+
 bool AbstractInterface::setClockIface(QString name) {
   /* 2 cases :
    *  - this is a Data interface