Fawkes API  Fawkes Development Version
fawkesinterface_tolua.cpp
1 /*
2 ** Lua binding: fawkesinterface
3 ** Generated automatically by tolua++-1.0.92
4 */
5 /* This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version. A runtime exception applies to
9  * this software (see LICENSE.GPL_WRE file mentioned below for details).
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU Library General Public License for more details.
15  *
16  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
17  */
18 
19 #include <core/exception.h>
20 
21 #ifndef __cplusplus
22 #include "stdlib.h"
23 #endif
24 #include "string.h"
25 
26 #include "tolua++.h"
27 
28 /* Exported function */
29 TOLUA_API int tolua_fawkesinterface_open (lua_State* tolua_S);
30 
31 #include <interface/interface.h>
32 #include <utils/time/time.h>
33 #include <utils/time/clock.h>
34 #include <interface/message.h>
35 #include <interface/message_queue.h>
36 
37 /* function to release collected object via destructor */
38 #ifdef __cplusplus
39 
40 static int tolua_collect_fawkes__MessageQueue__MessageIterator (lua_State* tolua_S)
41 {
43  Mtolua_delete(self);
44  return 0;
45 }
46 
47 static int tolua_collect_fawkes__Message (lua_State* tolua_S)
48 {
49  fawkes::Message* self = (fawkes::Message*) tolua_tousertype(tolua_S,1,0);
50  Mtolua_delete(self);
51  return 0;
52 }
53 
54 static int tolua_collect_fawkes__MessageQueue (lua_State* tolua_S)
55 {
56  fawkes::MessageQueue* self = (fawkes::MessageQueue*) tolua_tousertype(tolua_S,1,0);
57  Mtolua_delete(self);
58  return 0;
59 }
60 
61 static int tolua_collect_size_t (lua_State* tolua_S)
62 {
63  size_t* self = (size_t*) tolua_tousertype(tolua_S,1,0);
64  Mtolua_delete(self);
65  return 0;
66 }
67 #endif
68 
69 
70 /* function to register type */
71 static void tolua_reg_types (lua_State* tolua_S)
72 {
73  tolua_usertype(tolua_S,"fawkes::MessageQueue::MessageIterator");
74  tolua_usertype(tolua_S,"fawkes::Message");
75  tolua_usertype(tolua_S,"fawkes::Clock");
76  tolua_usertype(tolua_S,"fawkes::Interface");
77  tolua_usertype(tolua_S,"fawkes::MessageQueue");
78  tolua_usertype(tolua_S,"RefCount");
79  tolua_usertype(tolua_S,"fawkes::Time");
80  tolua_usertype(tolua_S,"size_t");
81 }
82 
83 /* method: oftype of class fawkes::Interface */
84 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_oftype00
85 static int tolua_fawkesinterface_fawkes_Interface_oftype00(lua_State* tolua_S)
86 {
87 #ifndef TOLUA_RELEASE
88  tolua_Error tolua_err;
89  if (
90  !tolua_isusertype(tolua_S,1,"const fawkes::Interface",0,&tolua_err) ||
91  !tolua_isstring(tolua_S,2,0,&tolua_err) ||
92  !tolua_isnoobj(tolua_S,3,&tolua_err)
93  )
94  goto tolua_lerror;
95  else
96 #endif
97  {
98  const fawkes::Interface* self = (const fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
99  const char* interface_type = ((const char*) tolua_tostring(tolua_S,2,0));
100 #ifndef TOLUA_RELEASE
101  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'oftype'", NULL);
102 #endif
103  bool exc_caught = false;
104  try {
105  {
106  bool tolua_ret = (bool) self->oftype(interface_type);
107  tolua_pushboolean(tolua_S,(bool)tolua_ret);
108  }
109  } catch (fawkes::Exception &e) {
110  exc_caught = true;
111  lua_pushstring(tolua_S, e.what_no_backtrace());
112  }
113  catch (std::exception &e) {
114  exc_caught = true;
115  lua_pushstring(tolua_S, e.what());
116  }
117  if (exc_caught) lua_error(tolua_S);
118 
119  }
120  return 1;
121 #ifndef TOLUA_RELEASE
122  tolua_lerror:
123  tolua_error(tolua_S,"#ferror in function 'oftype'.",&tolua_err);
124  return 0;
125 #endif
126 }
127 #endif //#ifndef TOLUA_DISABLE
128 
129 /* method: datachunk of class fawkes::Interface */
130 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_datachunk00
131 static int tolua_fawkesinterface_fawkes_Interface_datachunk00(lua_State* tolua_S)
132 {
133 #ifndef TOLUA_RELEASE
134  tolua_Error tolua_err;
135  if (
136  !tolua_isusertype(tolua_S,1,"const fawkes::Interface",0,&tolua_err) ||
137  !tolua_isnoobj(tolua_S,2,&tolua_err)
138  )
139  goto tolua_lerror;
140  else
141 #endif
142  {
143  const fawkes::Interface* self = (const fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
144 #ifndef TOLUA_RELEASE
145  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'datachunk'", NULL);
146 #endif
147  bool exc_caught = false;
148  try {
149  {
150  const void* tolua_ret = (const void*) self->datachunk();
151  tolua_pushuserdata(tolua_S,(void*)tolua_ret);
152  }
153  } catch (fawkes::Exception &e) {
154  exc_caught = true;
155  lua_pushstring(tolua_S, e.what_no_backtrace());
156  }
157  catch (std::exception &e) {
158  exc_caught = true;
159  lua_pushstring(tolua_S, e.what());
160  }
161  if (exc_caught) lua_error(tolua_S);
162 
163  }
164  return 1;
165 #ifndef TOLUA_RELEASE
166  tolua_lerror:
167  tolua_error(tolua_S,"#ferror in function 'datachunk'.",&tolua_err);
168  return 0;
169 #endif
170 }
171 #endif //#ifndef TOLUA_DISABLE
172 
173 /* method: datasize of class fawkes::Interface */
174 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_datasize00
175 static int tolua_fawkesinterface_fawkes_Interface_datasize00(lua_State* tolua_S)
176 {
177 #ifndef TOLUA_RELEASE
178  tolua_Error tolua_err;
179  if (
180  !tolua_isusertype(tolua_S,1,"const fawkes::Interface",0,&tolua_err) ||
181  !tolua_isnoobj(tolua_S,2,&tolua_err)
182  )
183  goto tolua_lerror;
184  else
185 #endif
186  {
187  const fawkes::Interface* self = (const fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
188 #ifndef TOLUA_RELEASE
189  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'datasize'", NULL);
190 #endif
191  bool exc_caught = false;
192  try {
193  {
194  unsigned int tolua_ret = (unsigned int) self->datasize();
195  tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
196  }
197  } catch (fawkes::Exception &e) {
198  exc_caught = true;
199  lua_pushstring(tolua_S, e.what_no_backtrace());
200  }
201  catch (std::exception &e) {
202  exc_caught = true;
203  lua_pushstring(tolua_S, e.what());
204  }
205  if (exc_caught) lua_error(tolua_S);
206 
207  }
208  return 1;
209 #ifndef TOLUA_RELEASE
210  tolua_lerror:
211  tolua_error(tolua_S,"#ferror in function 'datasize'.",&tolua_err);
212  return 0;
213 #endif
214 }
215 #endif //#ifndef TOLUA_DISABLE
216 
217 /* method: type of class fawkes::Interface */
218 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_type00
219 static int tolua_fawkesinterface_fawkes_Interface_type00(lua_State* tolua_S)
220 {
221 #ifndef TOLUA_RELEASE
222  tolua_Error tolua_err;
223  if (
224  !tolua_isusertype(tolua_S,1,"const fawkes::Interface",0,&tolua_err) ||
225  !tolua_isnoobj(tolua_S,2,&tolua_err)
226  )
227  goto tolua_lerror;
228  else
229 #endif
230  {
231  const fawkes::Interface* self = (const fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
232 #ifndef TOLUA_RELEASE
233  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'type'", NULL);
234 #endif
235  bool exc_caught = false;
236  try {
237  {
238  const char* tolua_ret = (const char*) self->type();
239  tolua_pushstring(tolua_S,(const char*)tolua_ret);
240  }
241  } catch (fawkes::Exception &e) {
242  exc_caught = true;
243  lua_pushstring(tolua_S, e.what_no_backtrace());
244  }
245  catch (std::exception &e) {
246  exc_caught = true;
247  lua_pushstring(tolua_S, e.what());
248  }
249  if (exc_caught) lua_error(tolua_S);
250 
251  }
252  return 1;
253 #ifndef TOLUA_RELEASE
254  tolua_lerror:
255  tolua_error(tolua_S,"#ferror in function 'type'.",&tolua_err);
256  return 0;
257 #endif
258 }
259 #endif //#ifndef TOLUA_DISABLE
260 
261 /* method: id of class fawkes::Interface */
262 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_id00
263 static int tolua_fawkesinterface_fawkes_Interface_id00(lua_State* tolua_S)
264 {
265 #ifndef TOLUA_RELEASE
266  tolua_Error tolua_err;
267  if (
268  !tolua_isusertype(tolua_S,1,"const fawkes::Interface",0,&tolua_err) ||
269  !tolua_isnoobj(tolua_S,2,&tolua_err)
270  )
271  goto tolua_lerror;
272  else
273 #endif
274  {
275  const fawkes::Interface* self = (const fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
276 #ifndef TOLUA_RELEASE
277  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'id'", NULL);
278 #endif
279  bool exc_caught = false;
280  try {
281  {
282  const char* tolua_ret = (const char*) self->id();
283  tolua_pushstring(tolua_S,(const char*)tolua_ret);
284  }
285  } catch (fawkes::Exception &e) {
286  exc_caught = true;
287  lua_pushstring(tolua_S, e.what_no_backtrace());
288  }
289  catch (std::exception &e) {
290  exc_caught = true;
291  lua_pushstring(tolua_S, e.what());
292  }
293  if (exc_caught) lua_error(tolua_S);
294 
295  }
296  return 1;
297 #ifndef TOLUA_RELEASE
298  tolua_lerror:
299  tolua_error(tolua_S,"#ferror in function 'id'.",&tolua_err);
300  return 0;
301 #endif
302 }
303 #endif //#ifndef TOLUA_DISABLE
304 
305 /* method: uid of class fawkes::Interface */
306 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_uid00
307 static int tolua_fawkesinterface_fawkes_Interface_uid00(lua_State* tolua_S)
308 {
309 #ifndef TOLUA_RELEASE
310  tolua_Error tolua_err;
311  if (
312  !tolua_isusertype(tolua_S,1,"const fawkes::Interface",0,&tolua_err) ||
313  !tolua_isnoobj(tolua_S,2,&tolua_err)
314  )
315  goto tolua_lerror;
316  else
317 #endif
318  {
319  const fawkes::Interface* self = (const fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
320 #ifndef TOLUA_RELEASE
321  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'uid'", NULL);
322 #endif
323  bool exc_caught = false;
324  try {
325  {
326  const char* tolua_ret = (const char*) self->uid();
327  tolua_pushstring(tolua_S,(const char*)tolua_ret);
328  }
329  } catch (fawkes::Exception &e) {
330  exc_caught = true;
331  lua_pushstring(tolua_S, e.what_no_backtrace());
332  }
333  catch (std::exception &e) {
334  exc_caught = true;
335  lua_pushstring(tolua_S, e.what());
336  }
337  if (exc_caught) lua_error(tolua_S);
338 
339  }
340  return 1;
341 #ifndef TOLUA_RELEASE
342  tolua_lerror:
343  tolua_error(tolua_S,"#ferror in function 'uid'.",&tolua_err);
344  return 0;
345 #endif
346 }
347 #endif //#ifndef TOLUA_DISABLE
348 
349 /* method: serial of class fawkes::Interface */
350 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_serial00
351 static int tolua_fawkesinterface_fawkes_Interface_serial00(lua_State* tolua_S)
352 {
353 #ifndef TOLUA_RELEASE
354  tolua_Error tolua_err;
355  if (
356  !tolua_isusertype(tolua_S,1,"const fawkes::Interface",0,&tolua_err) ||
357  !tolua_isnoobj(tolua_S,2,&tolua_err)
358  )
359  goto tolua_lerror;
360  else
361 #endif
362  {
363  const fawkes::Interface* self = (const fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
364 #ifndef TOLUA_RELEASE
365  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'serial'", NULL);
366 #endif
367  bool exc_caught = false;
368  try {
369  {
370  unsigned int tolua_ret = (unsigned int) self->serial();
371  tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
372  }
373  } catch (fawkes::Exception &e) {
374  exc_caught = true;
375  lua_pushstring(tolua_S, e.what_no_backtrace());
376  }
377  catch (std::exception &e) {
378  exc_caught = true;
379  lua_pushstring(tolua_S, e.what());
380  }
381  if (exc_caught) lua_error(tolua_S);
382 
383  }
384  return 1;
385 #ifndef TOLUA_RELEASE
386  tolua_lerror:
387  tolua_error(tolua_S,"#ferror in function 'serial'.",&tolua_err);
388  return 0;
389 #endif
390 }
391 #endif //#ifndef TOLUA_DISABLE
392 
393 /* method: mem_serial of class fawkes::Interface */
394 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_mem_serial00
395 static int tolua_fawkesinterface_fawkes_Interface_mem_serial00(lua_State* tolua_S)
396 {
397 #ifndef TOLUA_RELEASE
398  tolua_Error tolua_err;
399  if (
400  !tolua_isusertype(tolua_S,1,"const fawkes::Interface",0,&tolua_err) ||
401  !tolua_isnoobj(tolua_S,2,&tolua_err)
402  )
403  goto tolua_lerror;
404  else
405 #endif
406  {
407  const fawkes::Interface* self = (const fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
408 #ifndef TOLUA_RELEASE
409  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'mem_serial'", NULL);
410 #endif
411  bool exc_caught = false;
412  try {
413  {
414  unsigned int tolua_ret = (unsigned int) self->mem_serial();
415  tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
416  }
417  } catch (fawkes::Exception &e) {
418  exc_caught = true;
419  lua_pushstring(tolua_S, e.what_no_backtrace());
420  }
421  catch (std::exception &e) {
422  exc_caught = true;
423  lua_pushstring(tolua_S, e.what());
424  }
425  if (exc_caught) lua_error(tolua_S);
426 
427  }
428  return 1;
429 #ifndef TOLUA_RELEASE
430  tolua_lerror:
431  tolua_error(tolua_S,"#ferror in function 'mem_serial'.",&tolua_err);
432  return 0;
433 #endif
434 }
435 #endif //#ifndef TOLUA_DISABLE
436 
437 /* method: operator== of class fawkes::Interface */
438 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface__eq00
439 static int tolua_fawkesinterface_fawkes_Interface__eq00(lua_State* tolua_S)
440 {
441 #ifndef TOLUA_RELEASE
442  tolua_Error tolua_err;
443  if (
444  !tolua_isusertype(tolua_S,1,"const fawkes::Interface",0,&tolua_err) ||
445  (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"fawkes::Interface",0,&tolua_err)) ||
446  !tolua_isnoobj(tolua_S,3,&tolua_err)
447  )
448  goto tolua_lerror;
449  else
450 #endif
451  {
452  const fawkes::Interface* self = (const fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
453  fawkes::Interface* comp = ((fawkes::Interface*) tolua_tousertype(tolua_S,2,0));
454 #ifndef TOLUA_RELEASE
455  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL);
456 #endif
457  bool exc_caught = false;
458  try {
459  {
460  bool tolua_ret = (bool) self->operator==(*comp);
461  tolua_pushboolean(tolua_S,(bool)tolua_ret);
462  }
463  } catch (fawkes::Exception &e) {
464  exc_caught = true;
465  lua_pushstring(tolua_S, e.what_no_backtrace());
466  }
467  catch (std::exception &e) {
468  exc_caught = true;
469  lua_pushstring(tolua_S, e.what());
470  }
471  if (exc_caught) lua_error(tolua_S);
472 
473  }
474  return 1;
475 #ifndef TOLUA_RELEASE
476  tolua_lerror:
477  tolua_error(tolua_S,"#ferror in function '.eq'.",&tolua_err);
478  return 0;
479 #endif
480 }
481 #endif //#ifndef TOLUA_DISABLE
482 
483 /* method: hash of class fawkes::Interface */
484 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_hash00
485 static int tolua_fawkesinterface_fawkes_Interface_hash00(lua_State* tolua_S)
486 {
487 #ifndef TOLUA_RELEASE
488  tolua_Error tolua_err;
489  if (
490  !tolua_isusertype(tolua_S,1,"const fawkes::Interface",0,&tolua_err) ||
491  !tolua_isnoobj(tolua_S,2,&tolua_err)
492  )
493  goto tolua_lerror;
494  else
495 #endif
496  {
497  const fawkes::Interface* self = (const fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
498 #ifndef TOLUA_RELEASE
499  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'hash'", NULL);
500 #endif
501  bool exc_caught = false;
502  try {
503  {
504  unsigned const char* tolua_ret = ( unsigned const char*) self->hash();
505  tolua_pushstring(tolua_S,(const char*)tolua_ret);
506  }
507  } catch (fawkes::Exception &e) {
508  exc_caught = true;
509  lua_pushstring(tolua_S, e.what_no_backtrace());
510  }
511  catch (std::exception &e) {
512  exc_caught = true;
513  lua_pushstring(tolua_S, e.what());
514  }
515  if (exc_caught) lua_error(tolua_S);
516 
517  }
518  return 1;
519 #ifndef TOLUA_RELEASE
520  tolua_lerror:
521  tolua_error(tolua_S,"#ferror in function 'hash'.",&tolua_err);
522  return 0;
523 #endif
524 }
525 #endif //#ifndef TOLUA_DISABLE
526 
527 /* method: hash_size of class fawkes::Interface */
528 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_hash_size00
529 static int tolua_fawkesinterface_fawkes_Interface_hash_size00(lua_State* tolua_S)
530 {
531 #ifndef TOLUA_RELEASE
532  tolua_Error tolua_err;
533  if (
534  !tolua_isusertype(tolua_S,1,"const fawkes::Interface",0,&tolua_err) ||
535  !tolua_isnoobj(tolua_S,2,&tolua_err)
536  )
537  goto tolua_lerror;
538  else
539 #endif
540  {
541  const fawkes::Interface* self = (const fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
542 #ifndef TOLUA_RELEASE
543  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'hash_size'", NULL);
544 #endif
545  bool exc_caught = false;
546  try {
547  {
548  size_t tolua_ret = (size_t) self->hash_size();
549  {
550 #ifdef __cplusplus
551  void* tolua_obj = Mtolua_new((size_t)(tolua_ret));
552  tolua_pushusertype(tolua_S,tolua_obj,"size_t");
553  tolua_register_gc(tolua_S,lua_gettop(tolua_S));
554 #else
555  void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(size_t));
556  tolua_pushusertype(tolua_S,tolua_obj,"size_t");
557  tolua_register_gc(tolua_S,lua_gettop(tolua_S));
558 #endif
559  }
560  }
561  } catch (fawkes::Exception &e) {
562  exc_caught = true;
563  lua_pushstring(tolua_S, e.what_no_backtrace());
564  }
565  catch (std::exception &e) {
566  exc_caught = true;
567  lua_pushstring(tolua_S, e.what());
568  }
569  if (exc_caught) lua_error(tolua_S);
570 
571  }
572  return 1;
573 #ifndef TOLUA_RELEASE
574  tolua_lerror:
575  tolua_error(tolua_S,"#ferror in function 'hash_size'.",&tolua_err);
576  return 0;
577 #endif
578 }
579 #endif //#ifndef TOLUA_DISABLE
580 
581 /* method: hash_printable of class fawkes::Interface */
582 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_hash_printable00
583 static int tolua_fawkesinterface_fawkes_Interface_hash_printable00(lua_State* tolua_S)
584 {
585 #ifndef TOLUA_RELEASE
586  tolua_Error tolua_err;
587  if (
588  !tolua_isusertype(tolua_S,1,"const fawkes::Interface",0,&tolua_err) ||
589  !tolua_isnoobj(tolua_S,2,&tolua_err)
590  )
591  goto tolua_lerror;
592  else
593 #endif
594  {
595  const fawkes::Interface* self = (const fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
596 #ifndef TOLUA_RELEASE
597  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'hash_printable'", NULL);
598 #endif
599  bool exc_caught = false;
600  try {
601  {
602  const char* tolua_ret = (const char*) self->hash_printable();
603  tolua_pushstring(tolua_S,(const char*)tolua_ret);
604  }
605  } catch (fawkes::Exception &e) {
606  exc_caught = true;
607  lua_pushstring(tolua_S, e.what_no_backtrace());
608  }
609  catch (std::exception &e) {
610  exc_caught = true;
611  lua_pushstring(tolua_S, e.what());
612  }
613  if (exc_caught) lua_error(tolua_S);
614 
615  }
616  return 1;
617 #ifndef TOLUA_RELEASE
618  tolua_lerror:
619  tolua_error(tolua_S,"#ferror in function 'hash_printable'.",&tolua_err);
620  return 0;
621 #endif
622 }
623 #endif //#ifndef TOLUA_DISABLE
624 
625 /* method: is_writer of class fawkes::Interface */
626 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_is_writer00
627 static int tolua_fawkesinterface_fawkes_Interface_is_writer00(lua_State* tolua_S)
628 {
629 #ifndef TOLUA_RELEASE
630  tolua_Error tolua_err;
631  if (
632  !tolua_isusertype(tolua_S,1,"const fawkes::Interface",0,&tolua_err) ||
633  !tolua_isnoobj(tolua_S,2,&tolua_err)
634  )
635  goto tolua_lerror;
636  else
637 #endif
638  {
639  const fawkes::Interface* self = (const fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
640 #ifndef TOLUA_RELEASE
641  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'is_writer'", NULL);
642 #endif
643  bool exc_caught = false;
644  try {
645  {
646  bool tolua_ret = (bool) self->is_writer();
647  tolua_pushboolean(tolua_S,(bool)tolua_ret);
648  }
649  } catch (fawkes::Exception &e) {
650  exc_caught = true;
651  lua_pushstring(tolua_S, e.what_no_backtrace());
652  }
653  catch (std::exception &e) {
654  exc_caught = true;
655  lua_pushstring(tolua_S, e.what());
656  }
657  if (exc_caught) lua_error(tolua_S);
658 
659  }
660  return 1;
661 #ifndef TOLUA_RELEASE
662  tolua_lerror:
663  tolua_error(tolua_S,"#ferror in function 'is_writer'.",&tolua_err);
664  return 0;
665 #endif
666 }
667 #endif //#ifndef TOLUA_DISABLE
668 
669 /* method: set_from_chunk of class fawkes::Interface */
670 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_set_from_chunk00
671 static int tolua_fawkesinterface_fawkes_Interface_set_from_chunk00(lua_State* tolua_S)
672 {
673 #ifndef TOLUA_RELEASE
674  tolua_Error tolua_err;
675  if (
676  !tolua_isusertype(tolua_S,1,"fawkes::Interface",0,&tolua_err) ||
677  !tolua_isuserdata(tolua_S,2,0,&tolua_err) ||
678  !tolua_isnoobj(tolua_S,3,&tolua_err)
679  )
680  goto tolua_lerror;
681  else
682 #endif
683  {
684  fawkes::Interface* self = (fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
685  void* chunk = ((void*) tolua_touserdata(tolua_S,2,0));
686 #ifndef TOLUA_RELEASE
687  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_from_chunk'", NULL);
688 #endif
689  bool exc_caught = false;
690  try {
691  {
692  self->set_from_chunk(chunk);
693  }
694  } catch (fawkes::Exception &e) {
695  exc_caught = true;
696  lua_pushstring(tolua_S, e.what_no_backtrace());
697  }
698  catch (std::exception &e) {
699  exc_caught = true;
700  lua_pushstring(tolua_S, e.what());
701  }
702  if (exc_caught) lua_error(tolua_S);
703 
704  }
705  return 0;
706 #ifndef TOLUA_RELEASE
707  tolua_lerror:
708  tolua_error(tolua_S,"#ferror in function 'set_from_chunk'.",&tolua_err);
709  return 0;
710 #endif
711 }
712 #endif //#ifndef TOLUA_DISABLE
713 
714 /* method: create_message of class fawkes::Interface */
715 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_create_message_generic00
716 static int tolua_fawkesinterface_fawkes_Interface_create_message_generic00(lua_State* tolua_S)
717 {
718 #ifndef TOLUA_RELEASE
719  tolua_Error tolua_err;
720  if (
721  !tolua_isusertype(tolua_S,1,"const fawkes::Interface",0,&tolua_err) ||
722  !tolua_isstring(tolua_S,2,0,&tolua_err) ||
723  !tolua_isnoobj(tolua_S,3,&tolua_err)
724  )
725  goto tolua_lerror;
726  else
727 #endif
728  {
729  const fawkes::Interface* self = (const fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
730  const char* type = ((const char*) tolua_tostring(tolua_S,2,0));
731 #ifndef TOLUA_RELEASE
732  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'create_message'", NULL);
733 #endif
734  bool exc_caught = false;
735  try {
736  {
737  fawkes::Message* tolua_ret = (fawkes::Message*) self->create_message(type);
738  tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::Message");
739  }
740  } catch (fawkes::Exception &e) {
741  exc_caught = true;
742  lua_pushstring(tolua_S, e.what_no_backtrace());
743  }
744  catch (std::exception &e) {
745  exc_caught = true;
746  lua_pushstring(tolua_S, e.what());
747  }
748  if (exc_caught) lua_error(tolua_S);
749 
750  }
751  return 1;
752 #ifndef TOLUA_RELEASE
753  tolua_lerror:
754  tolua_error(tolua_S,"#ferror in function 'create_message_generic'.",&tolua_err);
755  return 0;
756 #endif
757 }
758 #endif //#ifndef TOLUA_DISABLE
759 
760 /* method: read of class fawkes::Interface */
761 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_read00
762 static int tolua_fawkesinterface_fawkes_Interface_read00(lua_State* tolua_S)
763 {
764 #ifndef TOLUA_RELEASE
765  tolua_Error tolua_err;
766  if (
767  !tolua_isusertype(tolua_S,1,"fawkes::Interface",0,&tolua_err) ||
768  !tolua_isnoobj(tolua_S,2,&tolua_err)
769  )
770  goto tolua_lerror;
771  else
772 #endif
773  {
774  fawkes::Interface* self = (fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
775 #ifndef TOLUA_RELEASE
776  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'read'", NULL);
777 #endif
778  bool exc_caught = false;
779  try {
780  {
781  self->read();
782  }
783  } catch (fawkes::Exception &e) {
784  exc_caught = true;
785  lua_pushstring(tolua_S, e.what_no_backtrace());
786  }
787  catch (std::exception &e) {
788  exc_caught = true;
789  lua_pushstring(tolua_S, e.what());
790  }
791  if (exc_caught) lua_error(tolua_S);
792 
793  }
794  return 0;
795 #ifndef TOLUA_RELEASE
796  tolua_lerror:
797  tolua_error(tolua_S,"#ferror in function 'read'.",&tolua_err);
798  return 0;
799 #endif
800 }
801 #endif //#ifndef TOLUA_DISABLE
802 
803 /* method: write of class fawkes::Interface */
804 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_write00
805 static int tolua_fawkesinterface_fawkes_Interface_write00(lua_State* tolua_S)
806 {
807 #ifndef TOLUA_RELEASE
808  tolua_Error tolua_err;
809  if (
810  !tolua_isusertype(tolua_S,1,"fawkes::Interface",0,&tolua_err) ||
811  !tolua_isnoobj(tolua_S,2,&tolua_err)
812  )
813  goto tolua_lerror;
814  else
815 #endif
816  {
817  fawkes::Interface* self = (fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
818 #ifndef TOLUA_RELEASE
819  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'write'", NULL);
820 #endif
821  bool exc_caught = false;
822  try {
823  {
824  self->write();
825  }
826  } catch (fawkes::Exception &e) {
827  exc_caught = true;
828  lua_pushstring(tolua_S, e.what_no_backtrace());
829  }
830  catch (std::exception &e) {
831  exc_caught = true;
832  lua_pushstring(tolua_S, e.what());
833  }
834  if (exc_caught) lua_error(tolua_S);
835 
836  }
837  return 0;
838 #ifndef TOLUA_RELEASE
839  tolua_lerror:
840  tolua_error(tolua_S,"#ferror in function 'write'.",&tolua_err);
841  return 0;
842 #endif
843 }
844 #endif //#ifndef TOLUA_DISABLE
845 
846 /* method: has_writer of class fawkes::Interface */
847 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_has_writer00
848 static int tolua_fawkesinterface_fawkes_Interface_has_writer00(lua_State* tolua_S)
849 {
850 #ifndef TOLUA_RELEASE
851  tolua_Error tolua_err;
852  if (
853  !tolua_isusertype(tolua_S,1,"const fawkes::Interface",0,&tolua_err) ||
854  !tolua_isnoobj(tolua_S,2,&tolua_err)
855  )
856  goto tolua_lerror;
857  else
858 #endif
859  {
860  const fawkes::Interface* self = (const fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
861 #ifndef TOLUA_RELEASE
862  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'has_writer'", NULL);
863 #endif
864  bool exc_caught = false;
865  try {
866  {
867  bool tolua_ret = (bool) self->has_writer();
868  tolua_pushboolean(tolua_S,(bool)tolua_ret);
869  }
870  } catch (fawkes::Exception &e) {
871  exc_caught = true;
872  lua_pushstring(tolua_S, e.what_no_backtrace());
873  }
874  catch (std::exception &e) {
875  exc_caught = true;
876  lua_pushstring(tolua_S, e.what());
877  }
878  if (exc_caught) lua_error(tolua_S);
879 
880  }
881  return 1;
882 #ifndef TOLUA_RELEASE
883  tolua_lerror:
884  tolua_error(tolua_S,"#ferror in function 'has_writer'.",&tolua_err);
885  return 0;
886 #endif
887 }
888 #endif //#ifndef TOLUA_DISABLE
889 
890 /* method: num_readers of class fawkes::Interface */
891 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_num_readers00
892 static int tolua_fawkesinterface_fawkes_Interface_num_readers00(lua_State* tolua_S)
893 {
894 #ifndef TOLUA_RELEASE
895  tolua_Error tolua_err;
896  if (
897  !tolua_isusertype(tolua_S,1,"const fawkes::Interface",0,&tolua_err) ||
898  !tolua_isnoobj(tolua_S,2,&tolua_err)
899  )
900  goto tolua_lerror;
901  else
902 #endif
903  {
904  const fawkes::Interface* self = (const fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
905 #ifndef TOLUA_RELEASE
906  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'num_readers'", NULL);
907 #endif
908  bool exc_caught = false;
909  try {
910  {
911  unsigned int tolua_ret = (unsigned int) self->num_readers();
912  tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
913  }
914  } catch (fawkes::Exception &e) {
915  exc_caught = true;
916  lua_pushstring(tolua_S, e.what_no_backtrace());
917  }
918  catch (std::exception &e) {
919  exc_caught = true;
920  lua_pushstring(tolua_S, e.what());
921  }
922  if (exc_caught) lua_error(tolua_S);
923 
924  }
925  return 1;
926 #ifndef TOLUA_RELEASE
927  tolua_lerror:
928  tolua_error(tolua_S,"#ferror in function 'num_readers'.",&tolua_err);
929  return 0;
930 #endif
931 }
932 #endif //#ifndef TOLUA_DISABLE
933 
934 /* method: changed of class fawkes::Interface */
935 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_changed00
936 static int tolua_fawkesinterface_fawkes_Interface_changed00(lua_State* tolua_S)
937 {
938 #ifndef TOLUA_RELEASE
939  tolua_Error tolua_err;
940  if (
941  !tolua_isusertype(tolua_S,1,"const fawkes::Interface",0,&tolua_err) ||
942  !tolua_isnoobj(tolua_S,2,&tolua_err)
943  )
944  goto tolua_lerror;
945  else
946 #endif
947  {
948  const fawkes::Interface* self = (const fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
949 #ifndef TOLUA_RELEASE
950  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'changed'", NULL);
951 #endif
952  bool exc_caught = false;
953  try {
954  {
955  bool tolua_ret = (bool) self->changed();
956  tolua_pushboolean(tolua_S,(bool)tolua_ret);
957  }
958  } catch (fawkes::Exception &e) {
959  exc_caught = true;
960  lua_pushstring(tolua_S, e.what_no_backtrace());
961  }
962  catch (std::exception &e) {
963  exc_caught = true;
964  lua_pushstring(tolua_S, e.what());
965  }
966  if (exc_caught) lua_error(tolua_S);
967 
968  }
969  return 1;
970 #ifndef TOLUA_RELEASE
971  tolua_lerror:
972  tolua_error(tolua_S,"#ferror in function 'changed'.",&tolua_err);
973  return 0;
974 #endif
975 }
976 #endif //#ifndef TOLUA_DISABLE
977 
978 /* method: timestamp of class fawkes::Interface */
979 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_timestamp00
980 static int tolua_fawkesinterface_fawkes_Interface_timestamp00(lua_State* tolua_S)
981 {
982 #ifndef TOLUA_RELEASE
983  tolua_Error tolua_err;
984  if (
985  !tolua_isusertype(tolua_S,1,"const fawkes::Interface",0,&tolua_err) ||
986  !tolua_isnoobj(tolua_S,2,&tolua_err)
987  )
988  goto tolua_lerror;
989  else
990 #endif
991  {
992  const fawkes::Interface* self = (const fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
993 #ifndef TOLUA_RELEASE
994  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'timestamp'", NULL);
995 #endif
996  bool exc_caught = false;
997  try {
998  {
999  const fawkes::Time* tolua_ret = (const fawkes::Time*) self->timestamp();
1000  tolua_pushusertype(tolua_S,(void*)tolua_ret,"const fawkes::Time");
1001  }
1002  } catch (fawkes::Exception &e) {
1003  exc_caught = true;
1004  lua_pushstring(tolua_S, e.what_no_backtrace());
1005  }
1006  catch (std::exception &e) {
1007  exc_caught = true;
1008  lua_pushstring(tolua_S, e.what());
1009  }
1010  if (exc_caught) lua_error(tolua_S);
1011 
1012  }
1013  return 1;
1014 #ifndef TOLUA_RELEASE
1015  tolua_lerror:
1016  tolua_error(tolua_S,"#ferror in function 'timestamp'.",&tolua_err);
1017  return 0;
1018 #endif
1019 }
1020 #endif //#ifndef TOLUA_DISABLE
1021 
1022 /* method: set_auto_timestamping of class fawkes::Interface */
1023 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_set_auto_timestamping00
1024 static int tolua_fawkesinterface_fawkes_Interface_set_auto_timestamping00(lua_State* tolua_S)
1025 {
1026 #ifndef TOLUA_RELEASE
1027  tolua_Error tolua_err;
1028  if (
1029  !tolua_isusertype(tolua_S,1,"fawkes::Interface",0,&tolua_err) ||
1030  !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
1031  !tolua_isnoobj(tolua_S,3,&tolua_err)
1032  )
1033  goto tolua_lerror;
1034  else
1035 #endif
1036  {
1037  fawkes::Interface* self = (fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
1038  bool enabled = ((bool) tolua_toboolean(tolua_S,2,0));
1039 #ifndef TOLUA_RELEASE
1040  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_auto_timestamping'", NULL);
1041 #endif
1042  bool exc_caught = false;
1043  try {
1044  {
1045  self->set_auto_timestamping(enabled);
1046  }
1047  } catch (fawkes::Exception &e) {
1048  exc_caught = true;
1049  lua_pushstring(tolua_S, e.what_no_backtrace());
1050  }
1051  catch (std::exception &e) {
1052  exc_caught = true;
1053  lua_pushstring(tolua_S, e.what());
1054  }
1055  if (exc_caught) lua_error(tolua_S);
1056 
1057  }
1058  return 0;
1059 #ifndef TOLUA_RELEASE
1060  tolua_lerror:
1061  tolua_error(tolua_S,"#ferror in function 'set_auto_timestamping'.",&tolua_err);
1062  return 0;
1063 #endif
1064 }
1065 #endif //#ifndef TOLUA_DISABLE
1066 
1067 /* method: set_timestamp of class fawkes::Interface */
1068 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_set_timestamp00
1069 static int tolua_fawkesinterface_fawkes_Interface_set_timestamp00(lua_State* tolua_S)
1070 {
1071 #ifndef TOLUA_RELEASE
1072  tolua_Error tolua_err;
1073  if (
1074  !tolua_isusertype(tolua_S,1,"fawkes::Interface",0,&tolua_err) ||
1075  !tolua_isusertype(tolua_S,2,"const fawkes::Time",0,&tolua_err) ||
1076  !tolua_isnoobj(tolua_S,3,&tolua_err)
1077  )
1078  goto tolua_lerror;
1079  else
1080 #endif
1081  {
1082  fawkes::Interface* self = (fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
1083  const fawkes::Time* t = ((const fawkes::Time*) tolua_tousertype(tolua_S,2,0));
1084 #ifndef TOLUA_RELEASE
1085  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_timestamp'", NULL);
1086 #endif
1087  bool exc_caught = false;
1088  try {
1089  {
1090  self->set_timestamp(t);
1091  }
1092  } catch (fawkes::Exception &e) {
1093  exc_caught = true;
1094  lua_pushstring(tolua_S, e.what_no_backtrace());
1095  }
1096  catch (std::exception &e) {
1097  exc_caught = true;
1098  lua_pushstring(tolua_S, e.what());
1099  }
1100  if (exc_caught) lua_error(tolua_S);
1101 
1102  }
1103  return 0;
1104 #ifndef TOLUA_RELEASE
1105  tolua_lerror:
1106  tolua_error(tolua_S,"#ferror in function 'set_timestamp'.",&tolua_err);
1107  return 0;
1108 #endif
1109 }
1110 #endif //#ifndef TOLUA_DISABLE
1111 
1112 /* method: set_clock of class fawkes::Interface */
1113 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_set_clock00
1114 static int tolua_fawkesinterface_fawkes_Interface_set_clock00(lua_State* tolua_S)
1115 {
1116 #ifndef TOLUA_RELEASE
1117  tolua_Error tolua_err;
1118  if (
1119  !tolua_isusertype(tolua_S,1,"fawkes::Interface",0,&tolua_err) ||
1120  !tolua_isusertype(tolua_S,2,"fawkes::Clock",0,&tolua_err) ||
1121  !tolua_isnoobj(tolua_S,3,&tolua_err)
1122  )
1123  goto tolua_lerror;
1124  else
1125 #endif
1126  {
1127  fawkes::Interface* self = (fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
1128  fawkes::Clock* clock = ((fawkes::Clock*) tolua_tousertype(tolua_S,2,0));
1129 #ifndef TOLUA_RELEASE
1130  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_clock'", NULL);
1131 #endif
1132  bool exc_caught = false;
1133  try {
1134  {
1135  self->set_clock(clock);
1136  }
1137  } catch (fawkes::Exception &e) {
1138  exc_caught = true;
1139  lua_pushstring(tolua_S, e.what_no_backtrace());
1140  }
1141  catch (std::exception &e) {
1142  exc_caught = true;
1143  lua_pushstring(tolua_S, e.what());
1144  }
1145  if (exc_caught) lua_error(tolua_S);
1146 
1147  }
1148  return 0;
1149 #ifndef TOLUA_RELEASE
1150  tolua_lerror:
1151  tolua_error(tolua_S,"#ferror in function 'set_clock'.",&tolua_err);
1152  return 0;
1153 #endif
1154 }
1155 #endif //#ifndef TOLUA_DISABLE
1156 
1157 /* method: msgq_enqueue_copy of class fawkes::Interface */
1158 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_enqueue_copy00
1159 static int tolua_fawkesinterface_fawkes_Interface_msgq_enqueue_copy00(lua_State* tolua_S)
1160 {
1161 #ifndef TOLUA_RELEASE
1162  tolua_Error tolua_err;
1163  if (
1164  !tolua_isusertype(tolua_S,1,"fawkes::Interface",0,&tolua_err) ||
1165  !tolua_isusertype(tolua_S,2,"fawkes::Message",0,&tolua_err) ||
1166  !tolua_isnoobj(tolua_S,3,&tolua_err)
1167  )
1168  goto tolua_lerror;
1169  else
1170 #endif
1171  {
1172  fawkes::Interface* self = (fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
1173  fawkes::Message* message = ((fawkes::Message*) tolua_tousertype(tolua_S,2,0));
1174 #ifndef TOLUA_RELEASE
1175  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_enqueue_copy'", NULL);
1176 #endif
1177  bool exc_caught = false;
1178  try {
1179  {
1180  unsigned int tolua_ret = (unsigned int) self->msgq_enqueue_copy(message);
1181  tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1182  }
1183  } catch (fawkes::Exception &e) {
1184  exc_caught = true;
1185  lua_pushstring(tolua_S, e.what_no_backtrace());
1186  }
1187  catch (std::exception &e) {
1188  exc_caught = true;
1189  lua_pushstring(tolua_S, e.what());
1190  }
1191  if (exc_caught) lua_error(tolua_S);
1192 
1193  }
1194  return 1;
1195 #ifndef TOLUA_RELEASE
1196  tolua_lerror:
1197  tolua_error(tolua_S,"#ferror in function 'msgq_enqueue_copy'.",&tolua_err);
1198  return 0;
1199 #endif
1200 }
1201 #endif //#ifndef TOLUA_DISABLE
1202 
1203 /* method: msgq_remove of class fawkes::Interface */
1204 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_remove00
1205 static int tolua_fawkesinterface_fawkes_Interface_msgq_remove00(lua_State* tolua_S)
1206 {
1207 #ifndef TOLUA_RELEASE
1208  tolua_Error tolua_err;
1209  if (
1210  !tolua_isusertype(tolua_S,1,"fawkes::Interface",0,&tolua_err) ||
1211  !tolua_isusertype(tolua_S,2,"fawkes::Message",0,&tolua_err) ||
1212  !tolua_isnoobj(tolua_S,3,&tolua_err)
1213  )
1214  goto tolua_lerror;
1215  else
1216 #endif
1217  {
1218  fawkes::Interface* self = (fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
1219  fawkes::Message* message = ((fawkes::Message*) tolua_tousertype(tolua_S,2,0));
1220 #ifndef TOLUA_RELEASE
1221  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_remove'", NULL);
1222 #endif
1223  bool exc_caught = false;
1224  try {
1225  {
1226  self->msgq_remove(message);
1227  }
1228  } catch (fawkes::Exception &e) {
1229  exc_caught = true;
1230  lua_pushstring(tolua_S, e.what_no_backtrace());
1231  }
1232  catch (std::exception &e) {
1233  exc_caught = true;
1234  lua_pushstring(tolua_S, e.what());
1235  }
1236  if (exc_caught) lua_error(tolua_S);
1237 
1238  }
1239  return 0;
1240 #ifndef TOLUA_RELEASE
1241  tolua_lerror:
1242  tolua_error(tolua_S,"#ferror in function 'msgq_remove'.",&tolua_err);
1243  return 0;
1244 #endif
1245 }
1246 #endif //#ifndef TOLUA_DISABLE
1247 
1248 /* method: msgq_remove of class fawkes::Interface */
1249 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_remove01
1250 static int tolua_fawkesinterface_fawkes_Interface_msgq_remove01(lua_State* tolua_S)
1251 {
1252  tolua_Error tolua_err;
1253  if (
1254  !tolua_isusertype(tolua_S,1,"fawkes::Interface",0,&tolua_err) ||
1255  !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1256  !tolua_isnoobj(tolua_S,3,&tolua_err)
1257  )
1258  goto tolua_lerror;
1259  else
1260  {
1261  fawkes::Interface* self = (fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
1262  unsigned int message_id = ((unsigned int) tolua_tonumber(tolua_S,2,0));
1263 #ifndef TOLUA_RELEASE
1264  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_remove'", NULL);
1265 #endif
1266  bool exc_caught = false;
1267  try {
1268  {
1269  self->msgq_remove(message_id);
1270  }
1271  } catch (fawkes::Exception &e) {
1272  exc_caught = true;
1273  lua_pushstring(tolua_S, e.what_no_backtrace());
1274  }
1275  catch (std::exception &e) {
1276  exc_caught = true;
1277  lua_pushstring(tolua_S, e.what());
1278  }
1279  if (exc_caught) lua_error(tolua_S);
1280 
1281  }
1282  return 0;
1283 tolua_lerror:
1284  return tolua_fawkesinterface_fawkes_Interface_msgq_remove00(tolua_S);
1285 }
1286 #endif //#ifndef TOLUA_DISABLE
1287 
1288 /* method: msgq_size of class fawkes::Interface */
1289 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_size00
1290 static int tolua_fawkesinterface_fawkes_Interface_msgq_size00(lua_State* tolua_S)
1291 {
1292 #ifndef TOLUA_RELEASE
1293  tolua_Error tolua_err;
1294  if (
1295  !tolua_isusertype(tolua_S,1,"fawkes::Interface",0,&tolua_err) ||
1296  !tolua_isnoobj(tolua_S,2,&tolua_err)
1297  )
1298  goto tolua_lerror;
1299  else
1300 #endif
1301  {
1302  fawkes::Interface* self = (fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
1303 #ifndef TOLUA_RELEASE
1304  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_size'", NULL);
1305 #endif
1306  bool exc_caught = false;
1307  try {
1308  {
1309  unsigned int tolua_ret = (unsigned int) self->msgq_size();
1310  tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1311  }
1312  } catch (fawkes::Exception &e) {
1313  exc_caught = true;
1314  lua_pushstring(tolua_S, e.what_no_backtrace());
1315  }
1316  catch (std::exception &e) {
1317  exc_caught = true;
1318  lua_pushstring(tolua_S, e.what());
1319  }
1320  if (exc_caught) lua_error(tolua_S);
1321 
1322  }
1323  return 1;
1324 #ifndef TOLUA_RELEASE
1325  tolua_lerror:
1326  tolua_error(tolua_S,"#ferror in function 'msgq_size'.",&tolua_err);
1327  return 0;
1328 #endif
1329 }
1330 #endif //#ifndef TOLUA_DISABLE
1331 
1332 /* method: msgq_flush of class fawkes::Interface */
1333 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_flush00
1334 static int tolua_fawkesinterface_fawkes_Interface_msgq_flush00(lua_State* tolua_S)
1335 {
1336 #ifndef TOLUA_RELEASE
1337  tolua_Error tolua_err;
1338  if (
1339  !tolua_isusertype(tolua_S,1,"fawkes::Interface",0,&tolua_err) ||
1340  !tolua_isnoobj(tolua_S,2,&tolua_err)
1341  )
1342  goto tolua_lerror;
1343  else
1344 #endif
1345  {
1346  fawkes::Interface* self = (fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
1347 #ifndef TOLUA_RELEASE
1348  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_flush'", NULL);
1349 #endif
1350  bool exc_caught = false;
1351  try {
1352  {
1353  self->msgq_flush();
1354  }
1355  } catch (fawkes::Exception &e) {
1356  exc_caught = true;
1357  lua_pushstring(tolua_S, e.what_no_backtrace());
1358  }
1359  catch (std::exception &e) {
1360  exc_caught = true;
1361  lua_pushstring(tolua_S, e.what());
1362  }
1363  if (exc_caught) lua_error(tolua_S);
1364 
1365  }
1366  return 0;
1367 #ifndef TOLUA_RELEASE
1368  tolua_lerror:
1369  tolua_error(tolua_S,"#ferror in function 'msgq_flush'.",&tolua_err);
1370  return 0;
1371 #endif
1372 }
1373 #endif //#ifndef TOLUA_DISABLE
1374 
1375 /* method: msgq_lock of class fawkes::Interface */
1376 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_lock00
1377 static int tolua_fawkesinterface_fawkes_Interface_msgq_lock00(lua_State* tolua_S)
1378 {
1379 #ifndef TOLUA_RELEASE
1380  tolua_Error tolua_err;
1381  if (
1382  !tolua_isusertype(tolua_S,1,"fawkes::Interface",0,&tolua_err) ||
1383  !tolua_isnoobj(tolua_S,2,&tolua_err)
1384  )
1385  goto tolua_lerror;
1386  else
1387 #endif
1388  {
1389  fawkes::Interface* self = (fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
1390 #ifndef TOLUA_RELEASE
1391  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_lock'", NULL);
1392 #endif
1393  bool exc_caught = false;
1394  try {
1395  {
1396  self->msgq_lock();
1397  }
1398  } catch (fawkes::Exception &e) {
1399  exc_caught = true;
1400  lua_pushstring(tolua_S, e.what_no_backtrace());
1401  }
1402  catch (std::exception &e) {
1403  exc_caught = true;
1404  lua_pushstring(tolua_S, e.what());
1405  }
1406  if (exc_caught) lua_error(tolua_S);
1407 
1408  }
1409  return 0;
1410 #ifndef TOLUA_RELEASE
1411  tolua_lerror:
1412  tolua_error(tolua_S,"#ferror in function 'msgq_lock'.",&tolua_err);
1413  return 0;
1414 #endif
1415 }
1416 #endif //#ifndef TOLUA_DISABLE
1417 
1418 /* method: msgq_try_lock of class fawkes::Interface */
1419 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_try_lock00
1420 static int tolua_fawkesinterface_fawkes_Interface_msgq_try_lock00(lua_State* tolua_S)
1421 {
1422 #ifndef TOLUA_RELEASE
1423  tolua_Error tolua_err;
1424  if (
1425  !tolua_isusertype(tolua_S,1,"fawkes::Interface",0,&tolua_err) ||
1426  !tolua_isnoobj(tolua_S,2,&tolua_err)
1427  )
1428  goto tolua_lerror;
1429  else
1430 #endif
1431  {
1432  fawkes::Interface* self = (fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
1433 #ifndef TOLUA_RELEASE
1434  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_try_lock'", NULL);
1435 #endif
1436  bool exc_caught = false;
1437  try {
1438  {
1439  bool tolua_ret = (bool) self->msgq_try_lock();
1440  tolua_pushboolean(tolua_S,(bool)tolua_ret);
1441  }
1442  } catch (fawkes::Exception &e) {
1443  exc_caught = true;
1444  lua_pushstring(tolua_S, e.what_no_backtrace());
1445  }
1446  catch (std::exception &e) {
1447  exc_caught = true;
1448  lua_pushstring(tolua_S, e.what());
1449  }
1450  if (exc_caught) lua_error(tolua_S);
1451 
1452  }
1453  return 1;
1454 #ifndef TOLUA_RELEASE
1455  tolua_lerror:
1456  tolua_error(tolua_S,"#ferror in function 'msgq_try_lock'.",&tolua_err);
1457  return 0;
1458 #endif
1459 }
1460 #endif //#ifndef TOLUA_DISABLE
1461 
1462 /* method: msgq_unlock of class fawkes::Interface */
1463 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_unlock00
1464 static int tolua_fawkesinterface_fawkes_Interface_msgq_unlock00(lua_State* tolua_S)
1465 {
1466 #ifndef TOLUA_RELEASE
1467  tolua_Error tolua_err;
1468  if (
1469  !tolua_isusertype(tolua_S,1,"fawkes::Interface",0,&tolua_err) ||
1470  !tolua_isnoobj(tolua_S,2,&tolua_err)
1471  )
1472  goto tolua_lerror;
1473  else
1474 #endif
1475  {
1476  fawkes::Interface* self = (fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
1477 #ifndef TOLUA_RELEASE
1478  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_unlock'", NULL);
1479 #endif
1480  bool exc_caught = false;
1481  try {
1482  {
1483  self->msgq_unlock();
1484  }
1485  } catch (fawkes::Exception &e) {
1486  exc_caught = true;
1487  lua_pushstring(tolua_S, e.what_no_backtrace());
1488  }
1489  catch (std::exception &e) {
1490  exc_caught = true;
1491  lua_pushstring(tolua_S, e.what());
1492  }
1493  if (exc_caught) lua_error(tolua_S);
1494 
1495  }
1496  return 0;
1497 #ifndef TOLUA_RELEASE
1498  tolua_lerror:
1499  tolua_error(tolua_S,"#ferror in function 'msgq_unlock'.",&tolua_err);
1500  return 0;
1501 #endif
1502 }
1503 #endif //#ifndef TOLUA_DISABLE
1504 
1505 /* method: msgq_pop of class fawkes::Interface */
1506 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_pop00
1507 static int tolua_fawkesinterface_fawkes_Interface_msgq_pop00(lua_State* tolua_S)
1508 {
1509 #ifndef TOLUA_RELEASE
1510  tolua_Error tolua_err;
1511  if (
1512  !tolua_isusertype(tolua_S,1,"fawkes::Interface",0,&tolua_err) ||
1513  !tolua_isnoobj(tolua_S,2,&tolua_err)
1514  )
1515  goto tolua_lerror;
1516  else
1517 #endif
1518  {
1519  fawkes::Interface* self = (fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
1520 #ifndef TOLUA_RELEASE
1521  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_pop'", NULL);
1522 #endif
1523  bool exc_caught = false;
1524  try {
1525  {
1526  self->msgq_pop();
1527  }
1528  } catch (fawkes::Exception &e) {
1529  exc_caught = true;
1530  lua_pushstring(tolua_S, e.what_no_backtrace());
1531  }
1532  catch (std::exception &e) {
1533  exc_caught = true;
1534  lua_pushstring(tolua_S, e.what());
1535  }
1536  if (exc_caught) lua_error(tolua_S);
1537 
1538  }
1539  return 0;
1540 #ifndef TOLUA_RELEASE
1541  tolua_lerror:
1542  tolua_error(tolua_S,"#ferror in function 'msgq_pop'.",&tolua_err);
1543  return 0;
1544 #endif
1545 }
1546 #endif //#ifndef TOLUA_DISABLE
1547 
1548 /* method: msgq_first of class fawkes::Interface */
1549 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_first_generic00
1550 static int tolua_fawkesinterface_fawkes_Interface_msgq_first_generic00(lua_State* tolua_S)
1551 {
1552 #ifndef TOLUA_RELEASE
1553  tolua_Error tolua_err;
1554  if (
1555  !tolua_isusertype(tolua_S,1,"fawkes::Interface",0,&tolua_err) ||
1556  !tolua_isnoobj(tolua_S,2,&tolua_err)
1557  )
1558  goto tolua_lerror;
1559  else
1560 #endif
1561  {
1562  fawkes::Interface* self = (fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
1563 #ifndef TOLUA_RELEASE
1564  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_first'", NULL);
1565 #endif
1566  bool exc_caught = false;
1567  try {
1568  {
1569  fawkes::Message* tolua_ret = (fawkes::Message*) self->msgq_first();
1570  tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::Message");
1571  }
1572  } catch (fawkes::Exception &e) {
1573  exc_caught = true;
1574  lua_pushstring(tolua_S, e.what_no_backtrace());
1575  }
1576  catch (std::exception &e) {
1577  exc_caught = true;
1578  lua_pushstring(tolua_S, e.what());
1579  }
1580  if (exc_caught) lua_error(tolua_S);
1581 
1582  }
1583  return 1;
1584 #ifndef TOLUA_RELEASE
1585  tolua_lerror:
1586  tolua_error(tolua_S,"#ferror in function 'msgq_first_generic'.",&tolua_err);
1587  return 0;
1588 #endif
1589 }
1590 #endif //#ifndef TOLUA_DISABLE
1591 
1592 /* method: msgq_empty of class fawkes::Interface */
1593 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_empty00
1594 static int tolua_fawkesinterface_fawkes_Interface_msgq_empty00(lua_State* tolua_S)
1595 {
1596 #ifndef TOLUA_RELEASE
1597  tolua_Error tolua_err;
1598  if (
1599  !tolua_isusertype(tolua_S,1,"fawkes::Interface",0,&tolua_err) ||
1600  !tolua_isnoobj(tolua_S,2,&tolua_err)
1601  )
1602  goto tolua_lerror;
1603  else
1604 #endif
1605  {
1606  fawkes::Interface* self = (fawkes::Interface*) tolua_tousertype(tolua_S,1,0);
1607 #ifndef TOLUA_RELEASE
1608  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_empty'", NULL);
1609 #endif
1610  bool exc_caught = false;
1611  try {
1612  {
1613  bool tolua_ret = (bool) self->msgq_empty();
1614  tolua_pushboolean(tolua_S,(bool)tolua_ret);
1615  }
1616  } catch (fawkes::Exception &e) {
1617  exc_caught = true;
1618  lua_pushstring(tolua_S, e.what_no_backtrace());
1619  }
1620  catch (std::exception &e) {
1621  exc_caught = true;
1622  lua_pushstring(tolua_S, e.what());
1623  }
1624  if (exc_caught) lua_error(tolua_S);
1625 
1626  }
1627  return 1;
1628 #ifndef TOLUA_RELEASE
1629  tolua_lerror:
1630  tolua_error(tolua_S,"#ferror in function 'msgq_empty'.",&tolua_err);
1631  return 0;
1632 #endif
1633 }
1634 #endif //#ifndef TOLUA_DISABLE
1635 
1636 /* method: new of class fawkes::Message */
1637 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new00
1638 static int tolua_fawkesinterface_fawkes_Message_new00(lua_State* tolua_S)
1639 {
1640 #ifndef TOLUA_RELEASE
1641  tolua_Error tolua_err;
1642  if (
1643  !tolua_isusertable(tolua_S,1,"fawkes::Message",0,&tolua_err) ||
1644  !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1645  !tolua_isnoobj(tolua_S,3,&tolua_err)
1646  )
1647  goto tolua_lerror;
1648  else
1649 #endif
1650  {
1651  const char* type = ((const char*) tolua_tostring(tolua_S,2,0));
1652  bool exc_caught = false;
1653  try {
1654  {
1655  fawkes::Message* tolua_ret = (fawkes::Message*) Mtolua_new((fawkes::Message)(type));
1656  tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::Message");
1657  }
1658  } catch (fawkes::Exception &e) {
1659  exc_caught = true;
1660  lua_pushstring(tolua_S, e.what_no_backtrace());
1661  }
1662  catch (std::exception &e) {
1663  exc_caught = true;
1664  lua_pushstring(tolua_S, e.what());
1665  }
1666  if (exc_caught) lua_error(tolua_S);
1667 
1668  }
1669  return 1;
1670 #ifndef TOLUA_RELEASE
1671  tolua_lerror:
1672  tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
1673  return 0;
1674 #endif
1675 }
1676 #endif //#ifndef TOLUA_DISABLE
1677 
1678 /* method: new_local of class fawkes::Message */
1679 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new00_local
1680 static int tolua_fawkesinterface_fawkes_Message_new00_local(lua_State* tolua_S)
1681 {
1682 #ifndef TOLUA_RELEASE
1683  tolua_Error tolua_err;
1684  if (
1685  !tolua_isusertable(tolua_S,1,"fawkes::Message",0,&tolua_err) ||
1686  !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1687  !tolua_isnoobj(tolua_S,3,&tolua_err)
1688  )
1689  goto tolua_lerror;
1690  else
1691 #endif
1692  {
1693  const char* type = ((const char*) tolua_tostring(tolua_S,2,0));
1694  bool exc_caught = false;
1695  try {
1696  {
1697  fawkes::Message* tolua_ret = (fawkes::Message*) Mtolua_new((fawkes::Message)(type));
1698  tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::Message");
1699  tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1700  }
1701  } catch (fawkes::Exception &e) {
1702  exc_caught = true;
1703  lua_pushstring(tolua_S, e.what_no_backtrace());
1704  }
1705  catch (std::exception &e) {
1706  exc_caught = true;
1707  lua_pushstring(tolua_S, e.what());
1708  }
1709  if (exc_caught) lua_error(tolua_S);
1710 
1711  }
1712  return 1;
1713 #ifndef TOLUA_RELEASE
1714  tolua_lerror:
1715  tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
1716  return 0;
1717 #endif
1718 }
1719 #endif //#ifndef TOLUA_DISABLE
1720 
1721 /* method: new of class fawkes::Message */
1722 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new01
1723 static int tolua_fawkesinterface_fawkes_Message_new01(lua_State* tolua_S)
1724 {
1725  tolua_Error tolua_err;
1726  if (
1727  !tolua_isusertable(tolua_S,1,"fawkes::Message",0,&tolua_err) ||
1728  !tolua_isusertype(tolua_S,2,"fawkes::Message",0,&tolua_err) ||
1729  !tolua_isnoobj(tolua_S,3,&tolua_err)
1730  )
1731  goto tolua_lerror;
1732  else
1733  {
1734  fawkes::Message* mesg = ((fawkes::Message*) tolua_tousertype(tolua_S,2,0));
1735  bool exc_caught = false;
1736  try {
1737  {
1738  fawkes::Message* tolua_ret = (fawkes::Message*) Mtolua_new((fawkes::Message)(mesg));
1739  tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::Message");
1740  }
1741  } catch (fawkes::Exception &e) {
1742  exc_caught = true;
1743  lua_pushstring(tolua_S, e.what_no_backtrace());
1744  }
1745  catch (std::exception &e) {
1746  exc_caught = true;
1747  lua_pushstring(tolua_S, e.what());
1748  }
1749  if (exc_caught) lua_error(tolua_S);
1750 
1751  }
1752  return 1;
1753 tolua_lerror:
1754  return tolua_fawkesinterface_fawkes_Message_new00(tolua_S);
1755 }
1756 #endif //#ifndef TOLUA_DISABLE
1757 
1758 /* method: new_local of class fawkes::Message */
1759 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new01_local
1760 static int tolua_fawkesinterface_fawkes_Message_new01_local(lua_State* tolua_S)
1761 {
1762  tolua_Error tolua_err;
1763  if (
1764  !tolua_isusertable(tolua_S,1,"fawkes::Message",0,&tolua_err) ||
1765  !tolua_isusertype(tolua_S,2,"fawkes::Message",0,&tolua_err) ||
1766  !tolua_isnoobj(tolua_S,3,&tolua_err)
1767  )
1768  goto tolua_lerror;
1769  else
1770  {
1771  fawkes::Message* mesg = ((fawkes::Message*) tolua_tousertype(tolua_S,2,0));
1772  bool exc_caught = false;
1773  try {
1774  {
1775  fawkes::Message* tolua_ret = (fawkes::Message*) Mtolua_new((fawkes::Message)(mesg));
1776  tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::Message");
1777  tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1778  }
1779  } catch (fawkes::Exception &e) {
1780  exc_caught = true;
1781  lua_pushstring(tolua_S, e.what_no_backtrace());
1782  }
1783  catch (std::exception &e) {
1784  exc_caught = true;
1785  lua_pushstring(tolua_S, e.what());
1786  }
1787  if (exc_caught) lua_error(tolua_S);
1788 
1789  }
1790  return 1;
1791 tolua_lerror:
1792  return tolua_fawkesinterface_fawkes_Message_new00_local(tolua_S);
1793 }
1794 #endif //#ifndef TOLUA_DISABLE
1795 
1796 /* method: new of class fawkes::Message */
1797 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new02
1798 static int tolua_fawkesinterface_fawkes_Message_new02(lua_State* tolua_S)
1799 {
1800  tolua_Error tolua_err;
1801  if (
1802  !tolua_isusertable(tolua_S,1,"fawkes::Message",0,&tolua_err) ||
1803  (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"fawkes::Message",0,&tolua_err)) ||
1804  !tolua_isnoobj(tolua_S,3,&tolua_err)
1805  )
1806  goto tolua_lerror;
1807  else
1808  {
1809  fawkes::Message* mesg = ((fawkes::Message*) tolua_tousertype(tolua_S,2,0));
1810  bool exc_caught = false;
1811  try {
1812  {
1813  fawkes::Message* tolua_ret = (fawkes::Message*) Mtolua_new((fawkes::Message)(*mesg));
1814  tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::Message");
1815  }
1816  } catch (fawkes::Exception &e) {
1817  exc_caught = true;
1818  lua_pushstring(tolua_S, e.what_no_backtrace());
1819  }
1820  catch (std::exception &e) {
1821  exc_caught = true;
1822  lua_pushstring(tolua_S, e.what());
1823  }
1824  if (exc_caught) lua_error(tolua_S);
1825 
1826  }
1827  return 1;
1828 tolua_lerror:
1829  return tolua_fawkesinterface_fawkes_Message_new01(tolua_S);
1830 }
1831 #endif //#ifndef TOLUA_DISABLE
1832 
1833 /* method: new_local of class fawkes::Message */
1834 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new02_local
1835 static int tolua_fawkesinterface_fawkes_Message_new02_local(lua_State* tolua_S)
1836 {
1837  tolua_Error tolua_err;
1838  if (
1839  !tolua_isusertable(tolua_S,1,"fawkes::Message",0,&tolua_err) ||
1840  (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"fawkes::Message",0,&tolua_err)) ||
1841  !tolua_isnoobj(tolua_S,3,&tolua_err)
1842  )
1843  goto tolua_lerror;
1844  else
1845  {
1846  fawkes::Message* mesg = ((fawkes::Message*) tolua_tousertype(tolua_S,2,0));
1847  bool exc_caught = false;
1848  try {
1849  {
1850  fawkes::Message* tolua_ret = (fawkes::Message*) Mtolua_new((fawkes::Message)(*mesg));
1851  tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::Message");
1852  tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1853  }
1854  } catch (fawkes::Exception &e) {
1855  exc_caught = true;
1856  lua_pushstring(tolua_S, e.what_no_backtrace());
1857  }
1858  catch (std::exception &e) {
1859  exc_caught = true;
1860  lua_pushstring(tolua_S, e.what());
1861  }
1862  if (exc_caught) lua_error(tolua_S);
1863 
1864  }
1865  return 1;
1866 tolua_lerror:
1867  return tolua_fawkesinterface_fawkes_Message_new01_local(tolua_S);
1868 }
1869 #endif //#ifndef TOLUA_DISABLE
1870 
1871 /* method: id of class fawkes::Message */
1872 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_id00
1873 static int tolua_fawkesinterface_fawkes_Message_id00(lua_State* tolua_S)
1874 {
1875 #ifndef TOLUA_RELEASE
1876  tolua_Error tolua_err;
1877  if (
1878  !tolua_isusertype(tolua_S,1,"const fawkes::Message",0,&tolua_err) ||
1879  !tolua_isnoobj(tolua_S,2,&tolua_err)
1880  )
1881  goto tolua_lerror;
1882  else
1883 #endif
1884  {
1885  const fawkes::Message* self = (const fawkes::Message*) tolua_tousertype(tolua_S,1,0);
1886 #ifndef TOLUA_RELEASE
1887  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'id'", NULL);
1888 #endif
1889  bool exc_caught = false;
1890  try {
1891  {
1892  unsigned int tolua_ret = (unsigned int) self->id();
1893  tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1894  }
1895  } catch (fawkes::Exception &e) {
1896  exc_caught = true;
1897  lua_pushstring(tolua_S, e.what_no_backtrace());
1898  }
1899  catch (std::exception &e) {
1900  exc_caught = true;
1901  lua_pushstring(tolua_S, e.what());
1902  }
1903  if (exc_caught) lua_error(tolua_S);
1904 
1905  }
1906  return 1;
1907 #ifndef TOLUA_RELEASE
1908  tolua_lerror:
1909  tolua_error(tolua_S,"#ferror in function 'id'.",&tolua_err);
1910  return 0;
1911 #endif
1912 }
1913 #endif //#ifndef TOLUA_DISABLE
1914 
1915 /* method: sender_id of class fawkes::Message */
1916 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_sender_id00
1917 static int tolua_fawkesinterface_fawkes_Message_sender_id00(lua_State* tolua_S)
1918 {
1919 #ifndef TOLUA_RELEASE
1920  tolua_Error tolua_err;
1921  if (
1922  !tolua_isusertype(tolua_S,1,"const fawkes::Message",0,&tolua_err) ||
1923  !tolua_isnoobj(tolua_S,2,&tolua_err)
1924  )
1925  goto tolua_lerror;
1926  else
1927 #endif
1928  {
1929  const fawkes::Message* self = (const fawkes::Message*) tolua_tousertype(tolua_S,1,0);
1930 #ifndef TOLUA_RELEASE
1931  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'sender_id'", NULL);
1932 #endif
1933  bool exc_caught = false;
1934  try {
1935  {
1936  unsigned int tolua_ret = (unsigned int) self->sender_id();
1937  tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1938  }
1939  } catch (fawkes::Exception &e) {
1940  exc_caught = true;
1941  lua_pushstring(tolua_S, e.what_no_backtrace());
1942  }
1943  catch (std::exception &e) {
1944  exc_caught = true;
1945  lua_pushstring(tolua_S, e.what());
1946  }
1947  if (exc_caught) lua_error(tolua_S);
1948 
1949  }
1950  return 1;
1951 #ifndef TOLUA_RELEASE
1952  tolua_lerror:
1953  tolua_error(tolua_S,"#ferror in function 'sender_id'.",&tolua_err);
1954  return 0;
1955 #endif
1956 }
1957 #endif //#ifndef TOLUA_DISABLE
1958 
1959 /* method: sender_thread_name of class fawkes::Message */
1960 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_sender_thread_name00
1961 static int tolua_fawkesinterface_fawkes_Message_sender_thread_name00(lua_State* tolua_S)
1962 {
1963 #ifndef TOLUA_RELEASE
1964  tolua_Error tolua_err;
1965  if (
1966  !tolua_isusertype(tolua_S,1,"const fawkes::Message",0,&tolua_err) ||
1967  !tolua_isnoobj(tolua_S,2,&tolua_err)
1968  )
1969  goto tolua_lerror;
1970  else
1971 #endif
1972  {
1973  const fawkes::Message* self = (const fawkes::Message*) tolua_tousertype(tolua_S,1,0);
1974 #ifndef TOLUA_RELEASE
1975  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'sender_thread_name'", NULL);
1976 #endif
1977  bool exc_caught = false;
1978  try {
1979  {
1980  const char* tolua_ret = (const char*) self->sender_thread_name();
1981  tolua_pushstring(tolua_S,(const char*)tolua_ret);
1982  }
1983  } catch (fawkes::Exception &e) {
1984  exc_caught = true;
1985  lua_pushstring(tolua_S, e.what_no_backtrace());
1986  }
1987  catch (std::exception &e) {
1988  exc_caught = true;
1989  lua_pushstring(tolua_S, e.what());
1990  }
1991  if (exc_caught) lua_error(tolua_S);
1992 
1993  }
1994  return 1;
1995 #ifndef TOLUA_RELEASE
1996  tolua_lerror:
1997  tolua_error(tolua_S,"#ferror in function 'sender_thread_name'.",&tolua_err);
1998  return 0;
1999 #endif
2000 }
2001 #endif //#ifndef TOLUA_DISABLE
2002 
2003 /* method: interface of class fawkes::Message */
2004 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_interface00
2005 static int tolua_fawkesinterface_fawkes_Message_interface00(lua_State* tolua_S)
2006 {
2007 #ifndef TOLUA_RELEASE
2008  tolua_Error tolua_err;
2009  if (
2010  !tolua_isusertype(tolua_S,1,"const fawkes::Message",0,&tolua_err) ||
2011  !tolua_isnoobj(tolua_S,2,&tolua_err)
2012  )
2013  goto tolua_lerror;
2014  else
2015 #endif
2016  {
2017  const fawkes::Message* self = (const fawkes::Message*) tolua_tousertype(tolua_S,1,0);
2018 #ifndef TOLUA_RELEASE
2019  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'interface'", NULL);
2020 #endif
2021  bool exc_caught = false;
2022  try {
2023  {
2024  fawkes::Interface* tolua_ret = (fawkes::Interface*) self->interface();
2025  tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::Interface");
2026  }
2027  } catch (fawkes::Exception &e) {
2028  exc_caught = true;
2029  lua_pushstring(tolua_S, e.what_no_backtrace());
2030  }
2031  catch (std::exception &e) {
2032  exc_caught = true;
2033  lua_pushstring(tolua_S, e.what());
2034  }
2035  if (exc_caught) lua_error(tolua_S);
2036 
2037  }
2038  return 1;
2039 #ifndef TOLUA_RELEASE
2040  tolua_lerror:
2041  tolua_error(tolua_S,"#ferror in function 'interface'.",&tolua_err);
2042  return 0;
2043 #endif
2044 }
2045 #endif //#ifndef TOLUA_DISABLE
2046 
2047 /* method: type of class fawkes::Message */
2048 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_type00
2049 static int tolua_fawkesinterface_fawkes_Message_type00(lua_State* tolua_S)
2050 {
2051 #ifndef TOLUA_RELEASE
2052  tolua_Error tolua_err;
2053  if (
2054  !tolua_isusertype(tolua_S,1,"const fawkes::Message",0,&tolua_err) ||
2055  !tolua_isnoobj(tolua_S,2,&tolua_err)
2056  )
2057  goto tolua_lerror;
2058  else
2059 #endif
2060  {
2061  const fawkes::Message* self = (const fawkes::Message*) tolua_tousertype(tolua_S,1,0);
2062 #ifndef TOLUA_RELEASE
2063  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'type'", NULL);
2064 #endif
2065  bool exc_caught = false;
2066  try {
2067  {
2068  const char* tolua_ret = (const char*) self->type();
2069  tolua_pushstring(tolua_S,(const char*)tolua_ret);
2070  }
2071  } catch (fawkes::Exception &e) {
2072  exc_caught = true;
2073  lua_pushstring(tolua_S, e.what_no_backtrace());
2074  }
2075  catch (std::exception &e) {
2076  exc_caught = true;
2077  lua_pushstring(tolua_S, e.what());
2078  }
2079  if (exc_caught) lua_error(tolua_S);
2080 
2081  }
2082  return 1;
2083 #ifndef TOLUA_RELEASE
2084  tolua_lerror:
2085  tolua_error(tolua_S,"#ferror in function 'type'.",&tolua_err);
2086  return 0;
2087 #endif
2088 }
2089 #endif //#ifndef TOLUA_DISABLE
2090 
2091 /* method: datachunk of class fawkes::Message */
2092 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_datachunk00
2093 static int tolua_fawkesinterface_fawkes_Message_datachunk00(lua_State* tolua_S)
2094 {
2095 #ifndef TOLUA_RELEASE
2096  tolua_Error tolua_err;
2097  if (
2098  !tolua_isusertype(tolua_S,1,"const fawkes::Message",0,&tolua_err) ||
2099  !tolua_isnoobj(tolua_S,2,&tolua_err)
2100  )
2101  goto tolua_lerror;
2102  else
2103 #endif
2104  {
2105  const fawkes::Message* self = (const fawkes::Message*) tolua_tousertype(tolua_S,1,0);
2106 #ifndef TOLUA_RELEASE
2107  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'datachunk'", NULL);
2108 #endif
2109  bool exc_caught = false;
2110  try {
2111  {
2112  const void* tolua_ret = (const void*) self->datachunk();
2113  tolua_pushuserdata(tolua_S,(void*)tolua_ret);
2114  }
2115  } catch (fawkes::Exception &e) {
2116  exc_caught = true;
2117  lua_pushstring(tolua_S, e.what_no_backtrace());
2118  }
2119  catch (std::exception &e) {
2120  exc_caught = true;
2121  lua_pushstring(tolua_S, e.what());
2122  }
2123  if (exc_caught) lua_error(tolua_S);
2124 
2125  }
2126  return 1;
2127 #ifndef TOLUA_RELEASE
2128  tolua_lerror:
2129  tolua_error(tolua_S,"#ferror in function 'datachunk'.",&tolua_err);
2130  return 0;
2131 #endif
2132 }
2133 #endif //#ifndef TOLUA_DISABLE
2134 
2135 /* method: datasize of class fawkes::Message */
2136 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_datasize00
2137 static int tolua_fawkesinterface_fawkes_Message_datasize00(lua_State* tolua_S)
2138 {
2139 #ifndef TOLUA_RELEASE
2140  tolua_Error tolua_err;
2141  if (
2142  !tolua_isusertype(tolua_S,1,"const fawkes::Message",0,&tolua_err) ||
2143  !tolua_isnoobj(tolua_S,2,&tolua_err)
2144  )
2145  goto tolua_lerror;
2146  else
2147 #endif
2148  {
2149  const fawkes::Message* self = (const fawkes::Message*) tolua_tousertype(tolua_S,1,0);
2150 #ifndef TOLUA_RELEASE
2151  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'datasize'", NULL);
2152 #endif
2153  bool exc_caught = false;
2154  try {
2155  {
2156  unsigned int tolua_ret = (unsigned int) self->datasize();
2157  tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
2158  }
2159  } catch (fawkes::Exception &e) {
2160  exc_caught = true;
2161  lua_pushstring(tolua_S, e.what_no_backtrace());
2162  }
2163  catch (std::exception &e) {
2164  exc_caught = true;
2165  lua_pushstring(tolua_S, e.what());
2166  }
2167  if (exc_caught) lua_error(tolua_S);
2168 
2169  }
2170  return 1;
2171 #ifndef TOLUA_RELEASE
2172  tolua_lerror:
2173  tolua_error(tolua_S,"#ferror in function 'datasize'.",&tolua_err);
2174  return 0;
2175 #endif
2176 }
2177 #endif //#ifndef TOLUA_DISABLE
2178 
2179 /* method: set_from_chunk of class fawkes::Message */
2180 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_set_from_chunk00
2181 static int tolua_fawkesinterface_fawkes_Message_set_from_chunk00(lua_State* tolua_S)
2182 {
2183 #ifndef TOLUA_RELEASE
2184  tolua_Error tolua_err;
2185  if (
2186  !tolua_isusertype(tolua_S,1,"fawkes::Message",0,&tolua_err) ||
2187  !tolua_isuserdata(tolua_S,2,0,&tolua_err) ||
2188  !tolua_isnoobj(tolua_S,3,&tolua_err)
2189  )
2190  goto tolua_lerror;
2191  else
2192 #endif
2193  {
2194  fawkes::Message* self = (fawkes::Message*) tolua_tousertype(tolua_S,1,0);
2195  const void* chunk = ((const void*) tolua_touserdata(tolua_S,2,0));
2196 #ifndef TOLUA_RELEASE
2197  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_from_chunk'", NULL);
2198 #endif
2199  bool exc_caught = false;
2200  try {
2201  {
2202  self->set_from_chunk(chunk);
2203  }
2204  } catch (fawkes::Exception &e) {
2205  exc_caught = true;
2206  lua_pushstring(tolua_S, e.what_no_backtrace());
2207  }
2208  catch (std::exception &e) {
2209  exc_caught = true;
2210  lua_pushstring(tolua_S, e.what());
2211  }
2212  if (exc_caught) lua_error(tolua_S);
2213 
2214  }
2215  return 0;
2216 #ifndef TOLUA_RELEASE
2217  tolua_lerror:
2218  tolua_error(tolua_S,"#ferror in function 'set_from_chunk'.",&tolua_err);
2219  return 0;
2220 #endif
2221 }
2222 #endif //#ifndef TOLUA_DISABLE
2223 
2224 /* method: ref of class fawkes::Message */
2225 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_ref00
2226 static int tolua_fawkesinterface_fawkes_Message_ref00(lua_State* tolua_S)
2227 {
2228 #ifndef TOLUA_RELEASE
2229  tolua_Error tolua_err;
2230  if (
2231  !tolua_isusertype(tolua_S,1,"fawkes::Message",0,&tolua_err) ||
2232  !tolua_isnoobj(tolua_S,2,&tolua_err)
2233  )
2234  goto tolua_lerror;
2235  else
2236 #endif
2237  {
2238  fawkes::Message* self = (fawkes::Message*) tolua_tousertype(tolua_S,1,0);
2239 #ifndef TOLUA_RELEASE
2240  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ref'", NULL);
2241 #endif
2242  bool exc_caught = false;
2243  try {
2244  {
2245  self->ref();
2246  }
2247  } catch (fawkes::Exception &e) {
2248  exc_caught = true;
2249  lua_pushstring(tolua_S, e.what_no_backtrace());
2250  }
2251  catch (std::exception &e) {
2252  exc_caught = true;
2253  lua_pushstring(tolua_S, e.what());
2254  }
2255  if (exc_caught) lua_error(tolua_S);
2256 
2257  }
2258  return 0;
2259 #ifndef TOLUA_RELEASE
2260  tolua_lerror:
2261  tolua_error(tolua_S,"#ferror in function 'ref'.",&tolua_err);
2262  return 0;
2263 #endif
2264 }
2265 #endif //#ifndef TOLUA_DISABLE
2266 
2267 /* method: unref of class fawkes::Message */
2268 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_unref00
2269 static int tolua_fawkesinterface_fawkes_Message_unref00(lua_State* tolua_S)
2270 {
2271 #ifndef TOLUA_RELEASE
2272  tolua_Error tolua_err;
2273  if (
2274  !tolua_isusertype(tolua_S,1,"fawkes::Message",0,&tolua_err) ||
2275  !tolua_isnoobj(tolua_S,2,&tolua_err)
2276  )
2277  goto tolua_lerror;
2278  else
2279 #endif
2280  {
2281  fawkes::Message* self = (fawkes::Message*) tolua_tousertype(tolua_S,1,0);
2282 #ifndef TOLUA_RELEASE
2283  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'unref'", NULL);
2284 #endif
2285  bool exc_caught = false;
2286  try {
2287  {
2288  self->unref();
2289  }
2290  } catch (fawkes::Exception &e) {
2291  exc_caught = true;
2292  lua_pushstring(tolua_S, e.what_no_backtrace());
2293  }
2294  catch (std::exception &e) {
2295  exc_caught = true;
2296  lua_pushstring(tolua_S, e.what());
2297  }
2298  if (exc_caught) lua_error(tolua_S);
2299 
2300  }
2301  return 0;
2302 #ifndef TOLUA_RELEASE
2303  tolua_lerror:
2304  tolua_error(tolua_S,"#ferror in function 'unref'.",&tolua_err);
2305  return 0;
2306 #endif
2307 }
2308 #endif //#ifndef TOLUA_DISABLE
2309 
2310 /* method: refcount of class fawkes::Message */
2311 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_refcount00
2312 static int tolua_fawkesinterface_fawkes_Message_refcount00(lua_State* tolua_S)
2313 {
2314 #ifndef TOLUA_RELEASE
2315  tolua_Error tolua_err;
2316  if (
2317  !tolua_isusertype(tolua_S,1,"fawkes::Message",0,&tolua_err) ||
2318  !tolua_isnoobj(tolua_S,2,&tolua_err)
2319  )
2320  goto tolua_lerror;
2321  else
2322 #endif
2323  {
2324  fawkes::Message* self = (fawkes::Message*) tolua_tousertype(tolua_S,1,0);
2325 #ifndef TOLUA_RELEASE
2326  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'refcount'", NULL);
2327 #endif
2328  bool exc_caught = false;
2329  try {
2330  {
2331  unsigned int tolua_ret = (unsigned int) self->refcount();
2332  tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
2333  }
2334  } catch (fawkes::Exception &e) {
2335  exc_caught = true;
2336  lua_pushstring(tolua_S, e.what_no_backtrace());
2337  }
2338  catch (std::exception &e) {
2339  exc_caught = true;
2340  lua_pushstring(tolua_S, e.what());
2341  }
2342  if (exc_caught) lua_error(tolua_S);
2343 
2344  }
2345  return 1;
2346 #ifndef TOLUA_RELEASE
2347  tolua_lerror:
2348  tolua_error(tolua_S,"#ferror in function 'refcount'.",&tolua_err);
2349  return 0;
2350 #endif
2351 }
2352 #endif //#ifndef TOLUA_DISABLE
2353 
2354 /* method: new of class fawkes::MessageQueue */
2355 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_new00
2356 static int tolua_fawkesinterface_fawkes_MessageQueue_new00(lua_State* tolua_S)
2357 {
2358 #ifndef TOLUA_RELEASE
2359  tolua_Error tolua_err;
2360  if (
2361  !tolua_isusertable(tolua_S,1,"fawkes::MessageQueue",0,&tolua_err) ||
2362  !tolua_isnoobj(tolua_S,2,&tolua_err)
2363  )
2364  goto tolua_lerror;
2365  else
2366 #endif
2367  {
2368  bool exc_caught = false;
2369  try {
2370  {
2371  fawkes::MessageQueue* tolua_ret = (fawkes::MessageQueue*) Mtolua_new((fawkes::MessageQueue)());
2372  tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::MessageQueue");
2373  }
2374  } catch (fawkes::Exception &e) {
2375  exc_caught = true;
2376  lua_pushstring(tolua_S, e.what_no_backtrace());
2377  }
2378  catch (std::exception &e) {
2379  exc_caught = true;
2380  lua_pushstring(tolua_S, e.what());
2381  }
2382  if (exc_caught) lua_error(tolua_S);
2383 
2384  }
2385  return 1;
2386 #ifndef TOLUA_RELEASE
2387  tolua_lerror:
2388  tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
2389  return 0;
2390 #endif
2391 }
2392 #endif //#ifndef TOLUA_DISABLE
2393 
2394 /* method: new_local of class fawkes::MessageQueue */
2395 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_new00_local
2396 static int tolua_fawkesinterface_fawkes_MessageQueue_new00_local(lua_State* tolua_S)
2397 {
2398 #ifndef TOLUA_RELEASE
2399  tolua_Error tolua_err;
2400  if (
2401  !tolua_isusertable(tolua_S,1,"fawkes::MessageQueue",0,&tolua_err) ||
2402  !tolua_isnoobj(tolua_S,2,&tolua_err)
2403  )
2404  goto tolua_lerror;
2405  else
2406 #endif
2407  {
2408  bool exc_caught = false;
2409  try {
2410  {
2411  fawkes::MessageQueue* tolua_ret = (fawkes::MessageQueue*) Mtolua_new((fawkes::MessageQueue)());
2412  tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::MessageQueue");
2413  tolua_register_gc(tolua_S,lua_gettop(tolua_S));
2414  }
2415  } catch (fawkes::Exception &e) {
2416  exc_caught = true;
2417  lua_pushstring(tolua_S, e.what_no_backtrace());
2418  }
2419  catch (std::exception &e) {
2420  exc_caught = true;
2421  lua_pushstring(tolua_S, e.what());
2422  }
2423  if (exc_caught) lua_error(tolua_S);
2424 
2425  }
2426  return 1;
2427 #ifndef TOLUA_RELEASE
2428  tolua_lerror:
2429  tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
2430  return 0;
2431 #endif
2432 }
2433 #endif //#ifndef TOLUA_DISABLE
2434 
2435 /* method: delete of class fawkes::MessageQueue */
2436 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_delete00
2437 static int tolua_fawkesinterface_fawkes_MessageQueue_delete00(lua_State* tolua_S)
2438 {
2439 #ifndef TOLUA_RELEASE
2440  tolua_Error tolua_err;
2441  if (
2442  !tolua_isusertype(tolua_S,1,"fawkes::MessageQueue",0,&tolua_err) ||
2443  !tolua_isnoobj(tolua_S,2,&tolua_err)
2444  )
2445  goto tolua_lerror;
2446  else
2447 #endif
2448  {
2449  fawkes::MessageQueue* self = (fawkes::MessageQueue*) tolua_tousertype(tolua_S,1,0);
2450 #ifndef TOLUA_RELEASE
2451  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
2452 #endif
2453  bool exc_caught = false;
2454  try {
2455  Mtolua_delete(self);
2456  } catch (fawkes::Exception &e) {
2457  exc_caught = true;
2458  lua_pushstring(tolua_S, e.what_no_backtrace());
2459  }
2460  catch (std::exception &e) {
2461  exc_caught = true;
2462  lua_pushstring(tolua_S, e.what());
2463  }
2464  if (exc_caught) lua_error(tolua_S);
2465 
2466  }
2467  return 0;
2468 #ifndef TOLUA_RELEASE
2469  tolua_lerror:
2470  tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
2471  return 0;
2472 #endif
2473 }
2474 #endif //#ifndef TOLUA_DISABLE
2475 
2476 /* method: new of class MessageIterator */
2477 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00
2478 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00(lua_State* tolua_S)
2479 {
2480 #ifndef TOLUA_RELEASE
2481  tolua_Error tolua_err;
2482  if (
2483  !tolua_isusertable(tolua_S,1,"fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
2484  !tolua_isnoobj(tolua_S,2,&tolua_err)
2485  )
2486  goto tolua_lerror;
2487  else
2488 #endif
2489  {
2490  bool exc_caught = false;
2491  try {
2492  {
2494  tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::MessageQueue::MessageIterator");
2495  }
2496  } catch (fawkes::Exception &e) {
2497  exc_caught = true;
2498  lua_pushstring(tolua_S, e.what_no_backtrace());
2499  }
2500  catch (std::exception &e) {
2501  exc_caught = true;
2502  lua_pushstring(tolua_S, e.what());
2503  }
2504  if (exc_caught) lua_error(tolua_S);
2505 
2506  }
2507  return 1;
2508 #ifndef TOLUA_RELEASE
2509  tolua_lerror:
2510  tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
2511  return 0;
2512 #endif
2513 }
2514 #endif //#ifndef TOLUA_DISABLE
2515 
2516 /* method: new_local of class MessageIterator */
2517 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00_local
2518 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00_local(lua_State* tolua_S)
2519 {
2520 #ifndef TOLUA_RELEASE
2521  tolua_Error tolua_err;
2522  if (
2523  !tolua_isusertable(tolua_S,1,"fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
2524  !tolua_isnoobj(tolua_S,2,&tolua_err)
2525  )
2526  goto tolua_lerror;
2527  else
2528 #endif
2529  {
2530  bool exc_caught = false;
2531  try {
2532  {
2534  tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::MessageQueue::MessageIterator");
2535  tolua_register_gc(tolua_S,lua_gettop(tolua_S));
2536  }
2537  } catch (fawkes::Exception &e) {
2538  exc_caught = true;
2539  lua_pushstring(tolua_S, e.what_no_backtrace());
2540  }
2541  catch (std::exception &e) {
2542  exc_caught = true;
2543  lua_pushstring(tolua_S, e.what());
2544  }
2545  if (exc_caught) lua_error(tolua_S);
2546 
2547  }
2548  return 1;
2549 #ifndef TOLUA_RELEASE
2550  tolua_lerror:
2551  tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
2552  return 0;
2553 #endif
2554 }
2555 #endif //#ifndef TOLUA_DISABLE
2556 
2557 /* method: new of class MessageIterator */
2558 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01
2559 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01(lua_State* tolua_S)
2560 {
2561  tolua_Error tolua_err;
2562  if (
2563  !tolua_isusertable(tolua_S,1,"fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
2564  (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const fawkes::MessageQueue::MessageIterator",0,&tolua_err)) ||
2565  !tolua_isnoobj(tolua_S,3,&tolua_err)
2566  )
2567  goto tolua_lerror;
2568  else
2569  {
2570  const fawkes::MessageQueue::MessageIterator* it = ((const fawkes::MessageQueue::MessageIterator*) tolua_tousertype(tolua_S,2,0));
2571  bool exc_caught = false;
2572  try {
2573  {
2575  tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::MessageQueue::MessageIterator");
2576  }
2577  } catch (fawkes::Exception &e) {
2578  exc_caught = true;
2579  lua_pushstring(tolua_S, e.what_no_backtrace());
2580  }
2581  catch (std::exception &e) {
2582  exc_caught = true;
2583  lua_pushstring(tolua_S, e.what());
2584  }
2585  if (exc_caught) lua_error(tolua_S);
2586 
2587  }
2588  return 1;
2589 tolua_lerror:
2590  return tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00(tolua_S);
2591 }
2592 #endif //#ifndef TOLUA_DISABLE
2593 
2594 /* method: new_local of class MessageIterator */
2595 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01_local
2596 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01_local(lua_State* tolua_S)
2597 {
2598  tolua_Error tolua_err;
2599  if (
2600  !tolua_isusertable(tolua_S,1,"fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
2601  (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const fawkes::MessageQueue::MessageIterator",0,&tolua_err)) ||
2602  !tolua_isnoobj(tolua_S,3,&tolua_err)
2603  )
2604  goto tolua_lerror;
2605  else
2606  {
2607  const fawkes::MessageQueue::MessageIterator* it = ((const fawkes::MessageQueue::MessageIterator*) tolua_tousertype(tolua_S,2,0));
2608  bool exc_caught = false;
2609  try {
2610  {
2612  tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::MessageQueue::MessageIterator");
2613  tolua_register_gc(tolua_S,lua_gettop(tolua_S));
2614  }
2615  } catch (fawkes::Exception &e) {
2616  exc_caught = true;
2617  lua_pushstring(tolua_S, e.what_no_backtrace());
2618  }
2619  catch (std::exception &e) {
2620  exc_caught = true;
2621  lua_pushstring(tolua_S, e.what());
2622  }
2623  if (exc_caught) lua_error(tolua_S);
2624 
2625  }
2626  return 1;
2627 tolua_lerror:
2628  return tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00_local(tolua_S);
2629 }
2630 #endif //#ifndef TOLUA_DISABLE
2631 
2632 /* method: operator+ of class MessageIterator */
2633 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__add00
2634 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__add00(lua_State* tolua_S)
2635 {
2636 #ifndef TOLUA_RELEASE
2637  tolua_Error tolua_err;
2638  if (
2639  !tolua_isusertype(tolua_S,1,"fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
2640  !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2641  !tolua_isnoobj(tolua_S,3,&tolua_err)
2642  )
2643  goto tolua_lerror;
2644  else
2645 #endif
2646  {
2647  fawkes::MessageQueue::MessageIterator* self = (fawkes::MessageQueue::MessageIterator*) tolua_tousertype(tolua_S,1,0);
2648  unsigned int i = ((unsigned int) tolua_tonumber(tolua_S,2,0));
2649 #ifndef TOLUA_RELEASE
2650  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator+'", NULL);
2651 #endif
2652  bool exc_caught = false;
2653  try {
2654  {
2656  tolua_pushusertype(tolua_S,(void*)&tolua_ret,"fawkes::MessageQueue::MessageIterator");
2657  }
2658  } catch (fawkes::Exception &e) {
2659  exc_caught = true;
2660  lua_pushstring(tolua_S, e.what_no_backtrace());
2661  }
2662  catch (std::exception &e) {
2663  exc_caught = true;
2664  lua_pushstring(tolua_S, e.what());
2665  }
2666  if (exc_caught) lua_error(tolua_S);
2667 
2668  }
2669  return 1;
2670 #ifndef TOLUA_RELEASE
2671  tolua_lerror:
2672  tolua_error(tolua_S,"#ferror in function '.add'.",&tolua_err);
2673  return 0;
2674 #endif
2675 }
2676 #endif //#ifndef TOLUA_DISABLE
2677 
2678 /* method: operator== of class MessageIterator */
2679 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__eq00
2680 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__eq00(lua_State* tolua_S)
2681 {
2682 #ifndef TOLUA_RELEASE
2683  tolua_Error tolua_err;
2684  if (
2685  !tolua_isusertype(tolua_S,1,"const fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
2686  (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const fawkes::MessageQueue::MessageIterator",0,&tolua_err)) ||
2687  !tolua_isnoobj(tolua_S,3,&tolua_err)
2688  )
2689  goto tolua_lerror;
2690  else
2691 #endif
2692  {
2693  const fawkes::MessageQueue::MessageIterator* self = (const fawkes::MessageQueue::MessageIterator*) tolua_tousertype(tolua_S,1,0);
2694  const fawkes::MessageQueue::MessageIterator* c = ((const fawkes::MessageQueue::MessageIterator*) tolua_tousertype(tolua_S,2,0));
2695 #ifndef TOLUA_RELEASE
2696  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL);
2697 #endif
2698  bool exc_caught = false;
2699  try {
2700  {
2701  bool tolua_ret = (bool) self->operator==(*c);
2702  tolua_pushboolean(tolua_S,(bool)tolua_ret);
2703  }
2704  } catch (fawkes::Exception &e) {
2705  exc_caught = true;
2706  lua_pushstring(tolua_S, e.what_no_backtrace());
2707  }
2708  catch (std::exception &e) {
2709  exc_caught = true;
2710  lua_pushstring(tolua_S, e.what());
2711  }
2712  if (exc_caught) lua_error(tolua_S);
2713 
2714  }
2715  return 1;
2716 #ifndef TOLUA_RELEASE
2717  tolua_lerror:
2718  tolua_error(tolua_S,"#ferror in function '.eq'.",&tolua_err);
2719  return 0;
2720 #endif
2721 }
2722 #endif //#ifndef TOLUA_DISABLE
2723 
2724 /* method: operator* of class MessageIterator */
2725 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__mul00
2726 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__mul00(lua_State* tolua_S)
2727 {
2728 #ifndef TOLUA_RELEASE
2729  tolua_Error tolua_err;
2730  if (
2731  !tolua_isusertype(tolua_S,1,"const fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
2732  !tolua_isnoobj(tolua_S,2,&tolua_err)
2733  )
2734  goto tolua_lerror;
2735  else
2736 #endif
2737  {
2738  const fawkes::MessageQueue::MessageIterator* self = (const fawkes::MessageQueue::MessageIterator*) tolua_tousertype(tolua_S,1,0);
2739 #ifndef TOLUA_RELEASE
2740  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator*'", NULL);
2741 #endif
2742  bool exc_caught = false;
2743  try {
2744  {
2745  fawkes::Message* tolua_ret = (fawkes::Message*) self->operator*();
2746  tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::Message");
2747  }
2748  } catch (fawkes::Exception &e) {
2749  exc_caught = true;
2750  lua_pushstring(tolua_S, e.what_no_backtrace());
2751  }
2752  catch (std::exception &e) {
2753  exc_caught = true;
2754  lua_pushstring(tolua_S, e.what());
2755  }
2756  if (exc_caught) lua_error(tolua_S);
2757 
2758  }
2759  return 1;
2760 #ifndef TOLUA_RELEASE
2761  tolua_lerror:
2762  tolua_error(tolua_S,"#ferror in function '.mul'.",&tolua_err);
2763  return 0;
2764 #endif
2765 }
2766 #endif //#ifndef TOLUA_DISABLE
2767 
2768 /* method: id of class MessageIterator */
2769 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_id00
2770 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_id00(lua_State* tolua_S)
2771 {
2772 #ifndef TOLUA_RELEASE
2773  tolua_Error tolua_err;
2774  if (
2775  !tolua_isusertype(tolua_S,1,"const fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
2776  !tolua_isnoobj(tolua_S,2,&tolua_err)
2777  )
2778  goto tolua_lerror;
2779  else
2780 #endif
2781  {
2782  const fawkes::MessageQueue::MessageIterator* self = (const fawkes::MessageQueue::MessageIterator*) tolua_tousertype(tolua_S,1,0);
2783 #ifndef TOLUA_RELEASE
2784  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'id'", NULL);
2785 #endif
2786  bool exc_caught = false;
2787  try {
2788  {
2789  unsigned int tolua_ret = (unsigned int) self->id();
2790  tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
2791  }
2792  } catch (fawkes::Exception &e) {
2793  exc_caught = true;
2794  lua_pushstring(tolua_S, e.what_no_backtrace());
2795  }
2796  catch (std::exception &e) {
2797  exc_caught = true;
2798  lua_pushstring(tolua_S, e.what());
2799  }
2800  if (exc_caught) lua_error(tolua_S);
2801 
2802  }
2803  return 1;
2804 #ifndef TOLUA_RELEASE
2805  tolua_lerror:
2806  tolua_error(tolua_S,"#ferror in function 'id'.",&tolua_err);
2807  return 0;
2808 #endif
2809 }
2810 #endif //#ifndef TOLUA_DISABLE
2811 
2812 /* method: append of class fawkes::MessageQueue */
2813 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_append00
2814 static int tolua_fawkesinterface_fawkes_MessageQueue_append00(lua_State* tolua_S)
2815 {
2816 #ifndef TOLUA_RELEASE
2817  tolua_Error tolua_err;
2818  if (
2819  !tolua_isusertype(tolua_S,1,"fawkes::MessageQueue",0,&tolua_err) ||
2820  !tolua_isusertype(tolua_S,2,"fawkes::Message",0,&tolua_err) ||
2821  !tolua_isnoobj(tolua_S,3,&tolua_err)
2822  )
2823  goto tolua_lerror;
2824  else
2825 #endif
2826  {
2827  fawkes::MessageQueue* self = (fawkes::MessageQueue*) tolua_tousertype(tolua_S,1,0);
2828  fawkes::Message* msg = ((fawkes::Message*) tolua_tousertype(tolua_S,2,0));
2829 #ifndef TOLUA_RELEASE
2830  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'append'", NULL);
2831 #endif
2832  bool exc_caught = false;
2833  try {
2834  {
2835  self->append(msg);
2836  }
2837  } catch (fawkes::Exception &e) {
2838  exc_caught = true;
2839  lua_pushstring(tolua_S, e.what_no_backtrace());
2840  }
2841  catch (std::exception &e) {
2842  exc_caught = true;
2843  lua_pushstring(tolua_S, e.what());
2844  }
2845  if (exc_caught) lua_error(tolua_S);
2846 
2847  }
2848  return 0;
2849 #ifndef TOLUA_RELEASE
2850  tolua_lerror:
2851  tolua_error(tolua_S,"#ferror in function 'append'.",&tolua_err);
2852  return 0;
2853 #endif
2854 }
2855 #endif //#ifndef TOLUA_DISABLE
2856 
2857 /* method: remove of class fawkes::MessageQueue */
2858 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_remove00
2859 static int tolua_fawkesinterface_fawkes_MessageQueue_remove00(lua_State* tolua_S)
2860 {
2861 #ifndef TOLUA_RELEASE
2862  tolua_Error tolua_err;
2863  if (
2864  !tolua_isusertype(tolua_S,1,"fawkes::MessageQueue",0,&tolua_err) ||
2865  !tolua_isusertype(tolua_S,2,"const fawkes::Message",0,&tolua_err) ||
2866  !tolua_isnoobj(tolua_S,3,&tolua_err)
2867  )
2868  goto tolua_lerror;
2869  else
2870 #endif
2871  {
2872  fawkes::MessageQueue* self = (fawkes::MessageQueue*) tolua_tousertype(tolua_S,1,0);
2873  const fawkes::Message* msg = ((const fawkes::Message*) tolua_tousertype(tolua_S,2,0));
2874 #ifndef TOLUA_RELEASE
2875  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'remove'", NULL);
2876 #endif
2877  bool exc_caught = false;
2878  try {
2879  {
2880  self->remove(msg);
2881  }
2882  } catch (fawkes::Exception &e) {
2883  exc_caught = true;
2884  lua_pushstring(tolua_S, e.what_no_backtrace());
2885  }
2886  catch (std::exception &e) {
2887  exc_caught = true;
2888  lua_pushstring(tolua_S, e.what());
2889  }
2890  if (exc_caught) lua_error(tolua_S);
2891 
2892  }
2893  return 0;
2894 #ifndef TOLUA_RELEASE
2895  tolua_lerror:
2896  tolua_error(tolua_S,"#ferror in function 'remove'.",&tolua_err);
2897  return 0;
2898 #endif
2899 }
2900 #endif //#ifndef TOLUA_DISABLE
2901 
2902 /* method: remove of class fawkes::MessageQueue */
2903 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_remove01
2904 static int tolua_fawkesinterface_fawkes_MessageQueue_remove01(lua_State* tolua_S)
2905 {
2906  tolua_Error tolua_err;
2907  if (
2908  !tolua_isusertype(tolua_S,1,"fawkes::MessageQueue",0,&tolua_err) ||
2909  !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2910  !tolua_isnoobj(tolua_S,3,&tolua_err)
2911  )
2912  goto tolua_lerror;
2913  else
2914  {
2915  fawkes::MessageQueue* self = (fawkes::MessageQueue*) tolua_tousertype(tolua_S,1,0);
2916  unsigned const int msg_id = ((unsigned const int) tolua_tonumber(tolua_S,2,0));
2917 #ifndef TOLUA_RELEASE
2918  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'remove'", NULL);
2919 #endif
2920  bool exc_caught = false;
2921  try {
2922  {
2923  self->remove(msg_id);
2924  }
2925  } catch (fawkes::Exception &e) {
2926  exc_caught = true;
2927  lua_pushstring(tolua_S, e.what_no_backtrace());
2928  }
2929  catch (std::exception &e) {
2930  exc_caught = true;
2931  lua_pushstring(tolua_S, e.what());
2932  }
2933  if (exc_caught) lua_error(tolua_S);
2934 
2935  }
2936  return 0;
2937 tolua_lerror:
2938  return tolua_fawkesinterface_fawkes_MessageQueue_remove00(tolua_S);
2939 }
2940 #endif //#ifndef TOLUA_DISABLE
2941 
2942 /* method: insert_after of class fawkes::MessageQueue */
2943 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_insert_after00
2944 static int tolua_fawkesinterface_fawkes_MessageQueue_insert_after00(lua_State* tolua_S)
2945 {
2946 #ifndef TOLUA_RELEASE
2947  tolua_Error tolua_err;
2948  if (
2949  !tolua_isusertype(tolua_S,1,"fawkes::MessageQueue",0,&tolua_err) ||
2950  (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const fawkes::MessageQueue::MessageIterator",0,&tolua_err)) ||
2951  !tolua_isusertype(tolua_S,3,"fawkes::Message",0,&tolua_err) ||
2952  !tolua_isnoobj(tolua_S,4,&tolua_err)
2953  )
2954  goto tolua_lerror;
2955  else
2956 #endif
2957  {
2958  fawkes::MessageQueue* self = (fawkes::MessageQueue*) tolua_tousertype(tolua_S,1,0);
2959  const fawkes::MessageQueue::MessageIterator* it = ((const fawkes::MessageQueue::MessageIterator*) tolua_tousertype(tolua_S,2,0));
2960  fawkes::Message* msg = ((fawkes::Message*) tolua_tousertype(tolua_S,3,0));
2961 #ifndef TOLUA_RELEASE
2962  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'insert_after'", NULL);
2963 #endif
2964  bool exc_caught = false;
2965  try {
2966  {
2967  self->insert_after(*it,msg);
2968  }
2969  } catch (fawkes::Exception &e) {
2970  exc_caught = true;
2971  lua_pushstring(tolua_S, e.what_no_backtrace());
2972  }
2973  catch (std::exception &e) {
2974  exc_caught = true;
2975  lua_pushstring(tolua_S, e.what());
2976  }
2977  if (exc_caught) lua_error(tolua_S);
2978 
2979  }
2980  return 0;
2981 #ifndef TOLUA_RELEASE
2982  tolua_lerror:
2983  tolua_error(tolua_S,"#ferror in function 'insert_after'.",&tolua_err);
2984  return 0;
2985 #endif
2986 }
2987 #endif //#ifndef TOLUA_DISABLE
2988 
2989 /* method: size of class fawkes::MessageQueue */
2990 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_size00
2991 static int tolua_fawkesinterface_fawkes_MessageQueue_size00(lua_State* tolua_S)
2992 {
2993 #ifndef TOLUA_RELEASE
2994  tolua_Error tolua_err;
2995  if (
2996  !tolua_isusertype(tolua_S,1,"const fawkes::MessageQueue",0,&tolua_err) ||
2997  !tolua_isnoobj(tolua_S,2,&tolua_err)
2998  )
2999  goto tolua_lerror;
3000  else
3001 #endif
3002  {
3003  const fawkes::MessageQueue* self = (const fawkes::MessageQueue*) tolua_tousertype(tolua_S,1,0);
3004 #ifndef TOLUA_RELEASE
3005  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'size'", NULL);
3006 #endif
3007  bool exc_caught = false;
3008  try {
3009  {
3010  unsigned int tolua_ret = (unsigned int) self->size();
3011  tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
3012  }
3013  } catch (fawkes::Exception &e) {
3014  exc_caught = true;
3015  lua_pushstring(tolua_S, e.what_no_backtrace());
3016  }
3017  catch (std::exception &e) {
3018  exc_caught = true;
3019  lua_pushstring(tolua_S, e.what());
3020  }
3021  if (exc_caught) lua_error(tolua_S);
3022 
3023  }
3024  return 1;
3025 #ifndef TOLUA_RELEASE
3026  tolua_lerror:
3027  tolua_error(tolua_S,"#ferror in function 'size'.",&tolua_err);
3028  return 0;
3029 #endif
3030 }
3031 #endif //#ifndef TOLUA_DISABLE
3032 
3033 /* method: flush of class fawkes::MessageQueue */
3034 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_flush00
3035 static int tolua_fawkesinterface_fawkes_MessageQueue_flush00(lua_State* tolua_S)
3036 {
3037 #ifndef TOLUA_RELEASE
3038  tolua_Error tolua_err;
3039  if (
3040  !tolua_isusertype(tolua_S,1,"fawkes::MessageQueue",0,&tolua_err) ||
3041  !tolua_isnoobj(tolua_S,2,&tolua_err)
3042  )
3043  goto tolua_lerror;
3044  else
3045 #endif
3046  {
3047  fawkes::MessageQueue* self = (fawkes::MessageQueue*) tolua_tousertype(tolua_S,1,0);
3048 #ifndef TOLUA_RELEASE
3049  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'flush'", NULL);
3050 #endif
3051  bool exc_caught = false;
3052  try {
3053  {
3054  self->flush();
3055  }
3056  } catch (fawkes::Exception &e) {
3057  exc_caught = true;
3058  lua_pushstring(tolua_S, e.what_no_backtrace());
3059  }
3060  catch (std::exception &e) {
3061  exc_caught = true;
3062  lua_pushstring(tolua_S, e.what());
3063  }
3064  if (exc_caught) lua_error(tolua_S);
3065 
3066  }
3067  return 0;
3068 #ifndef TOLUA_RELEASE
3069  tolua_lerror:
3070  tolua_error(tolua_S,"#ferror in function 'flush'.",&tolua_err);
3071  return 0;
3072 #endif
3073 }
3074 #endif //#ifndef TOLUA_DISABLE
3075 
3076 /* method: empty of class fawkes::MessageQueue */
3077 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_empty00
3078 static int tolua_fawkesinterface_fawkes_MessageQueue_empty00(lua_State* tolua_S)
3079 {
3080 #ifndef TOLUA_RELEASE
3081  tolua_Error tolua_err;
3082  if (
3083  !tolua_isusertype(tolua_S,1,"const fawkes::MessageQueue",0,&tolua_err) ||
3084  !tolua_isnoobj(tolua_S,2,&tolua_err)
3085  )
3086  goto tolua_lerror;
3087  else
3088 #endif
3089  {
3090  const fawkes::MessageQueue* self = (const fawkes::MessageQueue*) tolua_tousertype(tolua_S,1,0);
3091 #ifndef TOLUA_RELEASE
3092  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'empty'", NULL);
3093 #endif
3094  bool exc_caught = false;
3095  try {
3096  {
3097  bool tolua_ret = (bool) self->empty();
3098  tolua_pushboolean(tolua_S,(bool)tolua_ret);
3099  }
3100  } catch (fawkes::Exception &e) {
3101  exc_caught = true;
3102  lua_pushstring(tolua_S, e.what_no_backtrace());
3103  }
3104  catch (std::exception &e) {
3105  exc_caught = true;
3106  lua_pushstring(tolua_S, e.what());
3107  }
3108  if (exc_caught) lua_error(tolua_S);
3109 
3110  }
3111  return 1;
3112 #ifndef TOLUA_RELEASE
3113  tolua_lerror:
3114  tolua_error(tolua_S,"#ferror in function 'empty'.",&tolua_err);
3115  return 0;
3116 #endif
3117 }
3118 #endif //#ifndef TOLUA_DISABLE
3119 
3120 /* method: lock of class fawkes::MessageQueue */
3121 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_lock00
3122 static int tolua_fawkesinterface_fawkes_MessageQueue_lock00(lua_State* tolua_S)
3123 {
3124 #ifndef TOLUA_RELEASE
3125  tolua_Error tolua_err;
3126  if (
3127  !tolua_isusertype(tolua_S,1,"fawkes::MessageQueue",0,&tolua_err) ||
3128  !tolua_isnoobj(tolua_S,2,&tolua_err)
3129  )
3130  goto tolua_lerror;
3131  else
3132 #endif
3133  {
3134  fawkes::MessageQueue* self = (fawkes::MessageQueue*) tolua_tousertype(tolua_S,1,0);
3135 #ifndef TOLUA_RELEASE
3136  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'lock'", NULL);
3137 #endif
3138  bool exc_caught = false;
3139  try {
3140  {
3141  self->lock();
3142  }
3143  } catch (fawkes::Exception &e) {
3144  exc_caught = true;
3145  lua_pushstring(tolua_S, e.what_no_backtrace());
3146  }
3147  catch (std::exception &e) {
3148  exc_caught = true;
3149  lua_pushstring(tolua_S, e.what());
3150  }
3151  if (exc_caught) lua_error(tolua_S);
3152 
3153  }
3154  return 0;
3155 #ifndef TOLUA_RELEASE
3156  tolua_lerror:
3157  tolua_error(tolua_S,"#ferror in function 'lock'.",&tolua_err);
3158  return 0;
3159 #endif
3160 }
3161 #endif //#ifndef TOLUA_DISABLE
3162 
3163 /* method: try_lock of class fawkes::MessageQueue */
3164 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_try_lock00
3165 static int tolua_fawkesinterface_fawkes_MessageQueue_try_lock00(lua_State* tolua_S)
3166 {
3167 #ifndef TOLUA_RELEASE
3168  tolua_Error tolua_err;
3169  if (
3170  !tolua_isusertype(tolua_S,1,"fawkes::MessageQueue",0,&tolua_err) ||
3171  !tolua_isnoobj(tolua_S,2,&tolua_err)
3172  )
3173  goto tolua_lerror;
3174  else
3175 #endif
3176  {
3177  fawkes::MessageQueue* self = (fawkes::MessageQueue*) tolua_tousertype(tolua_S,1,0);
3178 #ifndef TOLUA_RELEASE
3179  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'try_lock'", NULL);
3180 #endif
3181  bool exc_caught = false;
3182  try {
3183  {
3184  bool tolua_ret = (bool) self->try_lock();
3185  tolua_pushboolean(tolua_S,(bool)tolua_ret);
3186  }
3187  } catch (fawkes::Exception &e) {
3188  exc_caught = true;
3189  lua_pushstring(tolua_S, e.what_no_backtrace());
3190  }
3191  catch (std::exception &e) {
3192  exc_caught = true;
3193  lua_pushstring(tolua_S, e.what());
3194  }
3195  if (exc_caught) lua_error(tolua_S);
3196 
3197  }
3198  return 1;
3199 #ifndef TOLUA_RELEASE
3200  tolua_lerror:
3201  tolua_error(tolua_S,"#ferror in function 'try_lock'.",&tolua_err);
3202  return 0;
3203 #endif
3204 }
3205 #endif //#ifndef TOLUA_DISABLE
3206 
3207 /* method: unlock of class fawkes::MessageQueue */
3208 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_unlock00
3209 static int tolua_fawkesinterface_fawkes_MessageQueue_unlock00(lua_State* tolua_S)
3210 {
3211 #ifndef TOLUA_RELEASE
3212  tolua_Error tolua_err;
3213  if (
3214  !tolua_isusertype(tolua_S,1,"fawkes::MessageQueue",0,&tolua_err) ||
3215  !tolua_isnoobj(tolua_S,2,&tolua_err)
3216  )
3217  goto tolua_lerror;
3218  else
3219 #endif
3220  {
3221  fawkes::MessageQueue* self = (fawkes::MessageQueue*) tolua_tousertype(tolua_S,1,0);
3222 #ifndef TOLUA_RELEASE
3223  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'unlock'", NULL);
3224 #endif
3225  bool exc_caught = false;
3226  try {
3227  {
3228  self->unlock();
3229  }
3230  } catch (fawkes::Exception &e) {
3231  exc_caught = true;
3232  lua_pushstring(tolua_S, e.what_no_backtrace());
3233  }
3234  catch (std::exception &e) {
3235  exc_caught = true;
3236  lua_pushstring(tolua_S, e.what());
3237  }
3238  if (exc_caught) lua_error(tolua_S);
3239 
3240  }
3241  return 0;
3242 #ifndef TOLUA_RELEASE
3243  tolua_lerror:
3244  tolua_error(tolua_S,"#ferror in function 'unlock'.",&tolua_err);
3245  return 0;
3246 #endif
3247 }
3248 #endif //#ifndef TOLUA_DISABLE
3249 
3250 /* method: first of class fawkes::MessageQueue */
3251 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_first00
3252 static int tolua_fawkesinterface_fawkes_MessageQueue_first00(lua_State* tolua_S)
3253 {
3254 #ifndef TOLUA_RELEASE
3255  tolua_Error tolua_err;
3256  if (
3257  !tolua_isusertype(tolua_S,1,"fawkes::MessageQueue",0,&tolua_err) ||
3258  !tolua_isnoobj(tolua_S,2,&tolua_err)
3259  )
3260  goto tolua_lerror;
3261  else
3262 #endif
3263  {
3264  fawkes::MessageQueue* self = (fawkes::MessageQueue*) tolua_tousertype(tolua_S,1,0);
3265 #ifndef TOLUA_RELEASE
3266  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'first'", NULL);
3267 #endif
3268  bool exc_caught = false;
3269  try {
3270  {
3271  fawkes::Message* tolua_ret = (fawkes::Message*) self->first();
3272  tolua_pushusertype(tolua_S,(void*)tolua_ret,"fawkes::Message");
3273  }
3274  } catch (fawkes::Exception &e) {
3275  exc_caught = true;
3276  lua_pushstring(tolua_S, e.what_no_backtrace());
3277  }
3278  catch (std::exception &e) {
3279  exc_caught = true;
3280  lua_pushstring(tolua_S, e.what());
3281  }
3282  if (exc_caught) lua_error(tolua_S);
3283 
3284  }
3285  return 1;
3286 #ifndef TOLUA_RELEASE
3287  tolua_lerror:
3288  tolua_error(tolua_S,"#ferror in function 'first'.",&tolua_err);
3289  return 0;
3290 #endif
3291 }
3292 #endif //#ifndef TOLUA_DISABLE
3293 
3294 /* method: pop of class fawkes::MessageQueue */
3295 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_pop00
3296 static int tolua_fawkesinterface_fawkes_MessageQueue_pop00(lua_State* tolua_S)
3297 {
3298 #ifndef TOLUA_RELEASE
3299  tolua_Error tolua_err;
3300  if (
3301  !tolua_isusertype(tolua_S,1,"fawkes::MessageQueue",0,&tolua_err) ||
3302  !tolua_isnoobj(tolua_S,2,&tolua_err)
3303  )
3304  goto tolua_lerror;
3305  else
3306 #endif
3307  {
3308  fawkes::MessageQueue* self = (fawkes::MessageQueue*) tolua_tousertype(tolua_S,1,0);
3309 #ifndef TOLUA_RELEASE
3310  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'pop'", NULL);
3311 #endif
3312  bool exc_caught = false;
3313  try {
3314  {
3315  self->pop();
3316  }
3317  } catch (fawkes::Exception &e) {
3318  exc_caught = true;
3319  lua_pushstring(tolua_S, e.what_no_backtrace());
3320  }
3321  catch (std::exception &e) {
3322  exc_caught = true;
3323  lua_pushstring(tolua_S, e.what());
3324  }
3325  if (exc_caught) lua_error(tolua_S);
3326 
3327  }
3328  return 0;
3329 #ifndef TOLUA_RELEASE
3330  tolua_lerror:
3331  tolua_error(tolua_S,"#ferror in function 'pop'.",&tolua_err);
3332  return 0;
3333 #endif
3334 }
3335 #endif //#ifndef TOLUA_DISABLE
3336 
3337 /* method: begin of class fawkes::MessageQueue */
3338 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_begin00
3339 static int tolua_fawkesinterface_fawkes_MessageQueue_begin00(lua_State* tolua_S)
3340 {
3341 #ifndef TOLUA_RELEASE
3342  tolua_Error tolua_err;
3343  if (
3344  !tolua_isusertype(tolua_S,1,"fawkes::MessageQueue",0,&tolua_err) ||
3345  !tolua_isnoobj(tolua_S,2,&tolua_err)
3346  )
3347  goto tolua_lerror;
3348  else
3349 #endif
3350  {
3351  fawkes::MessageQueue* self = (fawkes::MessageQueue*) tolua_tousertype(tolua_S,1,0);
3352 #ifndef TOLUA_RELEASE
3353  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'begin'", NULL);
3354 #endif
3355  bool exc_caught = false;
3356  try {
3357  {
3359  {
3360 #ifdef __cplusplus
3361  void* tolua_obj = Mtolua_new((fawkes::MessageQueue::MessageIterator)(tolua_ret));
3362  tolua_pushusertype(tolua_S,tolua_obj,"fawkes::MessageQueue::MessageIterator");
3363  tolua_register_gc(tolua_S,lua_gettop(tolua_S));
3364 #else
3365  void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(fawkes::MessageQueue::MessageIterator));
3366  tolua_pushusertype(tolua_S,tolua_obj,"fawkes::MessageQueue::MessageIterator");
3367  tolua_register_gc(tolua_S,lua_gettop(tolua_S));
3368 #endif
3369  }
3370  }
3371  } catch (fawkes::Exception &e) {
3372  exc_caught = true;
3373  lua_pushstring(tolua_S, e.what_no_backtrace());
3374  }
3375  catch (std::exception &e) {
3376  exc_caught = true;
3377  lua_pushstring(tolua_S, e.what());
3378  }
3379  if (exc_caught) lua_error(tolua_S);
3380 
3381  }
3382  return 1;
3383 #ifndef TOLUA_RELEASE
3384  tolua_lerror:
3385  tolua_error(tolua_S,"#ferror in function 'begin'.",&tolua_err);
3386  return 0;
3387 #endif
3388 }
3389 #endif //#ifndef TOLUA_DISABLE
3390 
3391 /* method: end of class fawkes::MessageQueue */
3392 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_end00
3393 static int tolua_fawkesinterface_fawkes_MessageQueue_end00(lua_State* tolua_S)
3394 {
3395 #ifndef TOLUA_RELEASE
3396  tolua_Error tolua_err;
3397  if (
3398  !tolua_isusertype(tolua_S,1,"fawkes::MessageQueue",0,&tolua_err) ||
3399  !tolua_isnoobj(tolua_S,2,&tolua_err)
3400  )
3401  goto tolua_lerror;
3402  else
3403 #endif
3404  {
3405  fawkes::MessageQueue* self = (fawkes::MessageQueue*) tolua_tousertype(tolua_S,1,0);
3406 #ifndef TOLUA_RELEASE
3407  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'end'", NULL);
3408 #endif
3409  bool exc_caught = false;
3410  try {
3411  {
3413  {
3414 #ifdef __cplusplus
3415  void* tolua_obj = Mtolua_new((fawkes::MessageQueue::MessageIterator)(tolua_ret));
3416  tolua_pushusertype(tolua_S,tolua_obj,"fawkes::MessageQueue::MessageIterator");
3417  tolua_register_gc(tolua_S,lua_gettop(tolua_S));
3418 #else
3419  void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(fawkes::MessageQueue::MessageIterator));
3420  tolua_pushusertype(tolua_S,tolua_obj,"fawkes::MessageQueue::MessageIterator");
3421  tolua_register_gc(tolua_S,lua_gettop(tolua_S));
3422 #endif
3423  }
3424  }
3425  } catch (fawkes::Exception &e) {
3426  exc_caught = true;
3427  lua_pushstring(tolua_S, e.what_no_backtrace());
3428  }
3429  catch (std::exception &e) {
3430  exc_caught = true;
3431  lua_pushstring(tolua_S, e.what());
3432  }
3433  if (exc_caught) lua_error(tolua_S);
3434 
3435  }
3436  return 1;
3437 #ifndef TOLUA_RELEASE
3438  tolua_lerror:
3439  tolua_error(tolua_S,"#ferror in function 'end'.",&tolua_err);
3440  return 0;
3441 #endif
3442 }
3443 #endif //#ifndef TOLUA_DISABLE
3444 
3445 /* Open function */
3446 TOLUA_API int tolua_fawkesinterface_open (lua_State* tolua_S)
3447 {
3448  tolua_open(tolua_S);
3449  tolua_reg_types(tolua_S);
3450  tolua_module(tolua_S,NULL,0);
3451  tolua_beginmodule(tolua_S,NULL);
3452  tolua_module(tolua_S,"fawkes",0);
3453  tolua_beginmodule(tolua_S,"fawkes");
3454  tolua_cclass(tolua_S,"Interface","fawkes::Interface","",NULL);
3455  tolua_beginmodule(tolua_S,"Interface");
3456  tolua_function(tolua_S,"oftype",tolua_fawkesinterface_fawkes_Interface_oftype00);
3457  tolua_function(tolua_S,"datachunk",tolua_fawkesinterface_fawkes_Interface_datachunk00);
3458  tolua_function(tolua_S,"datasize",tolua_fawkesinterface_fawkes_Interface_datasize00);
3459  tolua_function(tolua_S,"type",tolua_fawkesinterface_fawkes_Interface_type00);
3460  tolua_function(tolua_S,"id",tolua_fawkesinterface_fawkes_Interface_id00);
3461  tolua_function(tolua_S,"uid",tolua_fawkesinterface_fawkes_Interface_uid00);
3462  tolua_function(tolua_S,"serial",tolua_fawkesinterface_fawkes_Interface_serial00);
3463  tolua_function(tolua_S,"mem_serial",tolua_fawkesinterface_fawkes_Interface_mem_serial00);
3464  tolua_function(tolua_S,".eq",tolua_fawkesinterface_fawkes_Interface__eq00);
3465  tolua_function(tolua_S,"hash",tolua_fawkesinterface_fawkes_Interface_hash00);
3466  tolua_function(tolua_S,"hash_size",tolua_fawkesinterface_fawkes_Interface_hash_size00);
3467  tolua_function(tolua_S,"hash_printable",tolua_fawkesinterface_fawkes_Interface_hash_printable00);
3468  tolua_function(tolua_S,"is_writer",tolua_fawkesinterface_fawkes_Interface_is_writer00);
3469  tolua_function(tolua_S,"set_from_chunk",tolua_fawkesinterface_fawkes_Interface_set_from_chunk00);
3470  tolua_function(tolua_S,"create_message_generic",tolua_fawkesinterface_fawkes_Interface_create_message_generic00);
3471  tolua_function(tolua_S,"read",tolua_fawkesinterface_fawkes_Interface_read00);
3472  tolua_function(tolua_S,"write",tolua_fawkesinterface_fawkes_Interface_write00);
3473  tolua_function(tolua_S,"has_writer",tolua_fawkesinterface_fawkes_Interface_has_writer00);
3474  tolua_function(tolua_S,"num_readers",tolua_fawkesinterface_fawkes_Interface_num_readers00);
3475  tolua_function(tolua_S,"changed",tolua_fawkesinterface_fawkes_Interface_changed00);
3476  tolua_function(tolua_S,"timestamp",tolua_fawkesinterface_fawkes_Interface_timestamp00);
3477  tolua_function(tolua_S,"set_auto_timestamping",tolua_fawkesinterface_fawkes_Interface_set_auto_timestamping00);
3478  tolua_function(tolua_S,"set_timestamp",tolua_fawkesinterface_fawkes_Interface_set_timestamp00);
3479  tolua_function(tolua_S,"set_clock",tolua_fawkesinterface_fawkes_Interface_set_clock00);
3480  tolua_function(tolua_S,"msgq_enqueue_copy",tolua_fawkesinterface_fawkes_Interface_msgq_enqueue_copy00);
3481  tolua_function(tolua_S,"msgq_remove",tolua_fawkesinterface_fawkes_Interface_msgq_remove00);
3482  tolua_function(tolua_S,"msgq_remove",tolua_fawkesinterface_fawkes_Interface_msgq_remove01);
3483  tolua_function(tolua_S,"msgq_size",tolua_fawkesinterface_fawkes_Interface_msgq_size00);
3484  tolua_function(tolua_S,"msgq_flush",tolua_fawkesinterface_fawkes_Interface_msgq_flush00);
3485  tolua_function(tolua_S,"msgq_lock",tolua_fawkesinterface_fawkes_Interface_msgq_lock00);
3486  tolua_function(tolua_S,"msgq_try_lock",tolua_fawkesinterface_fawkes_Interface_msgq_try_lock00);
3487  tolua_function(tolua_S,"msgq_unlock",tolua_fawkesinterface_fawkes_Interface_msgq_unlock00);
3488  tolua_function(tolua_S,"msgq_pop",tolua_fawkesinterface_fawkes_Interface_msgq_pop00);
3489  tolua_function(tolua_S,"msgq_first_generic",tolua_fawkesinterface_fawkes_Interface_msgq_first_generic00);
3490  tolua_function(tolua_S,"msgq_empty",tolua_fawkesinterface_fawkes_Interface_msgq_empty00);
3491  tolua_endmodule(tolua_S);
3492 
3493  { /* begin embedded lua code */
3494  int top = lua_gettop(tolua_S);
3495  static const unsigned char B[] = {
3496  10,102,117,110, 99,116,105,111,110, 32,102, 97,119,107,101,
3497  115, 46, 73,110,116,101,114,102, 97, 99,101, 58,109,115,103,
3498  113, 95,102,105,114,115,116, 40, 41, 10,108,111, 99, 97,108,
3499  32,109,101,115,115, 97,103,101, 32, 61, 32,115,101,108,102,
3500  58,109,115,103,113, 95,102,105,114,115,116, 95,103,101,110,
3501  101,114,105, 99, 40, 41, 10,108,111, 99, 97,108, 32,109, 32,
3502  61, 32,116,111,108,117, 97, 46, 99, 97,115,116, 40,109,101,
3503  115,115, 97,103,101, 44, 32, 34,102, 97,119,107,101,115, 58,
3504  58, 34, 32, 46, 46, 32,115,101,108,102, 58,116,121,112,101,
3505  40, 41, 32, 46, 46, 32, 34, 58, 58, 34, 32, 46, 46, 32,109,
3506  101,115,115, 97,103,101, 58,116,121,112,101, 40, 41, 41, 10,
3507  114,101,116,117,114,110, 32,109, 10,101,110,100, 10,102,117,
3508  110, 99,116,105,111,110, 32,102, 97,119,107,101,115, 46, 73,
3509  110,116,101,114,102, 97, 99,101, 58, 99,114,101, 97,116,101,
3510  95,109,101,115,115, 97,103,101, 40,116,121,112,101, 41, 10,
3511  108,111, 99, 97,108, 32,109,101,115,115, 97,103,101, 32, 61,
3512  32,115,101,108,102, 58, 99,114,101, 97,116,101, 95,109,101,
3513  115,115, 97,103,101, 95,103,101,110,101,114,105, 99, 40,116,
3514  121,112,101, 41, 10,114,101,116,117,114,110, 32,116,111,108,
3515  117, 97, 46, 99, 97,115,116, 40,109,101,115,115, 97,103,101,
3516  44, 32, 34,102, 97,119,107,101,115, 58, 58, 34, 32, 46, 46,
3517  32,115,101,108,102, 58,116,121,112,101, 40, 41, 32, 46, 46,
3518  32, 34, 58, 58, 34, 32, 46, 46, 32,109,101,115,115, 97,103,
3519  101, 58,116,121,112,101, 40, 41, 41, 10,101,110,100, 10,102,
3520  117,110, 99,116,105,111,110, 32,102, 97,119,107,101,115, 46,
3521  73,110,116,101,114,102, 97, 99,101, 58,109,115,103,113, 95,
3522  101,110,113,117,101,117,101, 40,109,101,115,115, 97,103,101,
3523  41, 10,114,101,116,117,114,110, 32,115,101,108,102, 58,109,
3524  115,103,113, 95,101,110,113,117,101,117,101, 95, 99,111,112,
3525  121, 40,109,101,115,115, 97,103,101, 41, 10,101,110,100, 45,
3526  45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,32
3527  };
3528  tolua_dobuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code 1");
3529  lua_settop(tolua_S, top);
3530  } /* end of embedded lua code */
3531 
3532  tolua_endmodule(tolua_S);
3533  tolua_module(tolua_S,"fawkes",0);
3534  tolua_beginmodule(tolua_S,"fawkes");
3535  #ifdef __cplusplus
3536  tolua_cclass(tolua_S,"Message","fawkes::Message","RefCount",tolua_collect_fawkes__Message);
3537  #else
3538  tolua_cclass(tolua_S,"Message","fawkes::Message","RefCount",NULL);
3539  #endif
3540  tolua_beginmodule(tolua_S,"Message");
3541  tolua_function(tolua_S,"new",tolua_fawkesinterface_fawkes_Message_new00);
3542  tolua_function(tolua_S,"new_local",tolua_fawkesinterface_fawkes_Message_new00_local);
3543  tolua_function(tolua_S,".call",tolua_fawkesinterface_fawkes_Message_new00_local);
3544  tolua_function(tolua_S,"new",tolua_fawkesinterface_fawkes_Message_new01);
3545  tolua_function(tolua_S,"new_local",tolua_fawkesinterface_fawkes_Message_new01_local);
3546  tolua_function(tolua_S,".call",tolua_fawkesinterface_fawkes_Message_new01_local);
3547  tolua_function(tolua_S,"new",tolua_fawkesinterface_fawkes_Message_new02);
3548  tolua_function(tolua_S,"new_local",tolua_fawkesinterface_fawkes_Message_new02_local);
3549  tolua_function(tolua_S,".call",tolua_fawkesinterface_fawkes_Message_new02_local);
3550  tolua_function(tolua_S,"id",tolua_fawkesinterface_fawkes_Message_id00);
3551  tolua_function(tolua_S,"sender_id",tolua_fawkesinterface_fawkes_Message_sender_id00);
3552  tolua_function(tolua_S,"sender_thread_name",tolua_fawkesinterface_fawkes_Message_sender_thread_name00);
3553  tolua_function(tolua_S,"interface",tolua_fawkesinterface_fawkes_Message_interface00);
3554  tolua_function(tolua_S,"type",tolua_fawkesinterface_fawkes_Message_type00);
3555  tolua_function(tolua_S,"datachunk",tolua_fawkesinterface_fawkes_Message_datachunk00);
3556  tolua_function(tolua_S,"datasize",tolua_fawkesinterface_fawkes_Message_datasize00);
3557  tolua_function(tolua_S,"set_from_chunk",tolua_fawkesinterface_fawkes_Message_set_from_chunk00);
3558  tolua_function(tolua_S,"ref",tolua_fawkesinterface_fawkes_Message_ref00);
3559  tolua_function(tolua_S,"unref",tolua_fawkesinterface_fawkes_Message_unref00);
3560  tolua_function(tolua_S,"refcount",tolua_fawkesinterface_fawkes_Message_refcount00);
3561  tolua_endmodule(tolua_S);
3562  tolua_endmodule(tolua_S);
3563  tolua_module(tolua_S,"fawkes",0);
3564  tolua_beginmodule(tolua_S,"fawkes");
3565  #ifdef __cplusplus
3566  tolua_cclass(tolua_S,"MessageQueue","fawkes::MessageQueue","",tolua_collect_fawkes__MessageQueue);
3567  #else
3568  tolua_cclass(tolua_S,"MessageQueue","fawkes::MessageQueue","",NULL);
3569  #endif
3570  tolua_beginmodule(tolua_S,"MessageQueue");
3571  tolua_function(tolua_S,"new",tolua_fawkesinterface_fawkes_MessageQueue_new00);
3572  tolua_function(tolua_S,"new_local",tolua_fawkesinterface_fawkes_MessageQueue_new00_local);
3573  tolua_function(tolua_S,".call",tolua_fawkesinterface_fawkes_MessageQueue_new00_local);
3574  tolua_function(tolua_S,"delete",tolua_fawkesinterface_fawkes_MessageQueue_delete00);
3575  #ifdef __cplusplus
3576  tolua_cclass(tolua_S,"MessageIterator","fawkes::MessageQueue::MessageIterator","",tolua_collect_fawkes__MessageQueue__MessageIterator);
3577  #else
3578  tolua_cclass(tolua_S,"MessageIterator","fawkes::MessageQueue::MessageIterator","",NULL);
3579  #endif
3580  tolua_beginmodule(tolua_S,"MessageIterator");
3581  tolua_function(tolua_S,"new",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00);
3582  tolua_function(tolua_S,"new_local",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00_local);
3583  tolua_function(tolua_S,".call",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00_local);
3584  tolua_function(tolua_S,"new",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01);
3585  tolua_function(tolua_S,"new_local",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01_local);
3586  tolua_function(tolua_S,".call",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01_local);
3587  tolua_function(tolua_S,".add",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__add00);
3588  tolua_function(tolua_S,".eq",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__eq00);
3589  tolua_function(tolua_S,".mul",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__mul00);
3590  tolua_function(tolua_S,"id",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_id00);
3591  tolua_endmodule(tolua_S);
3592  tolua_function(tolua_S,"append",tolua_fawkesinterface_fawkes_MessageQueue_append00);
3593  tolua_function(tolua_S,"remove",tolua_fawkesinterface_fawkes_MessageQueue_remove00);
3594  tolua_function(tolua_S,"remove",tolua_fawkesinterface_fawkes_MessageQueue_remove01);
3595  tolua_function(tolua_S,"insert_after",tolua_fawkesinterface_fawkes_MessageQueue_insert_after00);
3596  tolua_function(tolua_S,"size",tolua_fawkesinterface_fawkes_MessageQueue_size00);
3597  tolua_function(tolua_S,"flush",tolua_fawkesinterface_fawkes_MessageQueue_flush00);
3598  tolua_function(tolua_S,"empty",tolua_fawkesinterface_fawkes_MessageQueue_empty00);
3599  tolua_function(tolua_S,"lock",tolua_fawkesinterface_fawkes_MessageQueue_lock00);
3600  tolua_function(tolua_S,"try_lock",tolua_fawkesinterface_fawkes_MessageQueue_try_lock00);
3601  tolua_function(tolua_S,"unlock",tolua_fawkesinterface_fawkes_MessageQueue_unlock00);
3602  tolua_function(tolua_S,"first",tolua_fawkesinterface_fawkes_MessageQueue_first00);
3603  tolua_function(tolua_S,"pop",tolua_fawkesinterface_fawkes_MessageQueue_pop00);
3604  tolua_function(tolua_S,"begin",tolua_fawkesinterface_fawkes_MessageQueue_begin00);
3605  tolua_function(tolua_S,"end",tolua_fawkesinterface_fawkes_MessageQueue_end00);
3606  tolua_endmodule(tolua_S);
3607  tolua_endmodule(tolua_S);
3608  tolua_endmodule(tolua_S);
3609  return 1;
3610 }
3611 
3612 
3613 extern "C" {
3614 #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
3615  TOLUA_API int luaopen_fawkesinterface (lua_State* tolua_S) {
3616  return tolua_fawkesinterface_open(tolua_S);
3617 };
3618 #endif
3619 }
3620 
3621 
const char * sender_thread_name() const
Get sender of message.
Definition: message.cpp:335
Interface * interface() const
Get transmitting interface.
Definition: message.cpp:368
Base class for all messages passed through interfaces in Fawkes BlackBoard.
Definition: message.h:44
unsigned int id() const
Get message ID.
Definition: message.cpp:197
unsigned int refcount()
Get reference count for this instance.
Definition: refcount.cpp:125
This is supposed to be the central clock in Fawkes.
Definition: clock.h:34
A class for handling time.
Definition: time.h:91
Base class for all Fawkes BlackBoard interfaces.
Definition: interface.h:79
const void * datachunk() const
Get pointer to data.
Definition: message.cpp:285
unsigned int sender_id() const
Get ID of sender.
Definition: message.cpp:345
Base class for exceptions in Fawkes.
Definition: exception.h:36
Message queue used in interfaces.
Definition: message_queue.h:42
virtual const char * what_no_backtrace() const
Get primary string (does not implicitly print the back trace).
Definition: exception.cpp:686
unsigned int datasize() const
Get size of data.
Definition: message.cpp:295
const char * type() const
Get message type.
Definition: message.cpp:378