Verovio
Source code documentation
labelabbr.h
1
// Name: labelabbr.h
3
// Author: Klaus Rettinghaus
4
// Created: 07/03/2018
5
// Copyright (c) Authors and others. All rights reserved.
7
8
#ifndef __VRV_LABELABBR_H__
9
#define __VRV_LABELABBR_H__
10
11
#include "object.h"
12
13
namespace
vrv {
14
15
//----------------------------------------------------------------------------
16
// LabelAbbr
17
//----------------------------------------------------------------------------
18
22
class
LabelAbbr
:
public
Object
,
public
TextListInterface
{
23
24
public
:
30
LabelAbbr
();
31
virtual
~
LabelAbbr
();
32
Object
*
Clone
()
const override
{
return
new
LabelAbbr
(*
this
); }
33
void
Reset
()
override
;
34
std::string GetClassName()
const override
{
return
"labelAbbr"
; }
36
41
bool
IsSupportedChild
(ClassId classId)
override
;
43
44
//----------//
45
// Functors //
46
//----------//
47
52
FunctorCode
Accept
(
Functor
&functor)
override
;
53
FunctorCode
Accept
(
ConstFunctor
&functor)
const override
;
54
FunctorCode AcceptEnd(
Functor
&functor)
override
;
55
FunctorCode AcceptEnd(
ConstFunctor
&functor)
const override
;
57
58
private
:
59
//
60
public
:
61
//
62
private
:
63
//
64
};
65
66
}
// namespace vrv
67
68
#endif
vrv::ConstFunctor
This abstract class is the base class for all const functors.
Definition:
functor.h:126
vrv::Functor
This abstract class is the base class for all mutable functors.
Definition:
functor.h:101
vrv::LabelAbbr
This class models the MEI <labelAbbr> element.
Definition:
labelabbr.h:22
vrv::LabelAbbr::Clone
Object * Clone() const override
Method call for copying child classes.
Definition:
labelabbr.h:32
vrv::LabelAbbr::IsSupportedChild
bool IsSupportedChild(ClassId classId) override
Base method for checking if a child can be added.
vrv::LabelAbbr::Reset
void Reset() override
Reset the object, that is 1) removing all children and 2) resetting all attributes.
vrv::LabelAbbr::Accept
FunctorCode Accept(Functor &functor) override
Interface for class functor visitation.
vrv::Object
This class represents a basic object.
Definition:
object.h:61
vrv::TextListInterface
This class is an pseudo interface for elements maintaining a flat list of children LayerElement for p...
Definition:
object.h:992
include
vrv
labelabbr.h
Generated on Tue Jun 24 2025 11:27:27 for Verovio by
1.9.1