8 #ifndef __VRV_METERSIGGRP_H__
9 #define __VRV_METERSIGGRP_H__
13 #include "atts_shared.h"
14 #include "layerelement.h"
31 public AttMeterSigGrpLog,
32 public AttVisibility {
43 std::string GetClassName()
const override {
return "meterSigGrp"; }
81 FunctorCode AcceptEnd(
Functor &functor)
override;
82 FunctorCode AcceptEnd(
ConstFunctor &functor)
const override;
89 void FilterList(ListOfConstObjects &childList)
const override;
93 std::vector<const Measure *> m_alternatingMeasures;
This abstract class is the base class for all const functors.
Definition: functor.h:126
This abstract class is the base class for all mutable functors.
Definition: functor.h:101
This class is a base class for the Layer (<layer>) content.
Definition: layerelement.h:51
This class represents a measure in a page-based score (Doc).
Definition: measure.h:46
This class represents a MEI meterSigGrp.
Definition: metersiggrp.h:32
void FilterList(ListOfConstObjects &childList) const override
Filter the flat list and keep only meterSigGrp elements.
bool IsScoreDefElement() const override
Override the method since check is required.
Definition: metersiggrp.h:54
Object * Clone() const override
Method call for copying child classes.
Definition: metersiggrp.h:41
void Reset() override
Virtual reset method.
MeterSig * GetSimplifiedMeterSig() const
Get simplified (i.e.
FunctorCode Accept(Functor &functor) override
Interface for class functor visitation.
bool IsSupportedChild(ClassId classId) override
Base method for checking if a child can be added.
void AddAlternatingMeasureToVector(const Measure *measure)
Add specified measureId to the m_alternatingMeasures vector.
void SetMeasureBasedCount(const Measure *measure)
Set counter for the alternating meterSigGrp based on the provided measureId.
This class models the MEI <meterSig> element.
Definition: metersig.h:34
This class represents a basic object.
Definition: object.h:62
Object * GetFirstAncestor(const ClassId classId, int maxSteps=-1)
Return the first ancestor of the specified type.
Object * GetParent()
Get the parent of the Object.
Definition: object.h:384
This class is an pseudo interface for elements maintaining a flat list of children LayerElement for p...
Definition: object.h:894