Verovio
Source code documentation
halfmrpt.h
1 // Name: halfmrpt.h
3 // Author: Laurent Pugin
4 // Created: 2018
5 // Copyright (c) Authors and others. All rights reserved.
7 
8 #ifndef __VRV_HALFMRPT_H__
9 #define __VRV_HALFMRPT_H__
10 
11 #include "atts_cmn.h"
12 #include "atts_shared.h"
13 #include "atts_visual.h"
14 #include "beam.h"
15 #include "layerelement.h"
16 
17 namespace vrv {
18 
19 //----------------------------------------------------------------------------
20 // HalfmRpt (half-measure repeat)
21 //----------------------------------------------------------------------------
22 
26 class HalfmRpt : public LayerElement, public AttColor {
27 public:
33  HalfmRpt();
34  virtual ~HalfmRpt();
35  Object *Clone() const override { return new HalfmRpt(*this); }
36  void Reset() override;
37  std::string GetClassName() const override { return "halfmRpt"; }
39 
41  bool HasToBeAligned() const override { return true; }
42 
43  //----------//
44  // Functors //
45  //----------//
46 
51  FunctorCode Accept(Functor &functor) override;
52  FunctorCode Accept(ConstFunctor &functor) const override;
53  FunctorCode AcceptEnd(Functor &functor) override;
54  FunctorCode AcceptEnd(ConstFunctor &functor) const override;
56 
57 private:
58  //
59 public:
60  //
61 private:
62 };
63 
64 } // namespace vrv
65 
66 #endif
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 models the MEI <halfmRpt> element.
Definition: halfmrpt.h:26
bool HasToBeAligned() const override
Override the method since alignment is required.
Definition: halfmrpt.h:41
Object * Clone() const override
Method call for copying child classes.
Definition: halfmrpt.h:35
void Reset() override
Virtual reset method.
FunctorCode Accept(Functor &functor) override
Interface for class functor visitation.
This class is a base class for the Layer (<layer>) content.
Definition: layerelement.h:51
This class represents a basic object.
Definition: object.h:61