LibMusicXML  3.18
xml2brlOahTypes.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 ___xml2brlOahTypes___
14 #define ___xml2brlOahTypes___
15 
16 #include "oahBasicTypes.h"
17 
18 
19 namespace MusicXML2
20 {
21 
22 //______________________________________________________________________________
24 {
25  public:
26 
27  // creation
28  // ------------------------------------------------------
29 
30  static SMARTP<xml2brlVersionOahAtom> create (
31  string shortName,
32  string longName,
33  string description);
34 
35  protected:
36 
37  // constructors/destructor
38  // ------------------------------------------------------
39 
41  string shortName,
42  string longName,
43  string description);
44 
45  virtual ~xml2brlVersionOahAtom ();
46 
47  public:
48 
49  // set and get
50  // ------------------------------------------------------
51 
52  public:
53 
54  // services
55  // ------------------------------------------------------
56 
57  S_oahValuedAtom handleOptionUnderName (
58  string optionName,
59  ostream& os);
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  void print (ostream& os) const;
77 
78  void printVersion (ostream& os) const;
79 
80  void printAtomOptionsValues (
81  ostream& os,
82  int valueFieldWidth) const;
83 
84  private:
85 
86  // fields
87  // ------------------------------------------------------
88 };
90 EXP ostream& operator<< (ostream& os, const S_xml2brlVersionOahAtom& elt);
91 
92 //______________________________________________________________________________
94 {
95  public:
96 
97  // creation
98  // ------------------------------------------------------
99 
100  static SMARTP<xml2brlAboutOahAtom> create (
101  string shortName,
102  string longName,
103  string description);
104 
105  protected:
106 
107  // constructors/destructor
108  // ------------------------------------------------------
109 
111  string shortName,
112  string longName,
113  string description);
114 
115  virtual ~xml2brlAboutOahAtom ();
116 
117  public:
118 
119  // set and get
120  // ------------------------------------------------------
121 
122  public:
123 
124  // services
125  // ------------------------------------------------------
126 
127  S_oahValuedAtom handleOptionUnderName (
128  string optionName,
129  ostream& os);
130 
131  public:
132 
133  // visitors
134  // ------------------------------------------------------
135 
136  virtual void acceptIn (basevisitor* v);
137  virtual void acceptOut (basevisitor* v);
138 
139  virtual void browseData (basevisitor* v);
140 
141  public:
142 
143  // print
144  // ------------------------------------------------------
145 
146  void print (ostream& os) const;
147 
148  void printAbout (ostream& os) const;
149 
150  void printAtomOptionsValues (
151  ostream& os,
152  int valueFieldWidth) const;
153 
154  private:
155 
156  // fields
157  // ------------------------------------------------------
158 };
160 EXP ostream& operator<< (ostream& os, const S_xml2brlAboutOahAtom& elt);
161 
162 //______________________________________________________________________________
164 {
165  public:
166 
167  // creation
168  // ------------------------------------------------------
169 
170  static SMARTP<xml2brlContactOahAtom> create (
171  string shortName,
172  string longName,
173  string description);
174 
175  protected:
176 
177  // constructors/destructor
178  // ------------------------------------------------------
179 
181  string shortName,
182  string longName,
183  string description);
184 
185  virtual ~xml2brlContactOahAtom ();
186 
187  public:
188 
189  // set and get
190  // ------------------------------------------------------
191 
192  public:
193 
194  // services
195  // ------------------------------------------------------
196 
197  S_oahValuedAtom handleOptionUnderName (
198  string optionName,
199  ostream& os);
200 
201  public:
202 
203  // visitors
204  // ------------------------------------------------------
205 
206  virtual void acceptIn (basevisitor* v);
207  virtual void acceptOut (basevisitor* v);
208 
209  virtual void browseData (basevisitor* v);
210 
211  public:
212 
213  // print
214  // ------------------------------------------------------
215 
216  void print (ostream& os) const;
217 
218  void printContact (ostream& os) const;
219 
220  void printAtomOptionsValues (
221  ostream& os,
222  int valueFieldWidth) const;
223 
224  private:
225 
226  // fields
227  // ------------------------------------------------------
228 };
230 EXP ostream& operator<< (ostream& os, const S_xml2brlContactOahAtom& elt);
231 
232 
233 }
234 
235 
236 #endif
the smart pointer implementation
Definition: smartpointer.h:58
Definition: basevisitor.h:25
Definition: oahBasicTypes.h:59
Definition: xml2brlOahTypes.h:94
Definition: xml2brlOahTypes.h:164
Definition: xml2brlOahTypes.h:24