Verovio
Source code documentation
subst.h
1 // Name: subst.h
3 // Author: Laurent Pugin
4 // Created: 2018
5 // Copyright (c) Authors and others. All rights reserved.
7 
8 #ifndef __VRV_SUBST_H__
9 #define __VRV_SUBST_H__
10 
11 #include "atts_critapp.h"
12 #include "atts_shared.h"
13 #include "editorial.h"
14 #include "systemmilestone.h"
15 
16 namespace vrv {
17 
18 //----------------------------------------------------------------------------
19 // Subst
20 //----------------------------------------------------------------------------
21 
22 class Subst : public EditorialElement {
23 public:
28  Subst();
30  Subst(EditorialLevel level);
31  virtual ~Subst();
32  Object *Clone() const override { return new Subst(*this); }
33  void Reset() override;
34  std::string GetClassName() const override { return "subst"; }
36 
38  EditorialLevel GetLevel() const { return m_level; }
39 
43  bool IsSupportedChild(ClassId classId) override;
44 
45 protected:
47  EditorialLevel m_level;
48 
49 private:
50  //
51 public:
52  //
53 private:
54 };
55 
56 } // namespace vrv
57 
58 #endif
vrv::Object
This class represents a basic object.
Definition: object.h:59
vrv::Subst::IsSupportedChild
bool IsSupportedChild(ClassId classId) override
Add children to a apparatus.
vrv::Subst::GetLevel
EditorialLevel GetLevel() const
Getter for level.
Definition: subst.h:38
vrv::Subst
Definition: subst.h:22
vrv::Subst::m_level
EditorialLevel m_level
We store the level of the <subst> for integrity check.
Definition: subst.h:47
vrv::Subst::Reset
void Reset() override
Reset the object, that is 1) removing all children and 2) resetting all attributes.
vrv::Subst::Clone
Object * Clone() const override
Method call for copying child classes.
Definition: subst.h:32
vrv::EditorialElement
This class is a base class for the editorial element containing musical content, for example <rgd> or...
Definition: editorial.h:38