BEAST - Free Software Audio Synthesizer and Tracker  0.9.2
bstserverapi.hh
Go to the documentation of this file.
1  // --- Generated by AidaCxxStub ---
2 #ifndef __SRVT__BST_IDL
3 #define __SRVT__BST_IDL
4 
5 
6 // --- ServerHH Boilerplate ---
7 #include <rapicorn-core.hh>
8 
9 #include <rapicorn-core.hh> // for rcore/signal.hh
10 
11 #ifndef __ENUMHH__BST_IDL__
12 #define __ENUMHH__BST_IDL__
13 
14 namespace Bst {
15 
17 enum Direction {
18  DIR_UP = 1, // _("Move upwards")
19  DIR_LEFT = 2, // _("Move to the left")
20  DIR_RIGHT = 3, // _("Move to the right")
21  DIR_DOWN = 4, // _("Move downwards")
22 };
23 inline void operator<<= (Rapicorn::Aida::ProtoMsg &__p_, Direction e) { __p_ <<= Rapicorn::Aida::EnumValue (e); }
24 inline void operator>>= (Rapicorn::Aida::ProtoReader &__f_, Direction &e) { e = Direction (__f_.pop_evalue()); }
26 
28 enum FFTSize {
29  FFT_SIZE_2 = 2, // _("A 2 value FFT window corresponds to a spectrum with 2 frequency peaks")
30  FFT_SIZE_4 = 4, // _("A 4 value FFT window corresponds to a spectrum with 3 frequency peaks")
31  FFT_SIZE_8 = 8, // _("A 8 value FFT window corresponds to a spectrum with 5 frequency peaks")
32  FFT_SIZE_16 = 16, // _("A 16 value FFT window corresponds to a spectrum with 9 frequency peaks")
33  FFT_SIZE_32 = 32, // _("A 32 value FFT window corresponds to a spectrum with 17 frequency peaks")
34  FFT_SIZE_64 = 64, // _("A 64 value FFT window corresponds to a spectrum with 33 frequency peaks")
35  FFT_SIZE_128 = 128, // _("A 128 value FFT window corresponds to a spectrum with 65 frequency peaks")
36  FFT_SIZE_256 = 256, // _("A 256 value FFT window corresponds to a spectrum with 129 frequency peaks")
37  FFT_SIZE_512 = 512, // _("A 512 value FFT window corresponds to a spectrum with 257 frequency peaks")
38  FFT_SIZE_1024 = 1024, // _("A 1024 value FFT window corresponds to a spectrum with 513 frequency peaks")
39  FFT_SIZE_2048 = 2048, // _("A 2048 value FFT window corresponds to a spectrum with 1025 frequency peaks")
40  FFT_SIZE_4096 = 4096, // _("A 4096 value FFT window corresponds to a spectrum with 2049 frequency peaks")
41  FFT_SIZE_8192 = 8192, // _("A 8192 value FFT window corresponds to a spectrum with 4097 frequency peaks")
42  FFT_SIZE_16384 = 16384, // _("A 16384 value FFT window corresponds to a spectrum with 8193 frequency peaks")
43  FFT_SIZE_32768 = 32768, // _("A 32768 value FFT window corresponds to a spectrum with 16385 frequency peaks")
44  FFT_SIZE_65536 = 65536, // _("A 65536 value FFT window corresponds to a spectrum with 32769 frequency peaks")
45 };
46 inline void operator<<= (Rapicorn::Aida::ProtoMsg &__p_, FFTSize e) { __p_ <<= Rapicorn::Aida::EnumValue (e); }
47 inline void operator>>= (Rapicorn::Aida::ProtoReader &__f_, FFTSize &e) { e = FFTSize (__f_.pop_evalue()); }
49 
51 enum NoteLength {
52  NOTE_LENGTH_NONE = 0, // _("Unspecified length")
53  NOTE_LENGTH_1 = 1, // _("Whole note")
54  NOTE_LENGTH_2 = 2, // _("Half note")
55  NOTE_LENGTH_4 = 3, // _("Quarter note")
56  NOTE_LENGTH_8 = 4, // _("Eighths note")
57  NOTE_LENGTH_16 = 5, // _("Sixteenth note")
58  NOTE_LENGTH_32 = 6, // _("Thirty-secondth note")
59  NOTE_LENGTH_64 = 7, // _("Sixty-fourth note")
60  NOTE_LENGTH_128 = 8, // _("Hundred twenty-eighth note")
61  NOTE_LENGTH_1P = 9, // _("Dotted whole note")
62  NOTE_LENGTH_2P = 10, // _("Dotted half note")
63  NOTE_LENGTH_4P = 11, // _("Dotted quarter note")
64  NOTE_LENGTH_8P = 12, // _("Dotted eighths note")
65  NOTE_LENGTH_16P = 13, // _("Dotted sixteenth note")
66  NOTE_LENGTH_32P = 14, // _("Dotted thirty-secondth note")
67  NOTE_LENGTH_64P = 15, // _("Dotted sixty-fourth note")
68  NOTE_LENGTH_128P = 16, // _("Dotted hundred twenty-eighth note")
69  NOTE_LENGTH_1T = 17, // _("Triplet whole note")
70  NOTE_LENGTH_2T = 18, // _("Triplet half note")
71  NOTE_LENGTH_4T = 19, // _("Triplet quarter note")
72  NOTE_LENGTH_8T = 20, // _("Triplet eighths note")
73  NOTE_LENGTH_16T = 21, // _("Triplet sixteenth note")
74  NOTE_LENGTH_32T = 22, // _("Triplet thirty-secondth note")
75  NOTE_LENGTH_64T = 23, // _("Triplet sixty-fourth note")
76  NOTE_LENGTH_128T = 24, // _("Triplet hundred twenty-eighth note")
77 };
78 inline void operator<<= (Rapicorn::Aida::ProtoMsg &__p_, NoteLength e) { __p_ <<= Rapicorn::Aida::EnumValue (e); }
79 inline void operator>>= (Rapicorn::Aida::ProtoReader &__f_, NoteLength &e) { e = NoteLength (__f_.pop_evalue()); }
81 
83 enum QSamplerDrawMode {
84  QSAMPLER_DRAW_CRANGE = 1,
85  QSAMPLER_DRAW_ZERO_SHAPE = 2,
86  QSAMPLER_DRAW_MINIMUM_SHAPE = 3,
87  QSAMPLER_DRAW_MAXIMUM_SHAPE = 4,
88  QSAMPLER_DRAW_CSHAPE = 5,
89  QSAMPLER_DRAW_MIDDLE_LINE = 6,
90  QSAMPLER_DRAW_MINIMUM_LINE = 7,
91  QSAMPLER_DRAW_MAXIMUM_LINE = 8,
92 };
93 inline void operator<<= (Rapicorn::Aida::ProtoMsg &__p_, QSamplerDrawMode e) { __p_ <<= Rapicorn::Aida::EnumValue (e); }
94 inline void operator>>= (Rapicorn::Aida::ProtoReader &__f_, QSamplerDrawMode &e) { e = QSamplerDrawMode (__f_.pop_evalue()); }
96 
98 enum RowShading {
99  ROW_SHADING_NONE = 0,
100  ROW_SHADING_2 = 1, // _("Every second row")
101  ROW_SHADING_4 = 2, // _("Every fourth row")
102  ROW_SHADING_8 = 3, // _("Every eighth row")
103  ROW_SHADING_16 = 4, // _("Every sixteenth row")
104  ROW_SHADING_2_4 = 5, // _("Every second and fourth row")
105  ROW_SHADING_4_8 = 6, // _("Every fourth and eighth row")
106  ROW_SHADING_4_12 = 7, // _("Every fourth and twelfth row")
107  ROW_SHADING_4_16 = 8, // _("Every fourth and sixteenth row")
108  ROW_SHADING_8_16 = 9, // _("Every eighth and sixteenth row")
109  ROW_SHADING_3 = 10, // _("Every third row")
110  ROW_SHADING_6 = 11, // _("Every sixth row")
111  ROW_SHADING_12 = 12, // _("Every twelfth row")
112  ROW_SHADING_3_6 = 13, // _("Every third and sixth row")
113  ROW_SHADING_3_12 = 14, // _("Every third and twelfth row")
114  ROW_SHADING_6_12 = 15, // _("Every sixth and twelfth row")
115 };
116 inline void operator<<= (Rapicorn::Aida::ProtoMsg &__p_, RowShading e) { __p_ <<= Rapicorn::Aida::EnumValue (e); }
117 inline void operator>>= (Rapicorn::Aida::ProtoReader &__f_, RowShading &e) { e = RowShading (__f_.pop_evalue()); }
119 } // Bst
120 
121 namespace Rapicorn {
122 
123 namespace Aida {
124 template<> EnumInfo enum_info<Bst::Direction> ();
125 template<> EnumInfo enum_info<Bst::FFTSize> ();
126 template<> EnumInfo enum_info<Bst::NoteLength> ();
127 template<> EnumInfo enum_info<Bst::QSamplerDrawMode> ();
128 template<> EnumInfo enum_info<Bst::RowShading> ();
129 } // Aida
130 } // Rapicorn
131 
132 #endif // __ENUMHH__BST_IDL__
133 
134 
135 // --- Interfaces (class declarations) ---
136 
137 namespace Bst {
138 
140 {
142  std::string rc_version;
143  int snet_font_size;
144  bool snet_anti_aliased;
145  bool snet_edit_fallback;
146  bool snet_swap_io_channels;
147  bool gui_enable_error_bell;
148  bool size_group_input_fields;
149  bool slow_scopes;
151  inline SrvT_GConfig () { snet_font_size = 0; snet_anti_aliased = 0; snet_edit_fallback = 0; snet_swap_io_channels = 0; gui_enable_error_bell = 0; size_group_input_fields = 0; slow_scopes = 0; }
152  std::string __aida_type_name__ () const { return "Bst::GConfig"; }
153  std::vector<std::string> __aida_aux_data__ () const;
154  Rapicorn::Aida::Any __aida_to_any__ () { return Rapicorn::any_from_visitable (*this); }
155  void __aida_from_any__ (const Rapicorn::Aida::Any &any) { return Rapicorn::any_to_visitable (any, *this); }
156  bool operator== (const SrvT_GConfig &other) const;
157  bool operator!= (const SrvT_GConfig &other) const { return !operator== (other); }
158  template<class Visitor> void __accept__ (Visitor &_visitor_)
159  {
160  _visitor_ (rc_version, "rc_version");
161  _visitor_ (snet_font_size, "snet_font_size");
162  _visitor_ (snet_anti_aliased, "snet_anti_aliased");
163  _visitor_ (snet_edit_fallback, "snet_edit_fallback");
164  _visitor_ (snet_swap_io_channels, "snet_swap_io_channels");
165  _visitor_ (gui_enable_error_bell, "gui_enable_error_bell");
166  _visitor_ (size_group_input_fields, "size_group_input_fields");
167  _visitor_ (slow_scopes, "slow_scopes");
168  }
169 };
170 void operator<<= (Rapicorn::Aida::ProtoMsg&, const SrvT_GConfig&);
171 void operator>>= (Rapicorn::Aida::ProtoReader&, SrvT_GConfig&);
172 
174 {
176  std::string skin_name;
177  std::string pattern_image;
178  double pattern_shade;
179  int pattern_color;
180  int pattern_scolor1;
181  int pattern_scolor2;
182  int pattern_text0;
183  int pattern_text1;
184  int pattern_vbar1;
185  std::string piano_image;
186  double piano_shade;
187  int piano_color;
188  int piano_hbar;
189  int piano_vbar;
190  int piano_hgrid;
191  int piano_vgrid;
192  int piano_mbar;
193  std::string controls_image;
194  double controls_shade;
195  int controls_color;
196  int controls_hbar;
197  int controls_mbar;
198  int controls_positive;
199  int controls_zero;
200  int controls_negative;
202  inline SrvT_SkinConfig () { pattern_shade = 0; pattern_color = 0; pattern_scolor1 = 0; pattern_scolor2 = 0; pattern_text0 = 0; pattern_text1 = 0; pattern_vbar1 = 0; piano_shade = 0; piano_color = 0; piano_hbar = 0; piano_vbar = 0; piano_hgrid = 0; piano_vgrid = 0; piano_mbar = 0; controls_shade = 0; controls_color = 0; controls_hbar = 0; controls_mbar = 0; controls_positive = 0; controls_zero = 0; controls_negative = 0; }
203  std::string __aida_type_name__ () const { return "Bst::SkinConfig"; }
204  std::vector<std::string> __aida_aux_data__ () const;
205  Rapicorn::Aida::Any __aida_to_any__ () { return Rapicorn::any_from_visitable (*this); }
206  void __aida_from_any__ (const Rapicorn::Aida::Any &any) { return Rapicorn::any_to_visitable (any, *this); }
207  bool operator== (const SrvT_SkinConfig &other) const;
208  bool operator!= (const SrvT_SkinConfig &other) const { return !operator== (other); }
209  template<class Visitor> void __accept__ (Visitor &_visitor_)
210  {
211  _visitor_ (skin_name, "skin_name");
212  _visitor_ (pattern_image, "pattern_image");
213  _visitor_ (pattern_shade, "pattern_shade");
214  _visitor_ (pattern_color, "pattern_color");
215  _visitor_ (pattern_scolor1, "pattern_scolor1");
216  _visitor_ (pattern_scolor2, "pattern_scolor2");
217  _visitor_ (pattern_text0, "pattern_text0");
218  _visitor_ (pattern_text1, "pattern_text1");
219  _visitor_ (pattern_vbar1, "pattern_vbar1");
220  _visitor_ (piano_image, "piano_image");
221  _visitor_ (piano_shade, "piano_shade");
222  _visitor_ (piano_color, "piano_color");
223  _visitor_ (piano_hbar, "piano_hbar");
224  _visitor_ (piano_vbar, "piano_vbar");
225  _visitor_ (piano_hgrid, "piano_hgrid");
226  _visitor_ (piano_vgrid, "piano_vgrid");
227  _visitor_ (piano_mbar, "piano_mbar");
228  _visitor_ (controls_image, "controls_image");
229  _visitor_ (controls_shade, "controls_shade");
230  _visitor_ (controls_color, "controls_color");
231  _visitor_ (controls_hbar, "controls_hbar");
232  _visitor_ (controls_mbar, "controls_mbar");
233  _visitor_ (controls_positive, "controls_positive");
234  _visitor_ (controls_zero, "controls_zero");
235  _visitor_ (controls_negative, "controls_negative");
236  }
237 };
238 void operator<<= (Rapicorn::Aida::ProtoMsg&, const SrvT_SkinConfig&);
239 void operator>>= (Rapicorn::Aida::ProtoReader&, SrvT_SkinConfig&);
240 
242 {
244  std::string version;
245  std::string cstring;
246  bool enabled;
248  inline SrvT_MsgAbsorbString () { enabled = 0; }
249  std::string __aida_type_name__ () const { return "Bst::MsgAbsorbString"; }
250  std::vector<std::string> __aida_aux_data__ () const;
251  Rapicorn::Aida::Any __aida_to_any__ () { return Rapicorn::any_from_visitable (*this); }
252  void __aida_from_any__ (const Rapicorn::Aida::Any &any) { return Rapicorn::any_to_visitable (any, *this); }
253  bool operator== (const SrvT_MsgAbsorbString &other) const;
254  bool operator!= (const SrvT_MsgAbsorbString &other) const { return !operator== (other); }
255  template<class Visitor> void __accept__ (Visitor &_visitor_)
256  {
257  _visitor_ (version, "version");
258  _visitor_ (cstring, "cstring");
259  _visitor_ (enabled, "enabled");
260  }
261 };
262 void operator<<= (Rapicorn::Aida::ProtoMsg&, const SrvT_MsgAbsorbString&);
263 void operator>>= (Rapicorn::Aida::ProtoReader&, SrvT_MsgAbsorbString&);
264 
265 struct SrvT_MsgAbsorbStringSeq : public std::vector<SrvT_MsgAbsorbString>
266 {
268  reference append_back()
269  { resize (size() + 1); return back(); }
270  std::string __aida_type_name__ () const { return "Bst::MsgAbsorbStringSeq"; }
271  std::vector<std::string> __aida_aux_data__ () const;
272  Rapicorn::Aida::Any __aida_to_any__ () { return Rapicorn::any_from_sequence (*this); }
273  void __aida_from_any__ (const Rapicorn::Aida::Any &any) { return Rapicorn::any_to_sequence (any, *this); }
274 };
275 void operator<<= (Rapicorn::Aida::ProtoMsg&, const SrvT_MsgAbsorbStringSeq&);
276 void operator>>= (Rapicorn::Aida::ProtoReader&, SrvT_MsgAbsorbStringSeq&);
277 
279 {
281  std::string key_name;
282  std::string func_name;
283  double func_param;
285  inline SrvT_KeyBindingItem () { func_param = 0; }
286  std::string __aida_type_name__ () const { return "Bst::KeyBindingItem"; }
287  std::vector<std::string> __aida_aux_data__ () const;
288  Rapicorn::Aida::Any __aida_to_any__ () { return Rapicorn::any_from_visitable (*this); }
289  void __aida_from_any__ (const Rapicorn::Aida::Any &any) { return Rapicorn::any_to_visitable (any, *this); }
290  bool operator== (const SrvT_KeyBindingItem &other) const;
291  bool operator!= (const SrvT_KeyBindingItem &other) const { return !operator== (other); }
292  template<class Visitor> void __accept__ (Visitor &_visitor_)
293  {
294  _visitor_ (key_name, "key_name");
295  _visitor_ (func_name, "func_name");
296  _visitor_ (func_param, "func_param");
297  }
298 };
299 void operator<<= (Rapicorn::Aida::ProtoMsg&, const SrvT_KeyBindingItem&);
300 void operator>>= (Rapicorn::Aida::ProtoReader&, SrvT_KeyBindingItem&);
301 
302 struct SrvT_KeyBindingItemSeq : public std::vector<SrvT_KeyBindingItem>
303 {
305  reference append_back()
306  { resize (size() + 1); return back(); }
307  std::string __aida_type_name__ () const { return "Bst::KeyBindingItemSeq"; }
308  std::vector<std::string> __aida_aux_data__ () const;
309  Rapicorn::Aida::Any __aida_to_any__ () { return Rapicorn::any_from_sequence (*this); }
310  void __aida_from_any__ (const Rapicorn::Aida::Any &any) { return Rapicorn::any_to_sequence (any, *this); }
311 };
312 void operator<<= (Rapicorn::Aida::ProtoMsg&, const SrvT_KeyBindingItemSeq&);
313 void operator>>= (Rapicorn::Aida::ProtoReader&, SrvT_KeyBindingItemSeq&);
314 } // Bst
315 
316 // C++ Aliases
317 #ifndef __BST_IDL_ALIASES__
318 #define __BST_IDL_ALIASES__ 2
319 #endif
320 #if __BST_IDL_ALIASES__ == 2
321 namespace Bst {
322 typedef SrvT_GConfig GConfig;
323 typedef SrvT_SkinConfig SkinConfig;
324 typedef SrvT_MsgAbsorbString MsgAbsorbString;
325 typedef SrvT_MsgAbsorbStringSeq MsgAbsorbStringSeq;
326 typedef SrvT_KeyBindingItem KeyBindingItem;
327 typedef SrvT_KeyBindingItemSeq KeyBindingItemSeq;
328 } // Bst
329 #endif // __BST_IDL_ALIASES__
330 
331 #endif /* __SRVT__BST_IDL */
Definition: bstapi.idl:7
Definition: bstserverapi.cc:544
Definition: bstserverapi.hh:139
SrvT_MsgAbsorbString resize(SrvT_MsgAbsorbString...args)
STL class.
Definition: bstserverapi.hh:278
SrvT_MsgAbsorbString size(SrvT_MsgAbsorbString...args)
Definition: bstserverapi.hh:302
SrvT_MsgAbsorbString back(SrvT_MsgAbsorbString...args)
Definition: bstserverapi.hh:241
Definition: bstserverapi.hh:265
Definition: bstserverapi.hh:173