GUIDOLib  1.7.7
Guido Engine Internal Documentation
GUIDOFactoryAdapter.h
1 #ifndef GUIDOFACTORYADAPTER_H
2 #define GUIDOFACTORYADAPTER_H
3 /*
4  GUIDO Library
5  Copyright (C) 2014 Grame
6 
7  This Source Code Form is subject to the terms of the Mozilla Public
8  License, v. 2.0. If a copy of the MPL was not distributed with this
9  file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 
11  Grame Research Laboratory, 11, cours de Verdun Gensoul 69002 Lyon - France
12  research@grame.fr
13 
14 */
15 
16 #include <string>
17 
18 #include "GUIDOFactory.h"
19 
30  class_export GUIDOFactoryAdapter
31 {
32  public:
38 
42  virtual ~GUIDOFactoryAdapter();
43 
44  // ----------------------------------------------------------------------------
55 
56  // ----------------------------------------------------------------------------
75 
76  // ----------------------------------------------------------------------------
88 
89  // ----------------------------------------------------------------------------
101 
102  // ----------------------------------------------------------------------------
113 
114  // ----------------------------------------------------------------------------
124 
125  // ----------------------------------------------------------------------------
135 
136  // ----------------------------------------------------------------------------
145  GuidoErrCode openEvent(const std::string &inEventName);
146 
147  // ----------------------------------------------------------------------------
158 
159  // ----------------------------------------------------------------------------
166 
167  // ----------------------------------------------------------------------------
174 
175  // ----------------------------------------------------------------------------
180  GuidoErrCode setEventDots(int dots);
181 
182  // ----------------------------------------------------------------------------
188  GuidoErrCode setEventAccidentals(int accident);
189 
190  // ----------------------------------------------------------------------------
201  GuidoErrCode setOctave(int octave);
202 
203  // ----------------------------------------------------------------------------
214  GuidoErrCode setDuration(int numerator, int denominator);
215 
216  // ----------------------------------------------------------------------------
223  GuidoErrCode openTag(const std::string &name, long tagID);
224 
225  // ----------------------------------------------------------------------------
232  GuidoErrCode openRangeTag(const std::string &name, long tagID);
233 
234 
235  // ----------------------------------------------------------------------------
244 
245  // ----------------------------------------------------------------------------
257 
258  // ----------------------------------------------------------------------------
264  GuidoErrCode addTagParameterString(const std::string &val);
265 
266  // ----------------------------------------------------------------------------
273 
274  // ----------------------------------------------------------------------------
281 
282  // ----------------------------------------------------------------------------
288  GuidoErrCode setParameterName(const std::string &name);
289 
290  // ----------------------------------------------------------------------------
304  GuidoErrCode setParameterUnit(const std::string &unit);
305 
306  private:
310  ARFactoryHandler factory;
311 };
315 #endif // GUIDOFACTORYADAPTER_H
addTagParameterString
GuidoErrCode addTagParameterString(const std::string &val)
Adds a new string parameter to the current tag.
closeChord
GuidoErrCode closeChord()
Closes the current chord.
NodeAR
Definition: GUIDOInternal.h:31
setEventDots
GuidoErrCode setEventDots(int dots)
Sets the number of dots the current event.
setDuration
GuidoErrCode setDuration(int numerator, int denominator)
Sets the duration of the current event.
ARFactoryHandler
void * ARFactoryHandler
Definition: GUIDOFactory.h:48
openMusic
GuidoErrCode openMusic()
Creates and opens a new music score.
endTag
GuidoErrCode endTag()
Indicates the end of a range tag.
GuidoErrCode
GuidoErrCode
The guido error codes list.
Definition: GUIDOEngine.h:211
addFlat
GuidoErrCode addFlat()
Add a flat to the current event.
openTag
GuidoErrCode openTag(const std::string &name, long tagID)
Add a tag to the current voice.
setOctave
GuidoErrCode setOctave(int octave)
Sets the register (octave) of the current event.
setParameterUnit
GuidoErrCode setParameterUnit(const std::string &unit)
Defines the unit of the last added tag-parameter.
openChord
GuidoErrCode openChord()
Creates and open a new chord.
setParameterName
GuidoErrCode setParameterName(const std::string &name)
Defines the name (when applicable) of the last added tag-parameter.
closeEvent
GuidoErrCode closeEvent()
Closes the current event.
GUIDOFactoryAdapter
class_export GUIDOFactoryAdapter
Definition: GUIDOFactoryAdapter.h:31
closeMusic
ARHandler closeMusic()
Closes the current music score.
openVoice
GuidoErrCode openVoice()
Creates and opens a new voice.
closeTag
GuidoErrCode closeTag()
Closes the current tag.
openRangeTag
GuidoErrCode openRangeTag(const std::string &name, long tagID)
Add a tag to the current voice.
addTagParameterFloat
GuidoErrCode addTagParameterFloat(double val)
Adds a new floating-point parameter to the current tag.
openEvent
GuidoErrCode openEvent(const std::string &inEventName)
Creates and opens a new event (note or rest).
setEventAccidentals
GuidoErrCode setEventAccidentals(int accident)
Sets the accidentals of the current event.
closeVoice
GuidoErrCode closeVoice()
Closes the current voice.
addSharp
GuidoErrCode addSharp()
Adds a sharp to the current event.
insertCommata
GuidoErrCode insertCommata()
Begins a new chord note commata.
addTagParameterInt
GuidoErrCode addTagParameterInt(int val)
Adds a new integer parameter to the current tag.
~GUIDOFactoryAdapter
virtual ~GUIDOFactoryAdapter()
~GUIDOFactoryAdapter delete the class and close the internal factory

Guido Project Copyright © 2019 Grame-CNCM