diff options
Diffstat (limited to 'muse2/muse/waveevent.cpp')
-rw-r--r-- | muse2/muse/waveevent.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/muse2/muse/waveevent.cpp b/muse2/muse/waveevent.cpp index 842e40b9..24be2d01 100644 --- a/muse2/muse/waveevent.cpp +++ b/muse2/muse/waveevent.cpp @@ -58,6 +58,15 @@ EventBase* WaveEventBase::clone() const return new WaveEventBase(*this); } +bool WaveEventBase::isSimilarTo(const EventBase& other_) const +{ + const WaveEventBase* other = dynamic_cast<const WaveEventBase*>(&other_); + if (other==NULL) // dynamic cast hsa failed: "other_" is not of type WaveEventBase. + return false; + + return f.dirPath()==other->f.dirPath() && _spos==other->_spos && this->PosLen::operator==(*other); +} + //--------------------------------------------------------- // WaveEvent::mid //--------------------------------------------------------- |