Verovio
Source code documentation
symbol.h
1
// Name: symbol.h
3
// Author: Laurent Pugin
4
// Created: 2022
5
// Copyright (c) Authors and others. All rights reserved.
7
8
#ifndef __VRV_SYMBOL_H__
9
#define __VRV_SYMBOL_H__
10
11
#include "atts_externalsymbols.h"
12
#include "atts_shared.h"
13
#include "atts_visual.h"
14
#include "textelement.h"
15
16
namespace
vrv {
17
18
//----------------------------------------------------------------------------
19
// Symbol
20
//----------------------------------------------------------------------------
21
25
class
Symbol
:
public
TextElement
,
public
AttColor,
public
AttExtSymAuth,
public
AttExtSymNames,
public
AttTypography {
26
public
:
31
Symbol
();
33
virtual
~
Symbol
();
34
Object
*
Clone
()
const override
{
return
new
Symbol
(*
this
); }
35
void
Reset
()
override
;
36
std::string GetClassName()
const override
{
return
"symbol"
; }
38
42
bool
IsSupportedChild
(ClassId classId)
override
;
43
47
char32_t
GetSymbolGlyph
()
const
;
48
52
FunctorCode
Accept
(Functor &functor)
override
;
54
FunctorCode
Accept
(ConstFunctor &functor)
const override
;
55
FunctorCode AcceptEnd(Functor &functor)
override
;
56
FunctorCode AcceptEnd(ConstFunctor &functor)
const override
;
58
59
private
:
60
//
61
public
:
62
private
:
63
};
64
65
}
// namespace vrv
66
67
#endif
vrv::TextElement
Definition:
textelement.h:22
vrv::Symbol::Accept
FunctorCode Accept(Functor &functor) override
Interface for class functor visitation.
vrv::Object
This class represents a basic object.
Definition:
object.h:59
vrv::Symbol::Clone
Object * Clone() const override
Method call for copying child classes.
Definition:
symbol.h:34
vrv::Symbol
This class models the MEI <symbol> element.
Definition:
symbol.h:25
vrv::Symbol::Reset
void Reset() override
Reset the object, that is 1) removing all children and 2) resetting all attributes.
vrv::Symbol::IsSupportedChild
bool IsSupportedChild(ClassId classId) override
Only supported elements will be actually added to the child list.
vrv::Symbol::GetSymbolGlyph
char32_t GetSymbolGlyph() const
Get the SMuFL glyph for the symbol based on glyph.num or glyph.name.
include
vrv
symbol.h
Generated on Fri Apr 4 2025 06:58:35 for Verovio by
1.8.17