Verovio
Source code documentation
editorial.h
1 // Name: editorial.h
3 // Author: Laurent Pugin
4 // Created: 2014
5 // Copyright (c) Authors and others. All rights reserved.
7 
8 #ifndef __VRV_EDITORIAL_H__
9 #define __VRV_EDITORIAL_H__
10 
11 #include "atts_critapp.h"
12 #include "atts_shared.h"
13 #include "drawinginterface.h"
14 #include "object.h"
15 #include "systemmilestone.h"
16 
17 namespace vrv {
18 
19 class Layer;
20 class LayerElement;
21 class Measure;
22 class ControlElement;
23 class ScoreDef;
24 class Staff;
25 class StaffDef;
26 class StaffGrp;
27 class TextElement;
28 
29 //----------------------------------------------------------------------------
30 // EditorialElement
31 //----------------------------------------------------------------------------
32 
39 class EditorialElement : public Object,
42  public AttLabelled,
43  public AttTyped {
44 public:
51  EditorialElement(ClassId classId);
52  virtual ~EditorialElement();
53  void Reset() override;
55 
60  bool IsSupportedChild(ClassId classId) override;
62 
67  VisibilityDrawingInterface *GetVisibilityDrawingInterface() override
68  {
69  return vrv_cast<VisibilityDrawingInterface *>(this);
70  }
71  const VisibilityDrawingInterface *GetVisibilityDrawingInterface() const override
72  {
73  return vrv_cast<const VisibilityDrawingInterface *>(this);
74  }
76 
77  //----------//
78  // Functors //
79  //----------//
80 
85  FunctorCode Accept(Functor &functor) override;
86  FunctorCode Accept(ConstFunctor &functor) const override;
87  FunctorCode AcceptEnd(Functor &functor) override;
88  FunctorCode AcceptEnd(ConstFunctor &functor) const override;
90 
91 private:
92  //
93 public:
94  //
95 private:
96 };
97 
98 } // namespace vrv
99 
100 #endif
This abstract class is the base class for all const functors.
Definition: functor.h:126
This class is a base class for the editorial element containing musical content, for example <rgd> or...
Definition: editorial.h:43
bool IsSupportedChild(ClassId classId) override
Base method for checking if a child can be added.
FunctorCode Accept(Functor &functor) override
Interface for class functor visitation.
This abstract class is the base class for all mutable functors.
Definition: functor.h:101
This class represents a basic object.
Definition: object.h:61
This class is an interface for container elements that have to be turned to milestones in a page-base...
Definition: systemmilestone.h:91
This class is an interface for MEI element that can be hidden during drawing.
Definition: drawinginterface.h:422