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