Verovio
Source code documentation
space.h
1 // Name: space.h
3 // Author: Laurent Pugin
4 // Created: 2015
5 // Copyright (c) Authors and others. All rights reserved.
7 
8 #ifndef __VRV_SPACE_H__
9 #define __VRV_SPACE_H__
10 
11 #include "durationinterface.h"
12 #include "layerelement.h"
13 
14 namespace vrv {
15 
16 //----------------------------------------------------------------------------
17 // Space
18 //----------------------------------------------------------------------------
19 
23 class Space : public LayerElement, public DurationInterface {
24 public:
30  Space();
31  virtual ~Space();
32  Object *Clone() const override { return new Space(*this); }
33  void Reset() override;
34  std::string GetClassName() const override { return "space"; }
36 
41  bool IsSupportedChild(ClassId classId) override;
42 
44  void InitShowSpace();
45 
50  DurationInterface *GetDurationInterface() override { return vrv_cast<DurationInterface *>(this); }
51  const DurationInterface *GetDurationInterface() const override { return vrv_cast<const DurationInterface *>(this); }
53 
54  //----------//
55  // Functors //
56  //----------//
57 
62  FunctorCode Accept(Functor &functor) override;
63  FunctorCode Accept(ConstFunctor &functor) const override;
64  FunctorCode AcceptEnd(Functor &functor) override;
65  FunctorCode AcceptEnd(ConstFunctor &functor) const override;
67 
68 private:
69  //
70 public:
71  //
72 private:
73 };
74 
75 } // namespace vrv
76 
77 #endif
This abstract class is the base class for all const functors.
Definition: functor.h:126
This class is an interface for elements with duration, such as notes and rests.
Definition: durationinterface.h:39
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 basic object.
Definition: object.h:66
This class models the MEI <space> element.
Definition: space.h:23
FunctorCode Accept(Functor &functor) override
Interface for class functor visitation.
void Reset() override
Virtual reset method.
void InitShowSpace()
Init the display of space when the option is set.
bool IsSupportedChild(ClassId classId) override
Add an element (accid) to a accid.
Object * Clone() const override
Method call for copying child classes.
Definition: space.h:32