From 526cb8fc62ed906a133916f28c41a169cf08afd4 Mon Sep 17 00:00:00 2001 From: Laurent Pugin Date: Wed, 18 Oct 2023 16:01:18 +0200 Subject: [PATCH] Add AttMensurLog class to Mensur --- include/vrv/mensur.h | 1 + src/iomei.cpp | 2 ++ src/mensur.cpp | 3 +++ 3 files changed, 6 insertions(+) diff --git a/include/vrv/mensur.h b/include/vrv/mensur.h index de8351493bc..9ee558fdfe1 100644 --- a/include/vrv/mensur.h +++ b/include/vrv/mensur.h @@ -29,6 +29,7 @@ class Mensur : public LayerElement, public AttCue, public AttDurationRatio, public AttMensuralShared, + public AttMensurLog, public AttMensurVis, public AttSlashCount, public AttStaffLoc { diff --git a/src/iomei.cpp b/src/iomei.cpp index 623ef94c156..2e1b5698674 100644 --- a/src/iomei.cpp +++ b/src/iomei.cpp @@ -2603,6 +2603,7 @@ void MEIOutput::WriteMensur(pugi::xml_node currentNode, Mensur *mensur) mensur->WriteCue(currentNode); mensur->WriteDurationRatio(currentNode); mensur->WriteMensuralShared(currentNode); + mensur->WriteMensurLog(currentNode); mensur->WriteMensurVis(currentNode); mensur->WriteSlashCount(currentNode); mensur->WriteStaffLoc(currentNode); @@ -6647,6 +6648,7 @@ bool MEIInput::ReadMensur(Object *parent, pugi::xml_node mensur) vrvMensur->ReadCue(mensur); vrvMensur->ReadDurationRatio(mensur); vrvMensur->ReadMensuralShared(mensur); + vrvMensur->ReadMensurLog(mensur); vrvMensur->ReadMensurVis(mensur); vrvMensur->ReadSlashCount(mensur); vrvMensur->ReadStaffLoc(mensur); diff --git a/src/mensur.cpp b/src/mensur.cpp index df6e4384a88..023b0be96c4 100644 --- a/src/mensur.cpp +++ b/src/mensur.cpp @@ -35,6 +35,7 @@ Mensur::Mensur() , AttCue() , AttDurationRatio() , AttMensuralShared() + , AttMensurLog() , AttMensurVis() , AttSlashCount() , AttStaffLoc() @@ -43,6 +44,7 @@ Mensur::Mensur() this->RegisterAttClass(ATT_CUE); this->RegisterAttClass(ATT_DURATIONRATIO); this->RegisterAttClass(ATT_MENSURALSHARED); + this->RegisterAttClass(ATT_MENSURLOG); this->RegisterAttClass(ATT_MENSURVIS); this->RegisterAttClass(ATT_SLASHCOUNT); this->RegisterAttClass(ATT_STAFFLOC); @@ -59,6 +61,7 @@ void Mensur::Reset() this->ResetCue(); this->ResetDurationRatio(); this->ResetMensuralShared(); + this->ResetMensurLog(); this->ResetMensurVis(); this->ResetSlashCount(); this->ResetStaffLoc();