LibMusicXML
3.18
src
lilypond
lpsrBarNumbers.h
1
/*
2
MusicXML Library
3
Copyright (C) Grame 2006-2013
4
5
This Source Code Form is subject to the terms of the Mozilla Public
6
License, v. 2.0. If a copy of the MPL was not distributed with this
7
file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
9
Grame Research Laboratory, 11, cours de Verdun Gensoul 69002 Lyon - France
10
research@grame.fr
11
*/
12
13
#ifndef ___lpsrBarNumbers___
14
#define ___lpsrBarNumbers___
15
16
#include <iostream>
17
18
#include "lpsrElements.h"
19
20
using namespace
std;
21
22
namespace
MusicXML2
23
{
24
25
//______________________________________________________________________________
26
class
lpsrBarNumberCheck
:
public
lpsrElement
27
{
28
public
:
29
30
// creation from MusicXML
31
// ------------------------------------------------------
32
33
static
SMARTP<lpsrBarNumberCheck>
create (
34
int
inputLineNumber,
35
int
nextBarNumber);
36
37
protected
:
38
39
// constructors/destructor
40
// ------------------------------------------------------
41
42
lpsrBarNumberCheck
(
43
int
inputLineNumber,
44
int
nextBarNumber);
45
46
virtual
~
lpsrBarNumberCheck
();
47
48
public
:
49
50
// set and get
51
// ------------------------------------------------------
52
53
// services
54
// ------------------------------------------------------
55
56
public
:
57
58
// visitors
59
// ------------------------------------------------------
60
61
virtual
void
acceptIn (
basevisitor
* v);
62
virtual
void
acceptOut (
basevisitor
* v);
63
64
virtual
void
browseData (
basevisitor
* v);
65
66
public
:
67
68
// print
69
// ------------------------------------------------------
70
71
virtual
void
print (ostream& os)
const
;
72
73
private
:
74
75
// fields
76
// ------------------------------------------------------
77
78
int
fNextBarNumber;
79
};
80
typedef
SMARTP<lpsrBarNumberCheck>
S_lpsrBarNumberCheck
;
81
82
//______________________________________________________________________________
83
class
lpsrBarCommand
:
public
lpsrElement
84
{
85
public
:
86
87
// creation from MusicXML
88
// ------------------------------------------------------
89
90
static
SMARTP<lpsrBarCommand>
create (
91
int
inputLineNumber);
92
93
protected
:
94
95
// constructors/destructor
96
// ------------------------------------------------------
97
98
lpsrBarCommand
(
99
int
inputLineNumber);
100
101
virtual
~
lpsrBarCommand
();
102
103
public
:
104
105
// set and get
106
// ------------------------------------------------------
107
108
// services
109
// ------------------------------------------------------
110
111
public
:
112
113
// visitors
114
// ------------------------------------------------------
115
116
virtual
void
acceptIn (
basevisitor
* v);
117
virtual
void
acceptOut (
basevisitor
* v);
118
119
virtual
void
browseData (
basevisitor
* v);
120
121
public
:
122
123
// print
124
// ------------------------------------------------------
125
126
virtual
void
print (ostream& os)
const
;
127
128
private
:
129
130
// fields
131
// ------------------------------------------------------
132
};
133
typedef
SMARTP<lpsrBarCommand>
S_lpsrBarCommand
;
134
EXP ostream& operator<< (ostream& os,
const
S_lpsrBarCommand
& elt);
135
136
137
}
138
139
140
#endif
MusicXML2::lpsrElement
Definition:
lpsrElements.h:24
MusicXML2::lpsrBarCommand
Definition:
lpsrBarNumbers.h:84
MusicXML2::lpsrBarNumberCheck
Definition:
lpsrBarNumbers.h:27
MusicXML2::SMARTP
the smart pointer implementation
Definition:
smartpointer.h:58
MusicXML2::basevisitor
Definition:
basevisitor.h:25
Generated by
1.8.18