19 #include <core/exception.h> 29 TOLUA_API
int tolua_fawkesinterface_open (lua_State* tolua_S);
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> 40 static int tolua_collect_fawkes__MessageQueue__MessageIterator (lua_State* tolua_S)
47 static int tolua_collect_fawkes__Message (lua_State* tolua_S)
54 static int tolua_collect_fawkes__MessageQueue (lua_State* tolua_S)
61 static int tolua_collect_size_t (lua_State* tolua_S)
63 size_t*
self = (
size_t*) tolua_tousertype(tolua_S,1,0);
71 static void tolua_reg_types (lua_State* tolua_S)
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");
84 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_oftype00 85 static int tolua_fawkesinterface_fawkes_Interface_oftype00(lua_State* tolua_S)
88 tolua_Error tolua_err;
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)
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);
103 bool exc_caught =
false;
106 bool tolua_ret = (bool) self->oftype(interface_type);
107 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
113 catch (std::exception &e) {
115 lua_pushstring(tolua_S, e.what());
117 if (exc_caught) lua_error(tolua_S);
121 #ifndef TOLUA_RELEASE 123 tolua_error(tolua_S,
"#ferror in function 'oftype'.",&tolua_err);
127 #endif //#ifndef TOLUA_DISABLE 130 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_datachunk00 131 static int tolua_fawkesinterface_fawkes_Interface_datachunk00(lua_State* tolua_S)
133 #ifndef TOLUA_RELEASE 134 tolua_Error tolua_err;
136 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
137 !tolua_isnoobj(tolua_S,2,&tolua_err)
144 #ifndef TOLUA_RELEASE 145 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'datachunk'", NULL);
147 bool exc_caught =
false;
150 const void* tolua_ret = (
const void*) self->datachunk();
151 tolua_pushuserdata(tolua_S,(
void*)tolua_ret);
157 catch (std::exception &e) {
159 lua_pushstring(tolua_S, e.what());
161 if (exc_caught) lua_error(tolua_S);
165 #ifndef TOLUA_RELEASE 167 tolua_error(tolua_S,
"#ferror in function 'datachunk'.",&tolua_err);
171 #endif //#ifndef TOLUA_DISABLE 174 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_datasize00 175 static int tolua_fawkesinterface_fawkes_Interface_datasize00(lua_State* tolua_S)
177 #ifndef TOLUA_RELEASE 178 tolua_Error tolua_err;
180 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
181 !tolua_isnoobj(tolua_S,2,&tolua_err)
188 #ifndef TOLUA_RELEASE 189 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'datasize'", NULL);
191 bool exc_caught =
false;
194 unsigned int tolua_ret = (
unsigned int) self->datasize();
195 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
201 catch (std::exception &e) {
203 lua_pushstring(tolua_S, e.what());
205 if (exc_caught) lua_error(tolua_S);
209 #ifndef TOLUA_RELEASE 211 tolua_error(tolua_S,
"#ferror in function 'datasize'.",&tolua_err);
215 #endif //#ifndef TOLUA_DISABLE 218 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_type00 219 static int tolua_fawkesinterface_fawkes_Interface_type00(lua_State* tolua_S)
221 #ifndef TOLUA_RELEASE 222 tolua_Error tolua_err;
224 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
225 !tolua_isnoobj(tolua_S,2,&tolua_err)
232 #ifndef TOLUA_RELEASE 233 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'type'", NULL);
235 bool exc_caught =
false;
238 const char* tolua_ret = (
const char*) self->type();
239 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
245 catch (std::exception &e) {
247 lua_pushstring(tolua_S, e.what());
249 if (exc_caught) lua_error(tolua_S);
253 #ifndef TOLUA_RELEASE 255 tolua_error(tolua_S,
"#ferror in function 'type'.",&tolua_err);
259 #endif //#ifndef TOLUA_DISABLE 262 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_id00 263 static int tolua_fawkesinterface_fawkes_Interface_id00(lua_State* tolua_S)
265 #ifndef TOLUA_RELEASE 266 tolua_Error tolua_err;
268 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
269 !tolua_isnoobj(tolua_S,2,&tolua_err)
276 #ifndef TOLUA_RELEASE 277 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'id'", NULL);
279 bool exc_caught =
false;
282 const char* tolua_ret = (
const char*) self->id();
283 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
289 catch (std::exception &e) {
291 lua_pushstring(tolua_S, e.what());
293 if (exc_caught) lua_error(tolua_S);
297 #ifndef TOLUA_RELEASE 299 tolua_error(tolua_S,
"#ferror in function 'id'.",&tolua_err);
303 #endif //#ifndef TOLUA_DISABLE 306 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_uid00 307 static int tolua_fawkesinterface_fawkes_Interface_uid00(lua_State* tolua_S)
309 #ifndef TOLUA_RELEASE 310 tolua_Error tolua_err;
312 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
313 !tolua_isnoobj(tolua_S,2,&tolua_err)
320 #ifndef TOLUA_RELEASE 321 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'uid'", NULL);
323 bool exc_caught =
false;
326 const char* tolua_ret = (
const char*) self->uid();
327 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
333 catch (std::exception &e) {
335 lua_pushstring(tolua_S, e.what());
337 if (exc_caught) lua_error(tolua_S);
341 #ifndef TOLUA_RELEASE 343 tolua_error(tolua_S,
"#ferror in function 'uid'.",&tolua_err);
347 #endif //#ifndef TOLUA_DISABLE 350 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_serial00 351 static int tolua_fawkesinterface_fawkes_Interface_serial00(lua_State* tolua_S)
353 #ifndef TOLUA_RELEASE 354 tolua_Error tolua_err;
356 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
357 !tolua_isnoobj(tolua_S,2,&tolua_err)
364 #ifndef TOLUA_RELEASE 365 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'serial'", NULL);
367 bool exc_caught =
false;
370 unsigned int tolua_ret = (
unsigned int) self->serial();
371 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
377 catch (std::exception &e) {
379 lua_pushstring(tolua_S, e.what());
381 if (exc_caught) lua_error(tolua_S);
385 #ifndef TOLUA_RELEASE 387 tolua_error(tolua_S,
"#ferror in function 'serial'.",&tolua_err);
391 #endif //#ifndef TOLUA_DISABLE 394 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_mem_serial00 395 static int tolua_fawkesinterface_fawkes_Interface_mem_serial00(lua_State* tolua_S)
397 #ifndef TOLUA_RELEASE 398 tolua_Error tolua_err;
400 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
401 !tolua_isnoobj(tolua_S,2,&tolua_err)
408 #ifndef TOLUA_RELEASE 409 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'mem_serial'", NULL);
411 bool exc_caught =
false;
414 unsigned int tolua_ret = (
unsigned int) self->mem_serial();
415 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
421 catch (std::exception &e) {
423 lua_pushstring(tolua_S, e.what());
425 if (exc_caught) lua_error(tolua_S);
429 #ifndef TOLUA_RELEASE 431 tolua_error(tolua_S,
"#ferror in function 'mem_serial'.",&tolua_err);
435 #endif //#ifndef TOLUA_DISABLE 438 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface__eq00 439 static int tolua_fawkesinterface_fawkes_Interface__eq00(lua_State* tolua_S)
441 #ifndef TOLUA_RELEASE 442 tolua_Error tolua_err;
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)
454 #ifndef TOLUA_RELEASE 455 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'operator=='", NULL);
457 bool exc_caught =
false;
460 bool tolua_ret = (bool) self->operator==(*comp);
461 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
467 catch (std::exception &e) {
469 lua_pushstring(tolua_S, e.what());
471 if (exc_caught) lua_error(tolua_S);
475 #ifndef TOLUA_RELEASE 477 tolua_error(tolua_S,
"#ferror in function '.eq'.",&tolua_err);
481 #endif //#ifndef TOLUA_DISABLE 484 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_hash00 485 static int tolua_fawkesinterface_fawkes_Interface_hash00(lua_State* tolua_S)
487 #ifndef TOLUA_RELEASE 488 tolua_Error tolua_err;
490 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
491 !tolua_isnoobj(tolua_S,2,&tolua_err)
498 #ifndef TOLUA_RELEASE 499 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'hash'", NULL);
501 bool exc_caught =
false;
504 unsigned const char* tolua_ret = (
unsigned const char*) self->hash();
505 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
511 catch (std::exception &e) {
513 lua_pushstring(tolua_S, e.what());
515 if (exc_caught) lua_error(tolua_S);
519 #ifndef TOLUA_RELEASE 521 tolua_error(tolua_S,
"#ferror in function 'hash'.",&tolua_err);
525 #endif //#ifndef TOLUA_DISABLE 528 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_hash_size00 529 static int tolua_fawkesinterface_fawkes_Interface_hash_size00(lua_State* tolua_S)
531 #ifndef TOLUA_RELEASE 532 tolua_Error tolua_err;
534 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
535 !tolua_isnoobj(tolua_S,2,&tolua_err)
542 #ifndef TOLUA_RELEASE 543 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'hash_size'", NULL);
545 bool exc_caught =
false;
548 size_t tolua_ret = (size_t) self->hash_size();
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));
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));
565 catch (std::exception &e) {
567 lua_pushstring(tolua_S, e.what());
569 if (exc_caught) lua_error(tolua_S);
573 #ifndef TOLUA_RELEASE 575 tolua_error(tolua_S,
"#ferror in function 'hash_size'.",&tolua_err);
579 #endif //#ifndef TOLUA_DISABLE 582 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_hash_printable00 583 static int tolua_fawkesinterface_fawkes_Interface_hash_printable00(lua_State* tolua_S)
585 #ifndef TOLUA_RELEASE 586 tolua_Error tolua_err;
588 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
589 !tolua_isnoobj(tolua_S,2,&tolua_err)
596 #ifndef TOLUA_RELEASE 597 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'hash_printable'", NULL);
599 bool exc_caught =
false;
602 const char* tolua_ret = (
const char*) self->hash_printable();
603 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
609 catch (std::exception &e) {
611 lua_pushstring(tolua_S, e.what());
613 if (exc_caught) lua_error(tolua_S);
617 #ifndef TOLUA_RELEASE 619 tolua_error(tolua_S,
"#ferror in function 'hash_printable'.",&tolua_err);
623 #endif //#ifndef TOLUA_DISABLE 626 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_is_writer00 627 static int tolua_fawkesinterface_fawkes_Interface_is_writer00(lua_State* tolua_S)
629 #ifndef TOLUA_RELEASE 630 tolua_Error tolua_err;
632 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
633 !tolua_isnoobj(tolua_S,2,&tolua_err)
640 #ifndef TOLUA_RELEASE 641 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_writer'", NULL);
643 bool exc_caught =
false;
646 bool tolua_ret = (bool) self->is_writer();
647 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
653 catch (std::exception &e) {
655 lua_pushstring(tolua_S, e.what());
657 if (exc_caught) lua_error(tolua_S);
661 #ifndef TOLUA_RELEASE 663 tolua_error(tolua_S,
"#ferror in function 'is_writer'.",&tolua_err);
667 #endif //#ifndef TOLUA_DISABLE 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)
673 #ifndef TOLUA_RELEASE 674 tolua_Error tolua_err;
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)
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);
689 bool exc_caught =
false;
692 self->set_from_chunk(chunk);
698 catch (std::exception &e) {
700 lua_pushstring(tolua_S, e.what());
702 if (exc_caught) lua_error(tolua_S);
706 #ifndef TOLUA_RELEASE 708 tolua_error(tolua_S,
"#ferror in function 'set_from_chunk'.",&tolua_err);
712 #endif //#ifndef TOLUA_DISABLE 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)
718 #ifndef TOLUA_RELEASE 719 tolua_Error tolua_err;
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)
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);
734 bool exc_caught =
false;
738 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
744 catch (std::exception &e) {
746 lua_pushstring(tolua_S, e.what());
748 if (exc_caught) lua_error(tolua_S);
752 #ifndef TOLUA_RELEASE 754 tolua_error(tolua_S,
"#ferror in function 'create_message_generic'.",&tolua_err);
758 #endif //#ifndef TOLUA_DISABLE 761 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_read00 762 static int tolua_fawkesinterface_fawkes_Interface_read00(lua_State* tolua_S)
764 #ifndef TOLUA_RELEASE 765 tolua_Error tolua_err;
767 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
768 !tolua_isnoobj(tolua_S,2,&tolua_err)
775 #ifndef TOLUA_RELEASE 776 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'read'", NULL);
778 bool exc_caught =
false;
787 catch (std::exception &e) {
789 lua_pushstring(tolua_S, e.what());
791 if (exc_caught) lua_error(tolua_S);
795 #ifndef TOLUA_RELEASE 797 tolua_error(tolua_S,
"#ferror in function 'read'.",&tolua_err);
801 #endif //#ifndef TOLUA_DISABLE 804 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_write00 805 static int tolua_fawkesinterface_fawkes_Interface_write00(lua_State* tolua_S)
807 #ifndef TOLUA_RELEASE 808 tolua_Error tolua_err;
810 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
811 !tolua_isnoobj(tolua_S,2,&tolua_err)
818 #ifndef TOLUA_RELEASE 819 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'write'", NULL);
821 bool exc_caught =
false;
830 catch (std::exception &e) {
832 lua_pushstring(tolua_S, e.what());
834 if (exc_caught) lua_error(tolua_S);
838 #ifndef TOLUA_RELEASE 840 tolua_error(tolua_S,
"#ferror in function 'write'.",&tolua_err);
844 #endif //#ifndef TOLUA_DISABLE 847 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_has_writer00 848 static int tolua_fawkesinterface_fawkes_Interface_has_writer00(lua_State* tolua_S)
850 #ifndef TOLUA_RELEASE 851 tolua_Error tolua_err;
853 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
854 !tolua_isnoobj(tolua_S,2,&tolua_err)
861 #ifndef TOLUA_RELEASE 862 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'has_writer'", NULL);
864 bool exc_caught =
false;
867 bool tolua_ret = (bool) self->has_writer();
868 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
874 catch (std::exception &e) {
876 lua_pushstring(tolua_S, e.what());
878 if (exc_caught) lua_error(tolua_S);
882 #ifndef TOLUA_RELEASE 884 tolua_error(tolua_S,
"#ferror in function 'has_writer'.",&tolua_err);
888 #endif //#ifndef TOLUA_DISABLE 891 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_num_readers00 892 static int tolua_fawkesinterface_fawkes_Interface_num_readers00(lua_State* tolua_S)
894 #ifndef TOLUA_RELEASE 895 tolua_Error tolua_err;
897 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
898 !tolua_isnoobj(tolua_S,2,&tolua_err)
905 #ifndef TOLUA_RELEASE 906 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'num_readers'", NULL);
908 bool exc_caught =
false;
911 unsigned int tolua_ret = (
unsigned int) self->num_readers();
912 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
918 catch (std::exception &e) {
920 lua_pushstring(tolua_S, e.what());
922 if (exc_caught) lua_error(tolua_S);
926 #ifndef TOLUA_RELEASE 928 tolua_error(tolua_S,
"#ferror in function 'num_readers'.",&tolua_err);
932 #endif //#ifndef TOLUA_DISABLE 935 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_changed00 936 static int tolua_fawkesinterface_fawkes_Interface_changed00(lua_State* tolua_S)
938 #ifndef TOLUA_RELEASE 939 tolua_Error tolua_err;
941 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
942 !tolua_isnoobj(tolua_S,2,&tolua_err)
949 #ifndef TOLUA_RELEASE 950 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'changed'", NULL);
952 bool exc_caught =
false;
955 bool tolua_ret = (bool) self->changed();
956 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
962 catch (std::exception &e) {
964 lua_pushstring(tolua_S, e.what());
966 if (exc_caught) lua_error(tolua_S);
970 #ifndef TOLUA_RELEASE 972 tolua_error(tolua_S,
"#ferror in function 'changed'.",&tolua_err);
976 #endif //#ifndef TOLUA_DISABLE 979 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_timestamp00 980 static int tolua_fawkesinterface_fawkes_Interface_timestamp00(lua_State* tolua_S)
982 #ifndef TOLUA_RELEASE 983 tolua_Error tolua_err;
985 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
986 !tolua_isnoobj(tolua_S,2,&tolua_err)
993 #ifndef TOLUA_RELEASE 994 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'timestamp'", NULL);
996 bool exc_caught =
false;
1000 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"const fawkes::Time");
1006 catch (std::exception &e) {
1008 lua_pushstring(tolua_S, e.what());
1010 if (exc_caught) lua_error(tolua_S);
1014 #ifndef TOLUA_RELEASE 1016 tolua_error(tolua_S,
"#ferror in function 'timestamp'.",&tolua_err);
1020 #endif //#ifndef TOLUA_DISABLE 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)
1026 #ifndef TOLUA_RELEASE 1027 tolua_Error tolua_err;
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)
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);
1042 bool exc_caught =
false;
1045 self->set_auto_timestamping(enabled);
1051 catch (std::exception &e) {
1053 lua_pushstring(tolua_S, e.what());
1055 if (exc_caught) lua_error(tolua_S);
1059 #ifndef TOLUA_RELEASE 1061 tolua_error(tolua_S,
"#ferror in function 'set_auto_timestamping'.",&tolua_err);
1065 #endif //#ifndef TOLUA_DISABLE 1068 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_set_timestamp00 1069 static int tolua_fawkesinterface_fawkes_Interface_set_timestamp00(lua_State* tolua_S)
1071 #ifndef TOLUA_RELEASE 1072 tolua_Error tolua_err;
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)
1084 #ifndef TOLUA_RELEASE 1085 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_timestamp'", NULL);
1087 bool exc_caught =
false;
1090 self->set_timestamp(t);
1096 catch (std::exception &e) {
1098 lua_pushstring(tolua_S, e.what());
1100 if (exc_caught) lua_error(tolua_S);
1104 #ifndef TOLUA_RELEASE 1106 tolua_error(tolua_S,
"#ferror in function 'set_timestamp'.",&tolua_err);
1110 #endif //#ifndef TOLUA_DISABLE 1113 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_set_clock00 1114 static int tolua_fawkesinterface_fawkes_Interface_set_clock00(lua_State* tolua_S)
1116 #ifndef TOLUA_RELEASE 1117 tolua_Error tolua_err;
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)
1129 #ifndef TOLUA_RELEASE 1130 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_clock'", NULL);
1132 bool exc_caught =
false;
1135 self->set_clock(clock);
1141 catch (std::exception &e) {
1143 lua_pushstring(tolua_S, e.what());
1145 if (exc_caught) lua_error(tolua_S);
1149 #ifndef TOLUA_RELEASE 1151 tolua_error(tolua_S,
"#ferror in function 'set_clock'.",&tolua_err);
1155 #endif //#ifndef TOLUA_DISABLE 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)
1161 #ifndef TOLUA_RELEASE 1162 tolua_Error tolua_err;
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)
1174 #ifndef TOLUA_RELEASE 1175 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_enqueue_copy'", NULL);
1177 bool exc_caught =
false;
1180 unsigned int tolua_ret = (
unsigned int) self->msgq_enqueue_copy(message);
1181 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1187 catch (std::exception &e) {
1189 lua_pushstring(tolua_S, e.what());
1191 if (exc_caught) lua_error(tolua_S);
1195 #ifndef TOLUA_RELEASE 1197 tolua_error(tolua_S,
"#ferror in function 'msgq_enqueue_copy'.",&tolua_err);
1201 #endif //#ifndef TOLUA_DISABLE 1204 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_remove00 1205 static int tolua_fawkesinterface_fawkes_Interface_msgq_remove00(lua_State* tolua_S)
1207 #ifndef TOLUA_RELEASE 1208 tolua_Error tolua_err;
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)
1220 #ifndef TOLUA_RELEASE 1221 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_remove'", NULL);
1223 bool exc_caught =
false;
1226 self->msgq_remove(message);
1232 catch (std::exception &e) {
1234 lua_pushstring(tolua_S, e.what());
1236 if (exc_caught) lua_error(tolua_S);
1240 #ifndef TOLUA_RELEASE 1242 tolua_error(tolua_S,
"#ferror in function 'msgq_remove'.",&tolua_err);
1246 #endif //#ifndef TOLUA_DISABLE 1249 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_remove01 1250 static int tolua_fawkesinterface_fawkes_Interface_msgq_remove01(lua_State* tolua_S)
1252 tolua_Error tolua_err;
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)
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);
1266 bool exc_caught =
false;
1269 self->msgq_remove(message_id);
1275 catch (std::exception &e) {
1277 lua_pushstring(tolua_S, e.what());
1279 if (exc_caught) lua_error(tolua_S);
1284 return tolua_fawkesinterface_fawkes_Interface_msgq_remove00(tolua_S);
1286 #endif //#ifndef TOLUA_DISABLE 1289 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_size00 1290 static int tolua_fawkesinterface_fawkes_Interface_msgq_size00(lua_State* tolua_S)
1292 #ifndef TOLUA_RELEASE 1293 tolua_Error tolua_err;
1295 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
1296 !tolua_isnoobj(tolua_S,2,&tolua_err)
1303 #ifndef TOLUA_RELEASE 1304 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_size'", NULL);
1306 bool exc_caught =
false;
1309 unsigned int tolua_ret = (
unsigned int) self->msgq_size();
1310 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1316 catch (std::exception &e) {
1318 lua_pushstring(tolua_S, e.what());
1320 if (exc_caught) lua_error(tolua_S);
1324 #ifndef TOLUA_RELEASE 1326 tolua_error(tolua_S,
"#ferror in function 'msgq_size'.",&tolua_err);
1330 #endif //#ifndef TOLUA_DISABLE 1333 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_flush00 1334 static int tolua_fawkesinterface_fawkes_Interface_msgq_flush00(lua_State* tolua_S)
1336 #ifndef TOLUA_RELEASE 1337 tolua_Error tolua_err;
1339 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
1340 !tolua_isnoobj(tolua_S,2,&tolua_err)
1347 #ifndef TOLUA_RELEASE 1348 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_flush'", NULL);
1350 bool exc_caught =
false;
1359 catch (std::exception &e) {
1361 lua_pushstring(tolua_S, e.what());
1363 if (exc_caught) lua_error(tolua_S);
1367 #ifndef TOLUA_RELEASE 1369 tolua_error(tolua_S,
"#ferror in function 'msgq_flush'.",&tolua_err);
1373 #endif //#ifndef TOLUA_DISABLE 1376 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_lock00 1377 static int tolua_fawkesinterface_fawkes_Interface_msgq_lock00(lua_State* tolua_S)
1379 #ifndef TOLUA_RELEASE 1380 tolua_Error tolua_err;
1382 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
1383 !tolua_isnoobj(tolua_S,2,&tolua_err)
1390 #ifndef TOLUA_RELEASE 1391 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_lock'", NULL);
1393 bool exc_caught =
false;
1402 catch (std::exception &e) {
1404 lua_pushstring(tolua_S, e.what());
1406 if (exc_caught) lua_error(tolua_S);
1410 #ifndef TOLUA_RELEASE 1412 tolua_error(tolua_S,
"#ferror in function 'msgq_lock'.",&tolua_err);
1416 #endif //#ifndef TOLUA_DISABLE 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)
1422 #ifndef TOLUA_RELEASE 1423 tolua_Error tolua_err;
1425 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
1426 !tolua_isnoobj(tolua_S,2,&tolua_err)
1433 #ifndef TOLUA_RELEASE 1434 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_try_lock'", NULL);
1436 bool exc_caught =
false;
1439 bool tolua_ret = (bool) self->msgq_try_lock();
1440 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
1446 catch (std::exception &e) {
1448 lua_pushstring(tolua_S, e.what());
1450 if (exc_caught) lua_error(tolua_S);
1454 #ifndef TOLUA_RELEASE 1456 tolua_error(tolua_S,
"#ferror in function 'msgq_try_lock'.",&tolua_err);
1460 #endif //#ifndef TOLUA_DISABLE 1463 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_unlock00 1464 static int tolua_fawkesinterface_fawkes_Interface_msgq_unlock00(lua_State* tolua_S)
1466 #ifndef TOLUA_RELEASE 1467 tolua_Error tolua_err;
1469 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
1470 !tolua_isnoobj(tolua_S,2,&tolua_err)
1477 #ifndef TOLUA_RELEASE 1478 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_unlock'", NULL);
1480 bool exc_caught =
false;
1483 self->msgq_unlock();
1489 catch (std::exception &e) {
1491 lua_pushstring(tolua_S, e.what());
1493 if (exc_caught) lua_error(tolua_S);
1497 #ifndef TOLUA_RELEASE 1499 tolua_error(tolua_S,
"#ferror in function 'msgq_unlock'.",&tolua_err);
1503 #endif //#ifndef TOLUA_DISABLE 1506 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_pop00 1507 static int tolua_fawkesinterface_fawkes_Interface_msgq_pop00(lua_State* tolua_S)
1509 #ifndef TOLUA_RELEASE 1510 tolua_Error tolua_err;
1512 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
1513 !tolua_isnoobj(tolua_S,2,&tolua_err)
1520 #ifndef TOLUA_RELEASE 1521 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_pop'", NULL);
1523 bool exc_caught =
false;
1532 catch (std::exception &e) {
1534 lua_pushstring(tolua_S, e.what());
1536 if (exc_caught) lua_error(tolua_S);
1540 #ifndef TOLUA_RELEASE 1542 tolua_error(tolua_S,
"#ferror in function 'msgq_pop'.",&tolua_err);
1546 #endif //#ifndef TOLUA_DISABLE 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)
1552 #ifndef TOLUA_RELEASE 1553 tolua_Error tolua_err;
1555 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
1556 !tolua_isnoobj(tolua_S,2,&tolua_err)
1563 #ifndef TOLUA_RELEASE 1564 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_first'", NULL);
1566 bool exc_caught =
false;
1570 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1576 catch (std::exception &e) {
1578 lua_pushstring(tolua_S, e.what());
1580 if (exc_caught) lua_error(tolua_S);
1584 #ifndef TOLUA_RELEASE 1586 tolua_error(tolua_S,
"#ferror in function 'msgq_first_generic'.",&tolua_err);
1590 #endif //#ifndef TOLUA_DISABLE 1593 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_empty00 1594 static int tolua_fawkesinterface_fawkes_Interface_msgq_empty00(lua_State* tolua_S)
1596 #ifndef TOLUA_RELEASE 1597 tolua_Error tolua_err;
1599 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
1600 !tolua_isnoobj(tolua_S,2,&tolua_err)
1607 #ifndef TOLUA_RELEASE 1608 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_empty'", NULL);
1610 bool exc_caught =
false;
1613 bool tolua_ret = (bool) self->msgq_empty();
1614 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
1620 catch (std::exception &e) {
1622 lua_pushstring(tolua_S, e.what());
1624 if (exc_caught) lua_error(tolua_S);
1628 #ifndef TOLUA_RELEASE 1630 tolua_error(tolua_S,
"#ferror in function 'msgq_empty'.",&tolua_err);
1634 #endif //#ifndef TOLUA_DISABLE 1637 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new00 1638 static int tolua_fawkesinterface_fawkes_Message_new00(lua_State* tolua_S)
1640 #ifndef TOLUA_RELEASE 1641 tolua_Error tolua_err;
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)
1651 const char* type = ((
const char*) tolua_tostring(tolua_S,2,0));
1652 bool exc_caught =
false;
1656 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1662 catch (std::exception &e) {
1664 lua_pushstring(tolua_S, e.what());
1666 if (exc_caught) lua_error(tolua_S);
1670 #ifndef TOLUA_RELEASE 1672 tolua_error(tolua_S,
"#ferror in function 'new'.",&tolua_err);
1676 #endif //#ifndef TOLUA_DISABLE 1679 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new00_local 1680 static int tolua_fawkesinterface_fawkes_Message_new00_local(lua_State* tolua_S)
1682 #ifndef TOLUA_RELEASE 1683 tolua_Error tolua_err;
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)
1693 const char* type = ((
const char*) tolua_tostring(tolua_S,2,0));
1694 bool exc_caught =
false;
1698 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1699 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1705 catch (std::exception &e) {
1707 lua_pushstring(tolua_S, e.what());
1709 if (exc_caught) lua_error(tolua_S);
1713 #ifndef TOLUA_RELEASE 1715 tolua_error(tolua_S,
"#ferror in function 'new'.",&tolua_err);
1719 #endif //#ifndef TOLUA_DISABLE 1722 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new01 1723 static int tolua_fawkesinterface_fawkes_Message_new01(lua_State* tolua_S)
1725 tolua_Error tolua_err;
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)
1735 bool exc_caught =
false;
1739 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1745 catch (std::exception &e) {
1747 lua_pushstring(tolua_S, e.what());
1749 if (exc_caught) lua_error(tolua_S);
1754 return tolua_fawkesinterface_fawkes_Message_new00(tolua_S);
1756 #endif //#ifndef TOLUA_DISABLE 1759 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new01_local 1760 static int tolua_fawkesinterface_fawkes_Message_new01_local(lua_State* tolua_S)
1762 tolua_Error tolua_err;
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)
1772 bool exc_caught =
false;
1776 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1777 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1783 catch (std::exception &e) {
1785 lua_pushstring(tolua_S, e.what());
1787 if (exc_caught) lua_error(tolua_S);
1792 return tolua_fawkesinterface_fawkes_Message_new00_local(tolua_S);
1794 #endif //#ifndef TOLUA_DISABLE 1797 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new02 1798 static int tolua_fawkesinterface_fawkes_Message_new02(lua_State* tolua_S)
1800 tolua_Error tolua_err;
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)
1810 bool exc_caught =
false;
1814 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1820 catch (std::exception &e) {
1822 lua_pushstring(tolua_S, e.what());
1824 if (exc_caught) lua_error(tolua_S);
1829 return tolua_fawkesinterface_fawkes_Message_new01(tolua_S);
1831 #endif //#ifndef TOLUA_DISABLE 1834 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new02_local 1835 static int tolua_fawkesinterface_fawkes_Message_new02_local(lua_State* tolua_S)
1837 tolua_Error tolua_err;
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)
1847 bool exc_caught =
false;
1851 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1852 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1858 catch (std::exception &e) {
1860 lua_pushstring(tolua_S, e.what());
1862 if (exc_caught) lua_error(tolua_S);
1867 return tolua_fawkesinterface_fawkes_Message_new01_local(tolua_S);
1869 #endif //#ifndef TOLUA_DISABLE 1872 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_id00 1873 static int tolua_fawkesinterface_fawkes_Message_id00(lua_State* tolua_S)
1875 #ifndef TOLUA_RELEASE 1876 tolua_Error tolua_err;
1878 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
1879 !tolua_isnoobj(tolua_S,2,&tolua_err)
1886 #ifndef TOLUA_RELEASE 1887 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'id'", NULL);
1889 bool exc_caught =
false;
1892 unsigned int tolua_ret = (
unsigned int) self->
id();
1893 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1899 catch (std::exception &e) {
1901 lua_pushstring(tolua_S, e.what());
1903 if (exc_caught) lua_error(tolua_S);
1907 #ifndef TOLUA_RELEASE 1909 tolua_error(tolua_S,
"#ferror in function 'id'.",&tolua_err);
1913 #endif //#ifndef TOLUA_DISABLE 1916 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_sender_id00 1917 static int tolua_fawkesinterface_fawkes_Message_sender_id00(lua_State* tolua_S)
1919 #ifndef TOLUA_RELEASE 1920 tolua_Error tolua_err;
1922 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
1923 !tolua_isnoobj(tolua_S,2,&tolua_err)
1930 #ifndef TOLUA_RELEASE 1931 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'sender_id'", NULL);
1933 bool exc_caught =
false;
1936 unsigned int tolua_ret = (
unsigned int) self->
sender_id();
1937 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1943 catch (std::exception &e) {
1945 lua_pushstring(tolua_S, e.what());
1947 if (exc_caught) lua_error(tolua_S);
1951 #ifndef TOLUA_RELEASE 1953 tolua_error(tolua_S,
"#ferror in function 'sender_id'.",&tolua_err);
1957 #endif //#ifndef TOLUA_DISABLE 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)
1963 #ifndef TOLUA_RELEASE 1964 tolua_Error tolua_err;
1966 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
1967 !tolua_isnoobj(tolua_S,2,&tolua_err)
1974 #ifndef TOLUA_RELEASE 1975 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'sender_thread_name'", NULL);
1977 bool exc_caught =
false;
1981 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
1987 catch (std::exception &e) {
1989 lua_pushstring(tolua_S, e.what());
1991 if (exc_caught) lua_error(tolua_S);
1995 #ifndef TOLUA_RELEASE 1997 tolua_error(tolua_S,
"#ferror in function 'sender_thread_name'.",&tolua_err);
2001 #endif //#ifndef TOLUA_DISABLE 2004 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_interface00 2005 static int tolua_fawkesinterface_fawkes_Message_interface00(lua_State* tolua_S)
2007 #ifndef TOLUA_RELEASE 2008 tolua_Error tolua_err;
2010 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
2011 !tolua_isnoobj(tolua_S,2,&tolua_err)
2018 #ifndef TOLUA_RELEASE 2019 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'interface'", NULL);
2021 bool exc_caught =
false;
2025 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Interface");
2031 catch (std::exception &e) {
2033 lua_pushstring(tolua_S, e.what());
2035 if (exc_caught) lua_error(tolua_S);
2039 #ifndef TOLUA_RELEASE 2041 tolua_error(tolua_S,
"#ferror in function 'interface'.",&tolua_err);
2045 #endif //#ifndef TOLUA_DISABLE 2048 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_type00 2049 static int tolua_fawkesinterface_fawkes_Message_type00(lua_State* tolua_S)
2051 #ifndef TOLUA_RELEASE 2052 tolua_Error tolua_err;
2054 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
2055 !tolua_isnoobj(tolua_S,2,&tolua_err)
2062 #ifndef TOLUA_RELEASE 2063 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'type'", NULL);
2065 bool exc_caught =
false;
2068 const char* tolua_ret = (
const char*) self->
type();
2069 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
2075 catch (std::exception &e) {
2077 lua_pushstring(tolua_S, e.what());
2079 if (exc_caught) lua_error(tolua_S);
2083 #ifndef TOLUA_RELEASE 2085 tolua_error(tolua_S,
"#ferror in function 'type'.",&tolua_err);
2089 #endif //#ifndef TOLUA_DISABLE 2092 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_datachunk00 2093 static int tolua_fawkesinterface_fawkes_Message_datachunk00(lua_State* tolua_S)
2095 #ifndef TOLUA_RELEASE 2096 tolua_Error tolua_err;
2098 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
2099 !tolua_isnoobj(tolua_S,2,&tolua_err)
2106 #ifndef TOLUA_RELEASE 2107 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'datachunk'", NULL);
2109 bool exc_caught =
false;
2112 const void* tolua_ret = (
const void*) self->
datachunk();
2113 tolua_pushuserdata(tolua_S,(
void*)tolua_ret);
2119 catch (std::exception &e) {
2121 lua_pushstring(tolua_S, e.what());
2123 if (exc_caught) lua_error(tolua_S);
2127 #ifndef TOLUA_RELEASE 2129 tolua_error(tolua_S,
"#ferror in function 'datachunk'.",&tolua_err);
2133 #endif //#ifndef TOLUA_DISABLE 2136 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_datasize00 2137 static int tolua_fawkesinterface_fawkes_Message_datasize00(lua_State* tolua_S)
2139 #ifndef TOLUA_RELEASE 2140 tolua_Error tolua_err;
2142 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
2143 !tolua_isnoobj(tolua_S,2,&tolua_err)
2150 #ifndef TOLUA_RELEASE 2151 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'datasize'", NULL);
2153 bool exc_caught =
false;
2156 unsigned int tolua_ret = (
unsigned int) self->
datasize();
2157 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
2163 catch (std::exception &e) {
2165 lua_pushstring(tolua_S, e.what());
2167 if (exc_caught) lua_error(tolua_S);
2171 #ifndef TOLUA_RELEASE 2173 tolua_error(tolua_S,
"#ferror in function 'datasize'.",&tolua_err);
2177 #endif //#ifndef TOLUA_DISABLE 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)
2183 #ifndef TOLUA_RELEASE 2184 tolua_Error tolua_err;
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)
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);
2199 bool exc_caught =
false;
2202 self->set_from_chunk(chunk);
2208 catch (std::exception &e) {
2210 lua_pushstring(tolua_S, e.what());
2212 if (exc_caught) lua_error(tolua_S);
2216 #ifndef TOLUA_RELEASE 2218 tolua_error(tolua_S,
"#ferror in function 'set_from_chunk'.",&tolua_err);
2222 #endif //#ifndef TOLUA_DISABLE 2225 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_ref00 2226 static int tolua_fawkesinterface_fawkes_Message_ref00(lua_State* tolua_S)
2228 #ifndef TOLUA_RELEASE 2229 tolua_Error tolua_err;
2231 !tolua_isusertype(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
2232 !tolua_isnoobj(tolua_S,2,&tolua_err)
2239 #ifndef TOLUA_RELEASE 2240 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'ref'", NULL);
2242 bool exc_caught =
false;
2251 catch (std::exception &e) {
2253 lua_pushstring(tolua_S, e.what());
2255 if (exc_caught) lua_error(tolua_S);
2259 #ifndef TOLUA_RELEASE 2261 tolua_error(tolua_S,
"#ferror in function 'ref'.",&tolua_err);
2265 #endif //#ifndef TOLUA_DISABLE 2268 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_unref00 2269 static int tolua_fawkesinterface_fawkes_Message_unref00(lua_State* tolua_S)
2271 #ifndef TOLUA_RELEASE 2272 tolua_Error tolua_err;
2274 !tolua_isusertype(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
2275 !tolua_isnoobj(tolua_S,2,&tolua_err)
2282 #ifndef TOLUA_RELEASE 2283 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'unref'", NULL);
2285 bool exc_caught =
false;
2294 catch (std::exception &e) {
2296 lua_pushstring(tolua_S, e.what());
2298 if (exc_caught) lua_error(tolua_S);
2302 #ifndef TOLUA_RELEASE 2304 tolua_error(tolua_S,
"#ferror in function 'unref'.",&tolua_err);
2308 #endif //#ifndef TOLUA_DISABLE 2311 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_refcount00 2312 static int tolua_fawkesinterface_fawkes_Message_refcount00(lua_State* tolua_S)
2314 #ifndef TOLUA_RELEASE 2315 tolua_Error tolua_err;
2317 !tolua_isusertype(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
2318 !tolua_isnoobj(tolua_S,2,&tolua_err)
2325 #ifndef TOLUA_RELEASE 2326 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'refcount'", NULL);
2328 bool exc_caught =
false;
2331 unsigned int tolua_ret = (
unsigned int) self->
refcount();
2332 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
2338 catch (std::exception &e) {
2340 lua_pushstring(tolua_S, e.what());
2342 if (exc_caught) lua_error(tolua_S);
2346 #ifndef TOLUA_RELEASE 2348 tolua_error(tolua_S,
"#ferror in function 'refcount'.",&tolua_err);
2352 #endif //#ifndef TOLUA_DISABLE 2355 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_new00 2356 static int tolua_fawkesinterface_fawkes_MessageQueue_new00(lua_State* tolua_S)
2358 #ifndef TOLUA_RELEASE 2359 tolua_Error tolua_err;
2361 !tolua_isusertable(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2362 !tolua_isnoobj(tolua_S,2,&tolua_err)
2368 bool exc_caught =
false;
2372 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::MessageQueue");
2378 catch (std::exception &e) {
2380 lua_pushstring(tolua_S, e.what());
2382 if (exc_caught) lua_error(tolua_S);
2386 #ifndef TOLUA_RELEASE 2388 tolua_error(tolua_S,
"#ferror in function 'new'.",&tolua_err);
2392 #endif //#ifndef TOLUA_DISABLE 2395 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_new00_local 2396 static int tolua_fawkesinterface_fawkes_MessageQueue_new00_local(lua_State* tolua_S)
2398 #ifndef TOLUA_RELEASE 2399 tolua_Error tolua_err;
2401 !tolua_isusertable(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2402 !tolua_isnoobj(tolua_S,2,&tolua_err)
2408 bool exc_caught =
false;
2412 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::MessageQueue");
2413 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
2419 catch (std::exception &e) {
2421 lua_pushstring(tolua_S, e.what());
2423 if (exc_caught) lua_error(tolua_S);
2427 #ifndef TOLUA_RELEASE 2429 tolua_error(tolua_S,
"#ferror in function 'new'.",&tolua_err);
2433 #endif //#ifndef TOLUA_DISABLE 2436 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_delete00 2437 static int tolua_fawkesinterface_fawkes_MessageQueue_delete00(lua_State* tolua_S)
2439 #ifndef TOLUA_RELEASE 2440 tolua_Error tolua_err;
2442 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2443 !tolua_isnoobj(tolua_S,2,&tolua_err)
2450 #ifndef TOLUA_RELEASE 2451 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'delete'", NULL);
2453 bool exc_caught =
false;
2455 Mtolua_delete(
self);
2460 catch (std::exception &e) {
2462 lua_pushstring(tolua_S, e.what());
2464 if (exc_caught) lua_error(tolua_S);
2468 #ifndef TOLUA_RELEASE 2470 tolua_error(tolua_S,
"#ferror in function 'delete'.",&tolua_err);
2474 #endif //#ifndef TOLUA_DISABLE 2477 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00 2478 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00(lua_State* tolua_S)
2480 #ifndef TOLUA_RELEASE 2481 tolua_Error tolua_err;
2483 !tolua_isusertable(tolua_S,1,
"fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
2484 !tolua_isnoobj(tolua_S,2,&tolua_err)
2490 bool exc_caught =
false;
2494 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::MessageQueue::MessageIterator");
2500 catch (std::exception &e) {
2502 lua_pushstring(tolua_S, e.what());
2504 if (exc_caught) lua_error(tolua_S);
2508 #ifndef TOLUA_RELEASE 2510 tolua_error(tolua_S,
"#ferror in function 'new'.",&tolua_err);
2514 #endif //#ifndef TOLUA_DISABLE 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)
2520 #ifndef TOLUA_RELEASE 2521 tolua_Error tolua_err;
2523 !tolua_isusertable(tolua_S,1,
"fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
2524 !tolua_isnoobj(tolua_S,2,&tolua_err)
2530 bool exc_caught =
false;
2534 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::MessageQueue::MessageIterator");
2535 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
2541 catch (std::exception &e) {
2543 lua_pushstring(tolua_S, e.what());
2545 if (exc_caught) lua_error(tolua_S);
2549 #ifndef TOLUA_RELEASE 2551 tolua_error(tolua_S,
"#ferror in function 'new'.",&tolua_err);
2555 #endif //#ifndef TOLUA_DISABLE 2558 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01 2559 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01(lua_State* tolua_S)
2561 tolua_Error tolua_err;
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)
2571 bool exc_caught =
false;
2575 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::MessageQueue::MessageIterator");
2581 catch (std::exception &e) {
2583 lua_pushstring(tolua_S, e.what());
2585 if (exc_caught) lua_error(tolua_S);
2590 return tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00(tolua_S);
2592 #endif //#ifndef TOLUA_DISABLE 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)
2598 tolua_Error tolua_err;
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)
2608 bool exc_caught =
false;
2612 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::MessageQueue::MessageIterator");
2613 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
2619 catch (std::exception &e) {
2621 lua_pushstring(tolua_S, e.what());
2623 if (exc_caught) lua_error(tolua_S);
2628 return tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00_local(tolua_S);
2630 #endif //#ifndef TOLUA_DISABLE 2633 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__add00 2634 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__add00(lua_State* tolua_S)
2636 #ifndef TOLUA_RELEASE 2637 tolua_Error tolua_err;
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)
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);
2652 bool exc_caught =
false;
2656 tolua_pushusertype(tolua_S,(
void*)&tolua_ret,
"fawkes::MessageQueue::MessageIterator");
2662 catch (std::exception &e) {
2664 lua_pushstring(tolua_S, e.what());
2666 if (exc_caught) lua_error(tolua_S);
2670 #ifndef TOLUA_RELEASE 2672 tolua_error(tolua_S,
"#ferror in function '.add'.",&tolua_err);
2676 #endif //#ifndef TOLUA_DISABLE 2679 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__eq00 2680 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__eq00(lua_State* tolua_S)
2682 #ifndef TOLUA_RELEASE 2683 tolua_Error tolua_err;
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)
2695 #ifndef TOLUA_RELEASE 2696 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'operator=='", NULL);
2698 bool exc_caught =
false;
2701 bool tolua_ret = (bool) self->operator==(*c);
2702 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
2708 catch (std::exception &e) {
2710 lua_pushstring(tolua_S, e.what());
2712 if (exc_caught) lua_error(tolua_S);
2716 #ifndef TOLUA_RELEASE 2718 tolua_error(tolua_S,
"#ferror in function '.eq'.",&tolua_err);
2722 #endif //#ifndef TOLUA_DISABLE 2725 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__mul00 2726 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__mul00(lua_State* tolua_S)
2728 #ifndef TOLUA_RELEASE 2729 tolua_Error tolua_err;
2731 !tolua_isusertype(tolua_S,1,
"const fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
2732 !tolua_isnoobj(tolua_S,2,&tolua_err)
2739 #ifndef TOLUA_RELEASE 2740 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'operator*'", NULL);
2742 bool exc_caught =
false;
2746 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
2752 catch (std::exception &e) {
2754 lua_pushstring(tolua_S, e.what());
2756 if (exc_caught) lua_error(tolua_S);
2760 #ifndef TOLUA_RELEASE 2762 tolua_error(tolua_S,
"#ferror in function '.mul'.",&tolua_err);
2766 #endif //#ifndef TOLUA_DISABLE 2769 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_id00 2770 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_id00(lua_State* tolua_S)
2772 #ifndef TOLUA_RELEASE 2773 tolua_Error tolua_err;
2775 !tolua_isusertype(tolua_S,1,
"const fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
2776 !tolua_isnoobj(tolua_S,2,&tolua_err)
2783 #ifndef TOLUA_RELEASE 2784 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'id'", NULL);
2786 bool exc_caught =
false;
2789 unsigned int tolua_ret = (
unsigned int) self->
id();
2790 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
2796 catch (std::exception &e) {
2798 lua_pushstring(tolua_S, e.what());
2800 if (exc_caught) lua_error(tolua_S);
2804 #ifndef TOLUA_RELEASE 2806 tolua_error(tolua_S,
"#ferror in function 'id'.",&tolua_err);
2810 #endif //#ifndef TOLUA_DISABLE 2813 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_append00 2814 static int tolua_fawkesinterface_fawkes_MessageQueue_append00(lua_State* tolua_S)
2816 #ifndef TOLUA_RELEASE 2817 tolua_Error tolua_err;
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)
2829 #ifndef TOLUA_RELEASE 2830 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'append'", NULL);
2832 bool exc_caught =
false;
2841 catch (std::exception &e) {
2843 lua_pushstring(tolua_S, e.what());
2845 if (exc_caught) lua_error(tolua_S);
2849 #ifndef TOLUA_RELEASE 2851 tolua_error(tolua_S,
"#ferror in function 'append'.",&tolua_err);
2855 #endif //#ifndef TOLUA_DISABLE 2858 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_remove00 2859 static int tolua_fawkesinterface_fawkes_MessageQueue_remove00(lua_State* tolua_S)
2861 #ifndef TOLUA_RELEASE 2862 tolua_Error tolua_err;
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)
2874 #ifndef TOLUA_RELEASE 2875 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'remove'", NULL);
2877 bool exc_caught =
false;
2886 catch (std::exception &e) {
2888 lua_pushstring(tolua_S, e.what());
2890 if (exc_caught) lua_error(tolua_S);
2894 #ifndef TOLUA_RELEASE 2896 tolua_error(tolua_S,
"#ferror in function 'remove'.",&tolua_err);
2900 #endif //#ifndef TOLUA_DISABLE 2903 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_remove01 2904 static int tolua_fawkesinterface_fawkes_MessageQueue_remove01(lua_State* tolua_S)
2906 tolua_Error tolua_err;
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)
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);
2920 bool exc_caught =
false;
2923 self->remove(msg_id);
2929 catch (std::exception &e) {
2931 lua_pushstring(tolua_S, e.what());
2933 if (exc_caught) lua_error(tolua_S);
2938 return tolua_fawkesinterface_fawkes_MessageQueue_remove00(tolua_S);
2940 #endif //#ifndef TOLUA_DISABLE 2943 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_insert_after00 2944 static int tolua_fawkesinterface_fawkes_MessageQueue_insert_after00(lua_State* tolua_S)
2946 #ifndef TOLUA_RELEASE 2947 tolua_Error tolua_err;
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)
2961 #ifndef TOLUA_RELEASE 2962 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'insert_after'", NULL);
2964 bool exc_caught =
false;
2967 self->insert_after(*it,msg);
2973 catch (std::exception &e) {
2975 lua_pushstring(tolua_S, e.what());
2977 if (exc_caught) lua_error(tolua_S);
2981 #ifndef TOLUA_RELEASE 2983 tolua_error(tolua_S,
"#ferror in function 'insert_after'.",&tolua_err);
2987 #endif //#ifndef TOLUA_DISABLE 2990 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_size00 2991 static int tolua_fawkesinterface_fawkes_MessageQueue_size00(lua_State* tolua_S)
2993 #ifndef TOLUA_RELEASE 2994 tolua_Error tolua_err;
2996 !tolua_isusertype(tolua_S,1,
"const fawkes::MessageQueue",0,&tolua_err) ||
2997 !tolua_isnoobj(tolua_S,2,&tolua_err)
3004 #ifndef TOLUA_RELEASE 3005 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'size'", NULL);
3007 bool exc_caught =
false;
3010 unsigned int tolua_ret = (
unsigned int) self->size();
3011 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
3017 catch (std::exception &e) {
3019 lua_pushstring(tolua_S, e.what());
3021 if (exc_caught) lua_error(tolua_S);
3025 #ifndef TOLUA_RELEASE 3027 tolua_error(tolua_S,
"#ferror in function 'size'.",&tolua_err);
3031 #endif //#ifndef TOLUA_DISABLE 3034 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_flush00 3035 static int tolua_fawkesinterface_fawkes_MessageQueue_flush00(lua_State* tolua_S)
3037 #ifndef TOLUA_RELEASE 3038 tolua_Error tolua_err;
3040 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
3041 !tolua_isnoobj(tolua_S,2,&tolua_err)
3048 #ifndef TOLUA_RELEASE 3049 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'flush'", NULL);
3051 bool exc_caught =
false;
3060 catch (std::exception &e) {
3062 lua_pushstring(tolua_S, e.what());
3064 if (exc_caught) lua_error(tolua_S);
3068 #ifndef TOLUA_RELEASE 3070 tolua_error(tolua_S,
"#ferror in function 'flush'.",&tolua_err);
3074 #endif //#ifndef TOLUA_DISABLE 3077 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_empty00 3078 static int tolua_fawkesinterface_fawkes_MessageQueue_empty00(lua_State* tolua_S)
3080 #ifndef TOLUA_RELEASE 3081 tolua_Error tolua_err;
3083 !tolua_isusertype(tolua_S,1,
"const fawkes::MessageQueue",0,&tolua_err) ||
3084 !tolua_isnoobj(tolua_S,2,&tolua_err)
3091 #ifndef TOLUA_RELEASE 3092 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'empty'", NULL);
3094 bool exc_caught =
false;
3097 bool tolua_ret = (bool) self->empty();
3098 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
3104 catch (std::exception &e) {
3106 lua_pushstring(tolua_S, e.what());
3108 if (exc_caught) lua_error(tolua_S);
3112 #ifndef TOLUA_RELEASE 3114 tolua_error(tolua_S,
"#ferror in function 'empty'.",&tolua_err);
3118 #endif //#ifndef TOLUA_DISABLE 3121 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_lock00 3122 static int tolua_fawkesinterface_fawkes_MessageQueue_lock00(lua_State* tolua_S)
3124 #ifndef TOLUA_RELEASE 3125 tolua_Error tolua_err;
3127 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
3128 !tolua_isnoobj(tolua_S,2,&tolua_err)
3135 #ifndef TOLUA_RELEASE 3136 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'lock'", NULL);
3138 bool exc_caught =
false;
3147 catch (std::exception &e) {
3149 lua_pushstring(tolua_S, e.what());
3151 if (exc_caught) lua_error(tolua_S);
3155 #ifndef TOLUA_RELEASE 3157 tolua_error(tolua_S,
"#ferror in function 'lock'.",&tolua_err);
3161 #endif //#ifndef TOLUA_DISABLE 3164 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_try_lock00 3165 static int tolua_fawkesinterface_fawkes_MessageQueue_try_lock00(lua_State* tolua_S)
3167 #ifndef TOLUA_RELEASE 3168 tolua_Error tolua_err;
3170 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
3171 !tolua_isnoobj(tolua_S,2,&tolua_err)
3178 #ifndef TOLUA_RELEASE 3179 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'try_lock'", NULL);
3181 bool exc_caught =
false;
3184 bool tolua_ret = (bool) self->try_lock();
3185 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
3191 catch (std::exception &e) {
3193 lua_pushstring(tolua_S, e.what());
3195 if (exc_caught) lua_error(tolua_S);
3199 #ifndef TOLUA_RELEASE 3201 tolua_error(tolua_S,
"#ferror in function 'try_lock'.",&tolua_err);
3205 #endif //#ifndef TOLUA_DISABLE 3208 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_unlock00 3209 static int tolua_fawkesinterface_fawkes_MessageQueue_unlock00(lua_State* tolua_S)
3211 #ifndef TOLUA_RELEASE 3212 tolua_Error tolua_err;
3214 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
3215 !tolua_isnoobj(tolua_S,2,&tolua_err)
3222 #ifndef TOLUA_RELEASE 3223 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'unlock'", NULL);
3225 bool exc_caught =
false;
3234 catch (std::exception &e) {
3236 lua_pushstring(tolua_S, e.what());
3238 if (exc_caught) lua_error(tolua_S);
3242 #ifndef TOLUA_RELEASE 3244 tolua_error(tolua_S,
"#ferror in function 'unlock'.",&tolua_err);
3248 #endif //#ifndef TOLUA_DISABLE 3251 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_first00 3252 static int tolua_fawkesinterface_fawkes_MessageQueue_first00(lua_State* tolua_S)
3254 #ifndef TOLUA_RELEASE 3255 tolua_Error tolua_err;
3257 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
3258 !tolua_isnoobj(tolua_S,2,&tolua_err)
3265 #ifndef TOLUA_RELEASE 3266 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'first'", NULL);
3268 bool exc_caught =
false;
3272 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
3278 catch (std::exception &e) {
3280 lua_pushstring(tolua_S, e.what());
3282 if (exc_caught) lua_error(tolua_S);
3286 #ifndef TOLUA_RELEASE 3288 tolua_error(tolua_S,
"#ferror in function 'first'.",&tolua_err);
3292 #endif //#ifndef TOLUA_DISABLE 3295 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_pop00 3296 static int tolua_fawkesinterface_fawkes_MessageQueue_pop00(lua_State* tolua_S)
3298 #ifndef TOLUA_RELEASE 3299 tolua_Error tolua_err;
3301 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
3302 !tolua_isnoobj(tolua_S,2,&tolua_err)
3309 #ifndef TOLUA_RELEASE 3310 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'pop'", NULL);
3312 bool exc_caught =
false;
3321 catch (std::exception &e) {
3323 lua_pushstring(tolua_S, e.what());
3325 if (exc_caught) lua_error(tolua_S);
3329 #ifndef TOLUA_RELEASE 3331 tolua_error(tolua_S,
"#ferror in function 'pop'.",&tolua_err);
3335 #endif //#ifndef TOLUA_DISABLE 3338 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_begin00 3339 static int tolua_fawkesinterface_fawkes_MessageQueue_begin00(lua_State* tolua_S)
3341 #ifndef TOLUA_RELEASE 3342 tolua_Error tolua_err;
3344 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
3345 !tolua_isnoobj(tolua_S,2,&tolua_err)
3352 #ifndef TOLUA_RELEASE 3353 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'begin'", NULL);
3355 bool exc_caught =
false;
3362 tolua_pushusertype(tolua_S,tolua_obj,
"fawkes::MessageQueue::MessageIterator");
3363 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
3366 tolua_pushusertype(tolua_S,tolua_obj,
"fawkes::MessageQueue::MessageIterator");
3367 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
3375 catch (std::exception &e) {
3377 lua_pushstring(tolua_S, e.what());
3379 if (exc_caught) lua_error(tolua_S);
3383 #ifndef TOLUA_RELEASE 3385 tolua_error(tolua_S,
"#ferror in function 'begin'.",&tolua_err);
3389 #endif //#ifndef TOLUA_DISABLE 3392 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_end00 3393 static int tolua_fawkesinterface_fawkes_MessageQueue_end00(lua_State* tolua_S)
3395 #ifndef TOLUA_RELEASE 3396 tolua_Error tolua_err;
3398 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
3399 !tolua_isnoobj(tolua_S,2,&tolua_err)
3406 #ifndef TOLUA_RELEASE 3407 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'end'", NULL);
3409 bool exc_caught =
false;
3416 tolua_pushusertype(tolua_S,tolua_obj,
"fawkes::MessageQueue::MessageIterator");
3417 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
3420 tolua_pushusertype(tolua_S,tolua_obj,
"fawkes::MessageQueue::MessageIterator");
3421 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
3429 catch (std::exception &e) {
3431 lua_pushstring(tolua_S, e.what());
3433 if (exc_caught) lua_error(tolua_S);
3437 #ifndef TOLUA_RELEASE 3439 tolua_error(tolua_S,
"#ferror in function 'end'.",&tolua_err);
3443 #endif //#ifndef TOLUA_DISABLE 3446 TOLUA_API
int tolua_fawkesinterface_open (lua_State* tolua_S)
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);
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
3528 tolua_dobuffer(tolua_S,(
char*)B,
sizeof(B),
"tolua: embedded Lua code 1");
3529 lua_settop(tolua_S, top);
3532 tolua_endmodule(tolua_S);
3533 tolua_module(tolua_S,
"fawkes",0);
3534 tolua_beginmodule(tolua_S,
"fawkes");
3536 tolua_cclass(tolua_S,
"Message",
"fawkes::Message",
"RefCount",tolua_collect_fawkes__Message);
3538 tolua_cclass(tolua_S,
"Message",
"fawkes::Message",
"RefCount",NULL);
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");
3566 tolua_cclass(tolua_S,
"MessageQueue",
"fawkes::MessageQueue",
"",tolua_collect_fawkes__MessageQueue);
3568 tolua_cclass(tolua_S,
"MessageQueue",
"fawkes::MessageQueue",
"",NULL);
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);
3576 tolua_cclass(tolua_S,
"MessageIterator",
"fawkes::MessageQueue::MessageIterator",
"",tolua_collect_fawkes__MessageQueue__MessageIterator);
3578 tolua_cclass(tolua_S,
"MessageIterator",
"fawkes::MessageQueue::MessageIterator",
"",NULL);
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);
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);
const char * sender_thread_name() const
Get sender of message.
Interface * interface() const
Get transmitting interface.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
unsigned int id() const
Get message ID.
unsigned int refcount()
Get reference count for this instance.
This is supposed to be the central clock in Fawkes.
A class for handling time.
Base class for all Fawkes BlackBoard interfaces.
const void * datachunk() const
Get pointer to data.
unsigned int sender_id() const
Get ID of sender.
Base class for exceptions in Fawkes.
Message queue used in interfaces.
virtual const char * what_no_backtrace() const
Get primary string (does not implicitly print the back trace).
unsigned int datasize() const
Get size of data.
const char * type() const
Get message type.