LibMusicXML
3.18
src
lilypond
lpsrVariables.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 ___lpsrVariables___
14
#define ___lpsrVariables___
15
16
#include <string>
17
18
#include "lpsrElements.h"
19
20
21
using namespace
std;
22
23
namespace
MusicXML2
24
{
25
26
//______________________________________________________________________________
27
class
lpsrVariableUseCommand
:
public
lpsrElement
28
{
29
public
:
30
31
// creation from MusicXML
32
// ------------------------------------------------------
33
34
static
SMARTP<lpsrVariableUseCommand>
create (
35
int
inputLineNumber,
36
string
variableName);
37
38
protected
:
39
40
// constructors/destructor
41
// ------------------------------------------------------
42
43
lpsrVariableUseCommand
(
44
int
inputLineNumber,
45
string
variableName);
46
47
virtual
~
lpsrVariableUseCommand
();
48
49
public
:
50
51
// set and get
52
// ------------------------------------------------------
53
54
// services
55
// ------------------------------------------------------
56
57
public
:
58
59
// visitors
60
// ------------------------------------------------------
61
62
virtual
void
acceptIn (
basevisitor
* v);
63
virtual
void
acceptOut (
basevisitor
* v);
64
65
virtual
void
browseData (
basevisitor
* v);
66
67
public
:
68
69
// print
70
// ------------------------------------------------------
71
72
virtual
void
print (ostream& os)
const
;
73
74
private
:
75
76
// fields
77
// ------------------------------------------------------
78
79
string
fVariableName;
80
};
81
typedef
SMARTP<lpsrVariableUseCommand>
S_lpsrVariableUseCommand
;
82
EXP ostream& operator<< (ostream& os,
const
S_lpsrVariableUseCommand
& elt);
83
84
85
}
86
87
88
#endif
MusicXML2::lpsrElement
Definition:
lpsrElements.h:24
MusicXML2::lpsrVariableUseCommand
Definition:
lpsrVariables.h:28
MusicXML2::SMARTP
the smart pointer implementation
Definition:
smartpointer.h:58
MusicXML2::basevisitor
Definition:
basevisitor.h:25
Generated by
1.8.18