BEAST - Free Software Audio Synthesizer and Tracker  0.10.0
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 #define RAPICORN_AIDA_ENUM_DEFINE_ARITHMETIC_EQ(Enum) \
12  bool constexpr operator== (Enum v, int64_t n) { return int64_t (v) == n; } \
13  bool constexpr operator== (int64_t n, Enum v) { return n == int64_t (v); } \
14  bool constexpr operator!= (Enum v, int64_t n) { return int64_t (v) != n; } \
15  bool constexpr operator!= (int64_t n, Enum v) { return n != int64_t (v); }
16 #define RAPICORN_AIDA_FLAGS_DEFINE_ARITHMETIC_OPS(Enum) \
17  static constexpr int64_t operator>> (Enum v, int64_t n) { return int64_t (v) >> n; } \
18  static constexpr int64_t operator<< (Enum v, int64_t n) { return int64_t (v) << n; } \
19  static constexpr int64_t operator^ (Enum v, int64_t n) { return int64_t (v) ^ n; } \
20  static constexpr int64_t operator^ (int64_t n, Enum v) { return n ^ int64_t (v); } \
21  static constexpr int64_t operator| (Enum v, int64_t n) { return int64_t (v) | n; } \
22  static constexpr int64_t operator| (int64_t n, Enum v) { return n | int64_t (v); } \
23  static constexpr int64_t operator& (Enum v, int64_t n) { return int64_t (v) & n; } \
24  static constexpr int64_t operator& (int64_t n, Enum v) { return n & int64_t (v); } \
25  static constexpr int64_t operator~ (Enum v) { return ~int64_t (v); } \
26  static constexpr int64_t operator+ (Enum v) { return +int64_t (v); } \
27  static constexpr int64_t operator- (Enum v) { return -int64_t (v); } \
28  static constexpr int64_t operator+ (Enum v, int64_t n) { return int64_t (v) + n; } \
29  static constexpr int64_t operator+ (int64_t n, Enum v) { return n + int64_t (v); } \
30  static constexpr int64_t operator- (Enum v, int64_t n) { return int64_t (v) - n; } \
31  static constexpr int64_t operator- (int64_t n, Enum v) { return n - int64_t (v); } \
32  static constexpr int64_t operator* (Enum v, int64_t n) { return int64_t (v) * n; } \
33  static constexpr int64_t operator* (int64_t n, Enum v) { return n * int64_t (v); } \
34  static constexpr int64_t operator/ (Enum v, int64_t n) { return int64_t (v) / n; } \
35  static constexpr int64_t operator/ (int64_t n, Enum v) { return n / int64_t (v); } \
36  static constexpr int64_t operator% (Enum v, int64_t n) { return int64_t (v) % n; } \
37  static constexpr int64_t operator% (int64_t n, Enum v) { return n % int64_t (v); } \
38  RAPICORN_FIXCYTHON_ENUM (Enum)
39 #ifdef CYTHON_COMPILING_IN_CPYTHON
40 // Use C++ ADL, so PyInt_FromLong as generated by Cython works on scoped enums.
41 #define RAPICORN_FIXCYTHON_ENUM(Enum) \
42  extern inline PyObject* PyInt_FromLong (Enum __e_) { return ::PyInt_FromLong (long (__e_)); }
43 #else // !CYTHON_COMPILING_IN_CPYTHON
44 #define RAPICORN_FIXCYTHON_ENUM(Enum)
45 #endif // !CYTHON_COMPILING_IN_CPYTHON
46 #ifdef RAPICORN_AIDA_ENABLE_ENUM_ARITHMETIC
47 #define RAPICORN_AIDA_ENUM_DEFINE_ARITHMETIC_OPS RAPICORN_AIDA_FLAGS_DEFINE_ARITHMETIC_OPS
48 #else // !RAPICORN_AIDA_ENABLE_ENUM_ARITHMETIC
49 #define RAPICORN_AIDA_ENUM_DEFINE_ARITHMETIC_OPS(Enum) /* no arithmetic ops */
50 #endif // !RAPICORN_AIDA_ENABLE_ENUM_ARITHMETIC
51 
52 #ifndef __ENUMHH__BST_IDL__
53 #define __ENUMHH__BST_IDL__
54 
55 namespace Bst {
56 
58 enum class Direction : int64_t {
59  DIR_UP = 1, // _("Move upwards")
60  DIR_LEFT = 2, // _("Move to the left")
61  DIR_RIGHT = 3, // _("Move to the right")
62  DIR_DOWN = 4, // _("Move downwards")
63 };
64 inline void operator<<= (Rapicorn::Aida::ProtoMsg &__p_, Direction e) { __p_ <<= Rapicorn::Aida::EnumValue (e); }
65 inline void operator>>= (Rapicorn::Aida::ProtoReader &__f_, Direction &e) { e = Direction (__f_.pop_evalue()); }
66 RAPICORN_AIDA_ENUM_DEFINE_ARITHMETIC_EQ (Direction);
67 RAPICORN_AIDA_ENUM_DEFINE_ARITHMETIC_OPS (Direction);
69 
71 enum class FFTSize : int64_t {
72  FFT_SIZE_2 = 2, // _("A 2 value FFT window corresponds to a spectrum with 2 frequency peaks")
73  FFT_SIZE_4 = 4, // _("A 4 value FFT window corresponds to a spectrum with 3 frequency peaks")
74  FFT_SIZE_8 = 8, // _("A 8 value FFT window corresponds to a spectrum with 5 frequency peaks")
75  FFT_SIZE_16 = 16, // _("A 16 value FFT window corresponds to a spectrum with 9 frequency peaks")
76  FFT_SIZE_32 = 32, // _("A 32 value FFT window corresponds to a spectrum with 17 frequency peaks")
77  FFT_SIZE_64 = 64, // _("A 64 value FFT window corresponds to a spectrum with 33 frequency peaks")
78  FFT_SIZE_128 = 128, // _("A 128 value FFT window corresponds to a spectrum with 65 frequency peaks")
79  FFT_SIZE_256 = 256, // _("A 256 value FFT window corresponds to a spectrum with 129 frequency peaks")
80  FFT_SIZE_512 = 512, // _("A 512 value FFT window corresponds to a spectrum with 257 frequency peaks")
81  FFT_SIZE_1024 = 1024, // _("A 1024 value FFT window corresponds to a spectrum with 513 frequency peaks")
82  FFT_SIZE_2048 = 2048, // _("A 2048 value FFT window corresponds to a spectrum with 1025 frequency peaks")
83  FFT_SIZE_4096 = 4096, // _("A 4096 value FFT window corresponds to a spectrum with 2049 frequency peaks")
84  FFT_SIZE_8192 = 8192, // _("A 8192 value FFT window corresponds to a spectrum with 4097 frequency peaks")
85  FFT_SIZE_16384 = 16384, // _("A 16384 value FFT window corresponds to a spectrum with 8193 frequency peaks")
86  FFT_SIZE_32768 = 32768, // _("A 32768 value FFT window corresponds to a spectrum with 16385 frequency peaks")
87  FFT_SIZE_65536 = 65536, // _("A 65536 value FFT window corresponds to a spectrum with 32769 frequency peaks")
88 };
89 inline void operator<<= (Rapicorn::Aida::ProtoMsg &__p_, FFTSize e) { __p_ <<= Rapicorn::Aida::EnumValue (e); }
90 inline void operator>>= (Rapicorn::Aida::ProtoReader &__f_, FFTSize &e) { e = FFTSize (__f_.pop_evalue()); }
91 RAPICORN_AIDA_ENUM_DEFINE_ARITHMETIC_EQ (FFTSize);
92 RAPICORN_AIDA_ENUM_DEFINE_ARITHMETIC_OPS (FFTSize);
94 
96 enum class NoteLength : int64_t {
97  NOTE_LENGTH_NONE = 0, // _("Unspecified length")
98  NOTE_LENGTH_1 = 1, // _("Whole note")
99  NOTE_LENGTH_2 = 2, // _("Half note")
100  NOTE_LENGTH_4 = 3, // _("Quarter note")
101  NOTE_LENGTH_8 = 4, // _("Eighths note")
102  NOTE_LENGTH_16 = 5, // _("Sixteenth note")
103  NOTE_LENGTH_32 = 6, // _("Thirty-secondth note")
104  NOTE_LENGTH_64 = 7, // _("Sixty-fourth note")
105  NOTE_LENGTH_128 = 8, // _("Hundred twenty-eighth note")
106  NOTE_LENGTH_1P = 9, // _("Dotted whole note")
107  NOTE_LENGTH_2P = 10, // _("Dotted half note")
108  NOTE_LENGTH_4P = 11, // _("Dotted quarter note")
109  NOTE_LENGTH_8P = 12, // _("Dotted eighths note")
110  NOTE_LENGTH_16P = 13, // _("Dotted sixteenth note")
111  NOTE_LENGTH_32P = 14, // _("Dotted thirty-secondth note")
112  NOTE_LENGTH_64P = 15, // _("Dotted sixty-fourth note")
113  NOTE_LENGTH_128P = 16, // _("Dotted hundred twenty-eighth note")
114  NOTE_LENGTH_1T = 17, // _("Triplet whole note")
115  NOTE_LENGTH_2T = 18, // _("Triplet half note")
116  NOTE_LENGTH_4T = 19, // _("Triplet quarter note")
117  NOTE_LENGTH_8T = 20, // _("Triplet eighths note")
118  NOTE_LENGTH_16T = 21, // _("Triplet sixteenth note")
119  NOTE_LENGTH_32T = 22, // _("Triplet thirty-secondth note")
120  NOTE_LENGTH_64T = 23, // _("Triplet sixty-fourth note")
121  NOTE_LENGTH_128T = 24, // _("Triplet hundred twenty-eighth note")
122 };
123 inline void operator<<= (Rapicorn::Aida::ProtoMsg &__p_, NoteLength e) { __p_ <<= Rapicorn::Aida::EnumValue (e); }
124 inline void operator>>= (Rapicorn::Aida::ProtoReader &__f_, NoteLength &e) { e = NoteLength (__f_.pop_evalue()); }
125 RAPICORN_AIDA_ENUM_DEFINE_ARITHMETIC_EQ (NoteLength);
126 RAPICORN_AIDA_ENUM_DEFINE_ARITHMETIC_OPS (NoteLength);
128 
130 enum class QSamplerDrawMode : int64_t {
131  CRANGE = 1,
132  ZERO_SHAPE = 2,
133  MINIMUM_SHAPE = 3,
134  MAXIMUM_SHAPE = 4,
135  CSHAPE = 5,
136  MIDDLE_LINE = 6,
137  MINIMUM_LINE = 7,
138  MAXIMUM_LINE = 8,
139 };
140 inline void operator<<= (Rapicorn::Aida::ProtoMsg &__p_, QSamplerDrawMode e) { __p_ <<= Rapicorn::Aida::EnumValue (e); }
141 inline void operator>>= (Rapicorn::Aida::ProtoReader &__f_, QSamplerDrawMode &e) { e = QSamplerDrawMode (__f_.pop_evalue()); }
142 RAPICORN_AIDA_ENUM_DEFINE_ARITHMETIC_EQ (QSamplerDrawMode);
143 RAPICORN_AIDA_ENUM_DEFINE_ARITHMETIC_OPS (QSamplerDrawMode);
145 
147 enum class RowShading : int64_t {
148  ROW_SHADING_NONE = 0,
149  ROW_SHADING_2 = 1, // _("Every second row")
150  ROW_SHADING_4 = 2, // _("Every fourth row")
151  ROW_SHADING_8 = 3, // _("Every eighth row")
152  ROW_SHADING_16 = 4, // _("Every sixteenth row")
153  ROW_SHADING_2_4 = 5, // _("Every second and fourth row")
154  ROW_SHADING_4_8 = 6, // _("Every fourth and eighth row")
155  ROW_SHADING_4_12 = 7, // _("Every fourth and twelfth row")
156  ROW_SHADING_4_16 = 8, // _("Every fourth and sixteenth row")
157  ROW_SHADING_8_16 = 9, // _("Every eighth and sixteenth row")
158  ROW_SHADING_3 = 10, // _("Every third row")
159  ROW_SHADING_6 = 11, // _("Every sixth row")
160  ROW_SHADING_12 = 12, // _("Every twelfth row")
161  ROW_SHADING_3_6 = 13, // _("Every third and sixth row")
162  ROW_SHADING_3_12 = 14, // _("Every third and twelfth row")
163  ROW_SHADING_6_12 = 15, // _("Every sixth and twelfth row")
164 };
165 inline void operator<<= (Rapicorn::Aida::ProtoMsg &__p_, RowShading e) { __p_ <<= Rapicorn::Aida::EnumValue (e); }
166 inline void operator>>= (Rapicorn::Aida::ProtoReader &__f_, RowShading &e) { e = RowShading (__f_.pop_evalue()); }
167 RAPICORN_AIDA_ENUM_DEFINE_ARITHMETIC_EQ (RowShading);
168 RAPICORN_AIDA_ENUM_DEFINE_ARITHMETIC_OPS (RowShading);
170 } // Bst
171 
172 namespace Rapicorn {
173 
174 namespace Aida {
175 template<> const EnumInfo& enum_info<Bst::Direction> ();
176 template<> const EnumInfo& enum_info<Bst::FFTSize> ();
177 template<> const EnumInfo& enum_info<Bst::NoteLength> ();
178 template<> const EnumInfo& enum_info<Bst::QSamplerDrawMode> ();
179 template<> const EnumInfo& enum_info<Bst::RowShading> ();
180 } // Aida
181 } // Rapicorn
182 
183 #endif // __ENUMHH__BST_IDL__
184 
185 
186 // --- Interfaces (class declarations) ---
187 
188 namespace Bst {
189 
191 {
193  std::string rc_version;
194  int snet_font_size;
195  bool snet_anti_aliased;
196  bool snet_edit_fallback;
197  bool snet_swap_io_channels;
198  bool gui_enable_error_bell;
199  bool size_group_input_fields;
200  bool slow_scopes;
202  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; }
203  std::string __aida_type_name__ () const { return "Bst::GConfig"; }
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_GConfig &other) const;
208  bool operator!= (const SrvT_GConfig &other) const { return !operator== (other); }
209  template<class Visitor> void __accept__ (Visitor &_visitor_)
210  {
211  _visitor_ (rc_version, "rc_version");
212  _visitor_ (snet_font_size, "snet_font_size");
213  _visitor_ (snet_anti_aliased, "snet_anti_aliased");
214  _visitor_ (snet_edit_fallback, "snet_edit_fallback");
215  _visitor_ (snet_swap_io_channels, "snet_swap_io_channels");
216  _visitor_ (gui_enable_error_bell, "gui_enable_error_bell");
217  _visitor_ (size_group_input_fields, "size_group_input_fields");
218  _visitor_ (slow_scopes, "slow_scopes");
219  }
220 };
221 void operator<<= (Rapicorn::Aida::ProtoMsg&, const SrvT_GConfig&);
222 void operator>>= (Rapicorn::Aida::ProtoReader&, SrvT_GConfig&);
223 
225 {
227  std::string skin_name;
228  std::string pattern_image;
229  double pattern_shade;
230  int pattern_color;
231  int pattern_scolor1;
232  int pattern_scolor2;
233  int pattern_text0;
234  int pattern_text1;
235  int pattern_vbar1;
236  std::string piano_image;
237  double piano_shade;
238  int piano_color;
239  int piano_hbar;
240  int piano_vbar;
241  int piano_hgrid;
242  int piano_vgrid;
243  int piano_mbar;
244  std::string controls_image;
245  double controls_shade;
246  int controls_color;
247  int controls_hbar;
248  int controls_mbar;
249  int controls_positive;
250  int controls_zero;
251  int controls_negative;
253  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; }
254  std::string __aida_type_name__ () const { return "Bst::SkinConfig"; }
255  std::vector<std::string> __aida_aux_data__ () const;
256  Rapicorn::Aida::Any __aida_to_any__ () { return Rapicorn::any_from_visitable (*this); }
257  void __aida_from_any__ (const Rapicorn::Aida::Any &any) { return Rapicorn::any_to_visitable (any, *this); }
258  bool operator== (const SrvT_SkinConfig &other) const;
259  bool operator!= (const SrvT_SkinConfig &other) const { return !operator== (other); }
260  template<class Visitor> void __accept__ (Visitor &_visitor_)
261  {
262  _visitor_ (skin_name, "skin_name");
263  _visitor_ (pattern_image, "pattern_image");
264  _visitor_ (pattern_shade, "pattern_shade");
265  _visitor_ (pattern_color, "pattern_color");
266  _visitor_ (pattern_scolor1, "pattern_scolor1");
267  _visitor_ (pattern_scolor2, "pattern_scolor2");
268  _visitor_ (pattern_text0, "pattern_text0");
269  _visitor_ (pattern_text1, "pattern_text1");
270  _visitor_ (pattern_vbar1, "pattern_vbar1");
271  _visitor_ (piano_image, "piano_image");
272  _visitor_ (piano_shade, "piano_shade");
273  _visitor_ (piano_color, "piano_color");
274  _visitor_ (piano_hbar, "piano_hbar");
275  _visitor_ (piano_vbar, "piano_vbar");
276  _visitor_ (piano_hgrid, "piano_hgrid");
277  _visitor_ (piano_vgrid, "piano_vgrid");
278  _visitor_ (piano_mbar, "piano_mbar");
279  _visitor_ (controls_image, "controls_image");
280  _visitor_ (controls_shade, "controls_shade");
281  _visitor_ (controls_color, "controls_color");
282  _visitor_ (controls_hbar, "controls_hbar");
283  _visitor_ (controls_mbar, "controls_mbar");
284  _visitor_ (controls_positive, "controls_positive");
285  _visitor_ (controls_zero, "controls_zero");
286  _visitor_ (controls_negative, "controls_negative");
287  }
288 };
289 void operator<<= (Rapicorn::Aida::ProtoMsg&, const SrvT_SkinConfig&);
290 void operator>>= (Rapicorn::Aida::ProtoReader&, SrvT_SkinConfig&);
291 
293 {
295  std::string version;
296  std::string cstring;
297  bool enabled;
299  inline SrvT_MsgAbsorbString () { enabled = 0; }
300  std::string __aida_type_name__ () const { return "Bst::MsgAbsorbString"; }
301  std::vector<std::string> __aida_aux_data__ () const;
302  Rapicorn::Aida::Any __aida_to_any__ () { return Rapicorn::any_from_visitable (*this); }
303  void __aida_from_any__ (const Rapicorn::Aida::Any &any) { return Rapicorn::any_to_visitable (any, *this); }
304  bool operator== (const SrvT_MsgAbsorbString &other) const;
305  bool operator!= (const SrvT_MsgAbsorbString &other) const { return !operator== (other); }
306  template<class Visitor> void __accept__ (Visitor &_visitor_)
307  {
308  _visitor_ (version, "version");
309  _visitor_ (cstring, "cstring");
310  _visitor_ (enabled, "enabled");
311  }
312 };
313 void operator<<= (Rapicorn::Aida::ProtoMsg&, const SrvT_MsgAbsorbString&);
314 void operator>>= (Rapicorn::Aida::ProtoReader&, SrvT_MsgAbsorbString&);
315 
316 struct SrvT_MsgAbsorbStringSeq : public std::vector<SrvT_MsgAbsorbString>
317 {
319  reference append_back()
320  { resize (size() + 1); return back(); }
321  std::string __aida_type_name__ () const { return "Bst::MsgAbsorbStringSeq"; }
322  std::vector<std::string> __aida_aux_data__ () const;
323  Rapicorn::Aida::Any __aida_to_any__ () { return Rapicorn::any_from_sequence (*this); }
324  void __aida_from_any__ (const Rapicorn::Aida::Any &any) { return Rapicorn::any_to_sequence (any, *this); }
325 };
326 void operator<<= (Rapicorn::Aida::ProtoMsg&, const SrvT_MsgAbsorbStringSeq&);
327 void operator>>= (Rapicorn::Aida::ProtoReader&, SrvT_MsgAbsorbStringSeq&);
328 
330 {
332  std::string key_name;
333  std::string func_name;
334  double func_param;
336  inline SrvT_KeyBindingItem () { func_param = 0; }
337  std::string __aida_type_name__ () const { return "Bst::KeyBindingItem"; }
338  std::vector<std::string> __aida_aux_data__ () const;
339  Rapicorn::Aida::Any __aida_to_any__ () { return Rapicorn::any_from_visitable (*this); }
340  void __aida_from_any__ (const Rapicorn::Aida::Any &any) { return Rapicorn::any_to_visitable (any, *this); }
341  bool operator== (const SrvT_KeyBindingItem &other) const;
342  bool operator!= (const SrvT_KeyBindingItem &other) const { return !operator== (other); }
343  template<class Visitor> void __accept__ (Visitor &_visitor_)
344  {
345  _visitor_ (key_name, "key_name");
346  _visitor_ (func_name, "func_name");
347  _visitor_ (func_param, "func_param");
348  }
349 };
350 void operator<<= (Rapicorn::Aida::ProtoMsg&, const SrvT_KeyBindingItem&);
351 void operator>>= (Rapicorn::Aida::ProtoReader&, SrvT_KeyBindingItem&);
352 
353 struct SrvT_KeyBindingItemSeq : public std::vector<SrvT_KeyBindingItem>
354 {
356  reference append_back()
357  { resize (size() + 1); return back(); }
358  std::string __aida_type_name__ () const { return "Bst::KeyBindingItemSeq"; }
359  std::vector<std::string> __aida_aux_data__ () const;
360  Rapicorn::Aida::Any __aida_to_any__ () { return Rapicorn::any_from_sequence (*this); }
361  void __aida_from_any__ (const Rapicorn::Aida::Any &any) { return Rapicorn::any_to_sequence (any, *this); }
362 };
363 void operator<<= (Rapicorn::Aida::ProtoMsg&, const SrvT_KeyBindingItemSeq&);
364 void operator>>= (Rapicorn::Aida::ProtoReader&, SrvT_KeyBindingItemSeq&);
365 } // Bst
366 
367 // C++ Aliases
368 #ifndef __BST_IDL_ALIASES__
369 #define __BST_IDL_ALIASES__ 2
370 #endif
371 #if __BST_IDL_ALIASES__ == 2
372 namespace Bst {
373 typedef SrvT_GConfig GConfig;
374 typedef SrvT_SkinConfig SkinConfig;
375 typedef SrvT_MsgAbsorbString MsgAbsorbString;
376 typedef SrvT_MsgAbsorbStringSeq MsgAbsorbStringSeq;
377 typedef SrvT_KeyBindingItem KeyBindingItem;
378 typedef SrvT_KeyBindingItemSeq KeyBindingItemSeq;
379 } // Bst
380 #endif // __BST_IDL_ALIASES__
381 
382 #endif /* __SRVT__BST_IDL */
Definition: bstapi.idl:7
Definition: bstserverapi.cc:585
Definition: bstserverapi.hh:190
typedef int64_t
SrvT_MsgAbsorbString resize(SrvT_MsgAbsorbString...args)
STL class.
Definition: bstserverapi.hh:329
SrvT_MsgAbsorbString size(SrvT_MsgAbsorbString...args)
Definition: bstserverapi.hh:353
SrvT_MsgAbsorbString back(SrvT_MsgAbsorbString...args)
Definition: bstserverapi.hh:292
Definition: bstserverapi.hh:316
Definition: bstserverapi.hh:224