Verovio
Source code documentation
annot.h
1
// Name: annot.h
3
// Author: Klaus Rettinghaus
4
// Created: 2018/03/28
5
// Copyright (c) Authors and others. All rights reserved.
7
8
#ifndef __VRV_ANNOT_H__
9
#define __VRV_ANNOT_H__
10
11
#include "atts_shared.h"
12
#include "editorial.h"
13
14
namespace
vrv {
15
16
//----------------------------------------------------------------------------
17
// Annot
18
//----------------------------------------------------------------------------
19
23
class
Annot
:
public
EditorialElement
,
public
TextListInterface
,
public
AttPlist,
public
AttSource {
24
public
:
29
Annot
();
31
virtual
~
Annot
();
32
// This fails because of the copy contructor in ObjectListInterface (TextListInterface parent)
33
// Object *Clone() const override { return new Annot(*this); }
34
void
Reset
()
override
;
35
std::string GetClassName()
const override
{
return
"annot"
; }
37
42
bool
IsSupportedChild
(ClassId classId)
override
;
43
44
//----------//
45
// Functors //
46
//----------//
47
48
private
:
49
//
50
public
:
54
pugi::xml_document
m_content
;
55
56
private
:
57
};
58
59
}
// namespace vrv
60
61
#endif
vrv::Annot::IsSupportedChild
bool IsSupportedChild(ClassId classId) override
Add a text element to an annotation.
vrv::Annot
This class models the MEI <annot> element.
Definition:
annot.h:23
vrv::TextListInterface
This class is an pseudo interface for elements maintaining a flat list of children LayerElement for p...
Definition:
object.h:972
vrv::Annot::Reset
void Reset() override
Reset the object, that is 1) removing all children and 2) resetting all attributes.
vrv::EditorialElement
This class is a base class for the editorial element containing musical content, for example <rgd> or...
Definition:
editorial.h:38
vrv::Annot::m_content
pugi::xml_document m_content
A copy of the annot content tree stored as pugi::xml_document.
Definition:
annot.h:54
include
vrv
annot.h
Generated on Fri Apr 4 2025 06:58:35 for Verovio by
1.8.17