19 #include <core/exception.h> 29 TOLUA_API
int tolua_fawkesconfig_open (lua_State* tolua_S);
31 #include <config/config.h> 36 static int tolua_collect_fawkes__Configuration__ValueIterator (lua_State* tolua_S)
46 static void tolua_reg_types (lua_State* tolua_S)
48 tolua_usertype(tolua_S,
"fawkes::Configuration::ValueIterator");
49 tolua_usertype(tolua_S,
"fawkes::Configuration");
53 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_delete00 54 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_delete00(lua_State* tolua_S)
57 tolua_Error tolua_err;
59 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
60 !tolua_isnoobj(tolua_S,2,&tolua_err)
68 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'delete'", NULL);
70 bool exc_caught =
false;
77 catch (std::exception &e) {
79 lua_pushstring(tolua_S, e.what());
81 if (exc_caught) lua_error(tolua_S);
87 tolua_error(tolua_S,
"#ferror in function 'delete'.",&tolua_err);
91 #endif //#ifndef TOLUA_DISABLE 94 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_next00 95 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_next00(lua_State* tolua_S)
98 tolua_Error tolua_err;
100 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
101 !tolua_isnoobj(tolua_S,2,&tolua_err)
108 #ifndef TOLUA_RELEASE 109 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'next'", NULL);
111 bool exc_caught =
false;
114 bool tolua_ret = (bool) self->next();
115 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
121 catch (std::exception &e) {
123 lua_pushstring(tolua_S, e.what());
125 if (exc_caught) lua_error(tolua_S);
129 #ifndef TOLUA_RELEASE 131 tolua_error(tolua_S,
"#ferror in function 'next'.",&tolua_err);
135 #endif //#ifndef TOLUA_DISABLE 138 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_valid00 139 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_valid00(lua_State* tolua_S)
141 #ifndef TOLUA_RELEASE 142 tolua_Error tolua_err;
144 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
145 !tolua_isnoobj(tolua_S,2,&tolua_err)
152 #ifndef TOLUA_RELEASE 153 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'valid'", NULL);
155 bool exc_caught =
false;
158 bool tolua_ret = (bool) self->valid();
159 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
165 catch (std::exception &e) {
167 lua_pushstring(tolua_S, e.what());
169 if (exc_caught) lua_error(tolua_S);
173 #ifndef TOLUA_RELEASE 175 tolua_error(tolua_S,
"#ferror in function 'valid'.",&tolua_err);
179 #endif //#ifndef TOLUA_DISABLE 182 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_path00 183 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_path00(lua_State* tolua_S)
185 #ifndef TOLUA_RELEASE 186 tolua_Error tolua_err;
188 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
189 !tolua_isnoobj(tolua_S,2,&tolua_err)
196 #ifndef TOLUA_RELEASE 197 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'path'", NULL);
199 bool exc_caught =
false;
202 const char* tolua_ret = (
const char*) self->path();
203 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
209 catch (std::exception &e) {
211 lua_pushstring(tolua_S, e.what());
213 if (exc_caught) lua_error(tolua_S);
217 #ifndef TOLUA_RELEASE 219 tolua_error(tolua_S,
"#ferror in function 'path'.",&tolua_err);
223 #endif //#ifndef TOLUA_DISABLE 226 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_type00 227 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_type00(lua_State* tolua_S)
229 #ifndef TOLUA_RELEASE 230 tolua_Error tolua_err;
232 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
233 !tolua_isnoobj(tolua_S,2,&tolua_err)
240 #ifndef TOLUA_RELEASE 241 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'type'", NULL);
243 bool exc_caught =
false;
246 const char* tolua_ret = (
const char*) self->type();
247 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
253 catch (std::exception &e) {
255 lua_pushstring(tolua_S, e.what());
257 if (exc_caught) lua_error(tolua_S);
261 #ifndef TOLUA_RELEASE 263 tolua_error(tolua_S,
"#ferror in function 'type'.",&tolua_err);
267 #endif //#ifndef TOLUA_DISABLE 270 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_float00 271 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_float00(lua_State* tolua_S)
273 #ifndef TOLUA_RELEASE 274 tolua_Error tolua_err;
276 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
277 !tolua_isnoobj(tolua_S,2,&tolua_err)
284 #ifndef TOLUA_RELEASE 285 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_float'", NULL);
287 bool exc_caught =
false;
290 bool tolua_ret = (bool) self->is_float();
291 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
297 catch (std::exception &e) {
299 lua_pushstring(tolua_S, e.what());
301 if (exc_caught) lua_error(tolua_S);
305 #ifndef TOLUA_RELEASE 307 tolua_error(tolua_S,
"#ferror in function 'is_float'.",&tolua_err);
311 #endif //#ifndef TOLUA_DISABLE 314 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_uint00 315 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_uint00(lua_State* tolua_S)
317 #ifndef TOLUA_RELEASE 318 tolua_Error tolua_err;
320 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
321 !tolua_isnoobj(tolua_S,2,&tolua_err)
328 #ifndef TOLUA_RELEASE 329 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_uint'", NULL);
331 bool exc_caught =
false;
334 bool tolua_ret = (bool) self->is_uint();
335 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
341 catch (std::exception &e) {
343 lua_pushstring(tolua_S, e.what());
345 if (exc_caught) lua_error(tolua_S);
349 #ifndef TOLUA_RELEASE 351 tolua_error(tolua_S,
"#ferror in function 'is_uint'.",&tolua_err);
355 #endif //#ifndef TOLUA_DISABLE 358 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_int00 359 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_int00(lua_State* tolua_S)
361 #ifndef TOLUA_RELEASE 362 tolua_Error tolua_err;
364 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
365 !tolua_isnoobj(tolua_S,2,&tolua_err)
372 #ifndef TOLUA_RELEASE 373 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_int'", NULL);
375 bool exc_caught =
false;
378 bool tolua_ret = (bool) self->is_int();
379 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
385 catch (std::exception &e) {
387 lua_pushstring(tolua_S, e.what());
389 if (exc_caught) lua_error(tolua_S);
393 #ifndef TOLUA_RELEASE 395 tolua_error(tolua_S,
"#ferror in function 'is_int'.",&tolua_err);
399 #endif //#ifndef TOLUA_DISABLE 402 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_bool00 403 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_bool00(lua_State* tolua_S)
405 #ifndef TOLUA_RELEASE 406 tolua_Error tolua_err;
408 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
409 !tolua_isnoobj(tolua_S,2,&tolua_err)
416 #ifndef TOLUA_RELEASE 417 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_bool'", NULL);
419 bool exc_caught =
false;
422 bool tolua_ret = (bool) self->is_bool();
423 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
429 catch (std::exception &e) {
431 lua_pushstring(tolua_S, e.what());
433 if (exc_caught) lua_error(tolua_S);
437 #ifndef TOLUA_RELEASE 439 tolua_error(tolua_S,
"#ferror in function 'is_bool'.",&tolua_err);
443 #endif //#ifndef TOLUA_DISABLE 446 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_string00 447 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_string00(lua_State* tolua_S)
449 #ifndef TOLUA_RELEASE 450 tolua_Error tolua_err;
452 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
453 !tolua_isnoobj(tolua_S,2,&tolua_err)
460 #ifndef TOLUA_RELEASE 461 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_string'", NULL);
463 bool exc_caught =
false;
466 bool tolua_ret = (bool) self->is_string();
467 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
473 catch (std::exception &e) {
475 lua_pushstring(tolua_S, e.what());
477 if (exc_caught) lua_error(tolua_S);
481 #ifndef TOLUA_RELEASE 483 tolua_error(tolua_S,
"#ferror in function 'is_string'.",&tolua_err);
487 #endif //#ifndef TOLUA_DISABLE 490 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_float00 491 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_float00(lua_State* tolua_S)
493 #ifndef TOLUA_RELEASE 494 tolua_Error tolua_err;
496 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
497 !tolua_isnoobj(tolua_S,2,&tolua_err)
504 #ifndef TOLUA_RELEASE 505 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'get_float'", NULL);
507 bool exc_caught =
false;
510 float tolua_ret = (float) self->get_float();
511 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
517 catch (std::exception &e) {
519 lua_pushstring(tolua_S, e.what());
521 if (exc_caught) lua_error(tolua_S);
525 #ifndef TOLUA_RELEASE 527 tolua_error(tolua_S,
"#ferror in function 'get_float'.",&tolua_err);
531 #endif //#ifndef TOLUA_DISABLE 534 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_uint00 535 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_uint00(lua_State* tolua_S)
537 #ifndef TOLUA_RELEASE 538 tolua_Error tolua_err;
540 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
541 !tolua_isnoobj(tolua_S,2,&tolua_err)
548 #ifndef TOLUA_RELEASE 549 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'get_uint'", NULL);
551 bool exc_caught =
false;
554 unsigned int tolua_ret = (
unsigned int) self->get_uint();
555 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
561 catch (std::exception &e) {
563 lua_pushstring(tolua_S, e.what());
565 if (exc_caught) lua_error(tolua_S);
569 #ifndef TOLUA_RELEASE 571 tolua_error(tolua_S,
"#ferror in function 'get_uint'.",&tolua_err);
575 #endif //#ifndef TOLUA_DISABLE 578 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_int00 579 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_int00(lua_State* tolua_S)
581 #ifndef TOLUA_RELEASE 582 tolua_Error tolua_err;
584 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
585 !tolua_isnoobj(tolua_S,2,&tolua_err)
592 #ifndef TOLUA_RELEASE 593 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'get_int'", NULL);
595 bool exc_caught =
false;
598 int tolua_ret = (int) self->get_int();
599 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
605 catch (std::exception &e) {
607 lua_pushstring(tolua_S, e.what());
609 if (exc_caught) lua_error(tolua_S);
613 #ifndef TOLUA_RELEASE 615 tolua_error(tolua_S,
"#ferror in function 'get_int'.",&tolua_err);
619 #endif //#ifndef TOLUA_DISABLE 622 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_bool00 623 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_bool00(lua_State* tolua_S)
625 #ifndef TOLUA_RELEASE 626 tolua_Error tolua_err;
628 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
629 !tolua_isnoobj(tolua_S,2,&tolua_err)
636 #ifndef TOLUA_RELEASE 637 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'get_bool'", NULL);
639 bool exc_caught =
false;
642 bool tolua_ret = (bool) self->get_bool();
643 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
649 catch (std::exception &e) {
651 lua_pushstring(tolua_S, e.what());
653 if (exc_caught) lua_error(tolua_S);
657 #ifndef TOLUA_RELEASE 659 tolua_error(tolua_S,
"#ferror in function 'get_bool'.",&tolua_err);
663 #endif //#ifndef TOLUA_DISABLE 666 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_string00 667 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_string00(lua_State* tolua_S)
669 #ifndef TOLUA_RELEASE 670 tolua_Error tolua_err;
672 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
673 !tolua_isnoobj(tolua_S,2,&tolua_err)
680 #ifndef TOLUA_RELEASE 681 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'get_string'", NULL);
683 bool exc_caught =
false;
686 std::string tolua_ret = (std::string) self->get_string();
687 tolua_pushcppstring(tolua_S,(
const char*)tolua_ret);
693 catch (std::exception &e) {
695 lua_pushstring(tolua_S, e.what());
697 if (exc_caught) lua_error(tolua_S);
701 #ifndef TOLUA_RELEASE 703 tolua_error(tolua_S,
"#ferror in function 'get_string'.",&tolua_err);
707 #endif //#ifndef TOLUA_DISABLE 710 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_default00 711 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_default00(lua_State* tolua_S)
713 #ifndef TOLUA_RELEASE 714 tolua_Error tolua_err;
716 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
717 !tolua_isnoobj(tolua_S,2,&tolua_err)
724 #ifndef TOLUA_RELEASE 725 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_default'", NULL);
727 bool exc_caught =
false;
730 bool tolua_ret = (bool) self->is_default();
731 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
737 catch (std::exception &e) {
739 lua_pushstring(tolua_S, e.what());
741 if (exc_caught) lua_error(tolua_S);
745 #ifndef TOLUA_RELEASE 747 tolua_error(tolua_S,
"#ferror in function 'is_default'.",&tolua_err);
751 #endif //#ifndef TOLUA_DISABLE 754 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_exists00 755 static int tolua_fawkesconfig_fawkes_Configuration_exists00(lua_State* tolua_S)
757 #ifndef TOLUA_RELEASE 758 tolua_Error tolua_err;
760 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
761 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
762 !tolua_isnoobj(tolua_S,3,&tolua_err)
769 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
770 #ifndef TOLUA_RELEASE 771 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'exists'", NULL);
773 bool exc_caught =
false;
776 bool tolua_ret = (bool) self->exists(path);
777 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
783 catch (std::exception &e) {
785 lua_pushstring(tolua_S, e.what());
787 if (exc_caught) lua_error(tolua_S);
791 #ifndef TOLUA_RELEASE 793 tolua_error(tolua_S,
"#ferror in function 'exists'.",&tolua_err);
797 #endif //#ifndef TOLUA_DISABLE 800 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_is_float00 801 static int tolua_fawkesconfig_fawkes_Configuration_is_float00(lua_State* tolua_S)
803 #ifndef TOLUA_RELEASE 804 tolua_Error tolua_err;
806 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
807 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
808 !tolua_isnoobj(tolua_S,3,&tolua_err)
815 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
816 #ifndef TOLUA_RELEASE 817 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_float'", NULL);
819 bool exc_caught =
false;
822 bool tolua_ret = (bool) self->is_float(path);
823 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
829 catch (std::exception &e) {
831 lua_pushstring(tolua_S, e.what());
833 if (exc_caught) lua_error(tolua_S);
837 #ifndef TOLUA_RELEASE 839 tolua_error(tolua_S,
"#ferror in function 'is_float'.",&tolua_err);
843 #endif //#ifndef TOLUA_DISABLE 846 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_is_uint00 847 static int tolua_fawkesconfig_fawkes_Configuration_is_uint00(lua_State* tolua_S)
849 #ifndef TOLUA_RELEASE 850 tolua_Error tolua_err;
852 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
853 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
854 !tolua_isnoobj(tolua_S,3,&tolua_err)
861 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
862 #ifndef TOLUA_RELEASE 863 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_uint'", NULL);
865 bool exc_caught =
false;
868 bool tolua_ret = (bool) self->is_uint(path);
869 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
875 catch (std::exception &e) {
877 lua_pushstring(tolua_S, e.what());
879 if (exc_caught) lua_error(tolua_S);
883 #ifndef TOLUA_RELEASE 885 tolua_error(tolua_S,
"#ferror in function 'is_uint'.",&tolua_err);
889 #endif //#ifndef TOLUA_DISABLE 892 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_is_int00 893 static int tolua_fawkesconfig_fawkes_Configuration_is_int00(lua_State* tolua_S)
895 #ifndef TOLUA_RELEASE 896 tolua_Error tolua_err;
898 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
899 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
900 !tolua_isnoobj(tolua_S,3,&tolua_err)
907 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
908 #ifndef TOLUA_RELEASE 909 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_int'", NULL);
911 bool exc_caught =
false;
914 bool tolua_ret = (bool) self->is_int(path);
915 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
921 catch (std::exception &e) {
923 lua_pushstring(tolua_S, e.what());
925 if (exc_caught) lua_error(tolua_S);
929 #ifndef TOLUA_RELEASE 931 tolua_error(tolua_S,
"#ferror in function 'is_int'.",&tolua_err);
935 #endif //#ifndef TOLUA_DISABLE 938 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_is_bool00 939 static int tolua_fawkesconfig_fawkes_Configuration_is_bool00(lua_State* tolua_S)
941 #ifndef TOLUA_RELEASE 942 tolua_Error tolua_err;
944 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
945 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
946 !tolua_isnoobj(tolua_S,3,&tolua_err)
953 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
954 #ifndef TOLUA_RELEASE 955 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_bool'", NULL);
957 bool exc_caught =
false;
960 bool tolua_ret = (bool) self->is_bool(path);
961 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
967 catch (std::exception &e) {
969 lua_pushstring(tolua_S, e.what());
971 if (exc_caught) lua_error(tolua_S);
975 #ifndef TOLUA_RELEASE 977 tolua_error(tolua_S,
"#ferror in function 'is_bool'.",&tolua_err);
981 #endif //#ifndef TOLUA_DISABLE 984 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_is_string00 985 static int tolua_fawkesconfig_fawkes_Configuration_is_string00(lua_State* tolua_S)
987 #ifndef TOLUA_RELEASE 988 tolua_Error tolua_err;
990 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
991 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
992 !tolua_isnoobj(tolua_S,3,&tolua_err)
999 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1000 #ifndef TOLUA_RELEASE 1001 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_string'", NULL);
1003 bool exc_caught =
false;
1006 bool tolua_ret = (bool) self->is_string(path);
1007 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
1013 catch (std::exception &e) {
1015 lua_pushstring(tolua_S, e.what());
1017 if (exc_caught) lua_error(tolua_S);
1021 #ifndef TOLUA_RELEASE 1023 tolua_error(tolua_S,
"#ferror in function 'is_string'.",&tolua_err);
1027 #endif //#ifndef TOLUA_DISABLE 1030 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_is_default00 1031 static int tolua_fawkesconfig_fawkes_Configuration_is_default00(lua_State* tolua_S)
1033 #ifndef TOLUA_RELEASE 1034 tolua_Error tolua_err;
1036 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1037 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1038 !tolua_isnoobj(tolua_S,3,&tolua_err)
1045 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1046 #ifndef TOLUA_RELEASE 1047 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_default'", NULL);
1049 bool exc_caught =
false;
1052 bool tolua_ret = (bool) self->is_default(path);
1053 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
1059 catch (std::exception &e) {
1061 lua_pushstring(tolua_S, e.what());
1063 if (exc_caught) lua_error(tolua_S);
1067 #ifndef TOLUA_RELEASE 1069 tolua_error(tolua_S,
"#ferror in function 'is_default'.",&tolua_err);
1073 #endif //#ifndef TOLUA_DISABLE 1076 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_get_float00 1077 static int tolua_fawkesconfig_fawkes_Configuration_get_float00(lua_State* tolua_S)
1079 #ifndef TOLUA_RELEASE 1080 tolua_Error tolua_err;
1082 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1083 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1084 !tolua_isnoobj(tolua_S,3,&tolua_err)
1091 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1092 #ifndef TOLUA_RELEASE 1093 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'get_float'", NULL);
1095 bool exc_caught =
false;
1098 float tolua_ret = (float) self->get_float(path);
1099 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1105 catch (std::exception &e) {
1107 lua_pushstring(tolua_S, e.what());
1109 if (exc_caught) lua_error(tolua_S);
1113 #ifndef TOLUA_RELEASE 1115 tolua_error(tolua_S,
"#ferror in function 'get_float'.",&tolua_err);
1119 #endif //#ifndef TOLUA_DISABLE 1122 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_get_uint00 1123 static int tolua_fawkesconfig_fawkes_Configuration_get_uint00(lua_State* tolua_S)
1125 #ifndef TOLUA_RELEASE 1126 tolua_Error tolua_err;
1128 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1129 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1130 !tolua_isnoobj(tolua_S,3,&tolua_err)
1137 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1138 #ifndef TOLUA_RELEASE 1139 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'get_uint'", NULL);
1141 bool exc_caught =
false;
1144 unsigned int tolua_ret = (
unsigned int) self->get_uint(path);
1145 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1151 catch (std::exception &e) {
1153 lua_pushstring(tolua_S, e.what());
1155 if (exc_caught) lua_error(tolua_S);
1159 #ifndef TOLUA_RELEASE 1161 tolua_error(tolua_S,
"#ferror in function 'get_uint'.",&tolua_err);
1165 #endif //#ifndef TOLUA_DISABLE 1168 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_get_int00 1169 static int tolua_fawkesconfig_fawkes_Configuration_get_int00(lua_State* tolua_S)
1171 #ifndef TOLUA_RELEASE 1172 tolua_Error tolua_err;
1174 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1175 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1176 !tolua_isnoobj(tolua_S,3,&tolua_err)
1183 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1184 #ifndef TOLUA_RELEASE 1185 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'get_int'", NULL);
1187 bool exc_caught =
false;
1190 int tolua_ret = (int) self->get_int(path);
1191 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1197 catch (std::exception &e) {
1199 lua_pushstring(tolua_S, e.what());
1201 if (exc_caught) lua_error(tolua_S);
1205 #ifndef TOLUA_RELEASE 1207 tolua_error(tolua_S,
"#ferror in function 'get_int'.",&tolua_err);
1211 #endif //#ifndef TOLUA_DISABLE 1214 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_get_bool00 1215 static int tolua_fawkesconfig_fawkes_Configuration_get_bool00(lua_State* tolua_S)
1217 #ifndef TOLUA_RELEASE 1218 tolua_Error tolua_err;
1220 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1221 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1222 !tolua_isnoobj(tolua_S,3,&tolua_err)
1229 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1230 #ifndef TOLUA_RELEASE 1231 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'get_bool'", NULL);
1233 bool exc_caught =
false;
1236 bool tolua_ret = (bool) self->get_bool(path);
1237 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
1243 catch (std::exception &e) {
1245 lua_pushstring(tolua_S, e.what());
1247 if (exc_caught) lua_error(tolua_S);
1251 #ifndef TOLUA_RELEASE 1253 tolua_error(tolua_S,
"#ferror in function 'get_bool'.",&tolua_err);
1257 #endif //#ifndef TOLUA_DISABLE 1260 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_get_string00 1261 static int tolua_fawkesconfig_fawkes_Configuration_get_string00(lua_State* tolua_S)
1263 #ifndef TOLUA_RELEASE 1264 tolua_Error tolua_err;
1266 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1267 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1268 !tolua_isnoobj(tolua_S,3,&tolua_err)
1275 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1276 #ifndef TOLUA_RELEASE 1277 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'get_string'", NULL);
1279 bool exc_caught =
false;
1282 std::string tolua_ret = (std::string) self->get_string(path);
1283 tolua_pushcppstring(tolua_S,(
const char*)tolua_ret);
1289 catch (std::exception &e) {
1291 lua_pushstring(tolua_S, e.what());
1293 if (exc_caught) lua_error(tolua_S);
1297 #ifndef TOLUA_RELEASE 1299 tolua_error(tolua_S,
"#ferror in function 'get_string'.",&tolua_err);
1303 #endif //#ifndef TOLUA_DISABLE 1306 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_get_value00 1307 static int tolua_fawkesconfig_fawkes_Configuration_get_value00(lua_State* tolua_S)
1309 #ifndef TOLUA_RELEASE 1310 tolua_Error tolua_err;
1312 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1313 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1314 !tolua_isnoobj(tolua_S,3,&tolua_err)
1321 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1322 #ifndef TOLUA_RELEASE 1323 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'get_value'", NULL);
1325 bool exc_caught =
false;
1329 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Configuration::ValueIterator");
1335 catch (std::exception &e) {
1337 lua_pushstring(tolua_S, e.what());
1339 if (exc_caught) lua_error(tolua_S);
1343 #ifndef TOLUA_RELEASE 1345 tolua_error(tolua_S,
"#ferror in function 'get_value'.",&tolua_err);
1349 #endif //#ifndef TOLUA_DISABLE 1352 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_float00 1353 static int tolua_fawkesconfig_fawkes_Configuration_set_float00(lua_State* tolua_S)
1355 #ifndef TOLUA_RELEASE 1356 tolua_Error tolua_err;
1358 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1359 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1360 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1361 !tolua_isnoobj(tolua_S,4,&tolua_err)
1368 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1369 float f = ((float) tolua_tonumber(tolua_S,3,0));
1370 #ifndef TOLUA_RELEASE 1371 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_float'", NULL);
1373 bool exc_caught =
false;
1376 self->set_float(path,f);
1382 catch (std::exception &e) {
1384 lua_pushstring(tolua_S, e.what());
1386 if (exc_caught) lua_error(tolua_S);
1390 #ifndef TOLUA_RELEASE 1392 tolua_error(tolua_S,
"#ferror in function 'set_float'.",&tolua_err);
1396 #endif //#ifndef TOLUA_DISABLE 1399 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_uint00 1400 static int tolua_fawkesconfig_fawkes_Configuration_set_uint00(lua_State* tolua_S)
1402 #ifndef TOLUA_RELEASE 1403 tolua_Error tolua_err;
1405 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1406 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1407 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1408 !tolua_isnoobj(tolua_S,4,&tolua_err)
1415 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1416 unsigned int uint = ((
unsigned int) tolua_tonumber(tolua_S,3,0));
1417 #ifndef TOLUA_RELEASE 1418 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_uint'", NULL);
1420 bool exc_caught =
false;
1423 self->set_uint(path,uint);
1429 catch (std::exception &e) {
1431 lua_pushstring(tolua_S, e.what());
1433 if (exc_caught) lua_error(tolua_S);
1437 #ifndef TOLUA_RELEASE 1439 tolua_error(tolua_S,
"#ferror in function 'set_uint'.",&tolua_err);
1443 #endif //#ifndef TOLUA_DISABLE 1446 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_int00 1447 static int tolua_fawkesconfig_fawkes_Configuration_set_int00(lua_State* tolua_S)
1449 #ifndef TOLUA_RELEASE 1450 tolua_Error tolua_err;
1452 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1453 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1454 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1455 !tolua_isnoobj(tolua_S,4,&tolua_err)
1462 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1463 int i = ((int) tolua_tonumber(tolua_S,3,0));
1464 #ifndef TOLUA_RELEASE 1465 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_int'", NULL);
1467 bool exc_caught =
false;
1470 self->set_int(path,i);
1476 catch (std::exception &e) {
1478 lua_pushstring(tolua_S, e.what());
1480 if (exc_caught) lua_error(tolua_S);
1484 #ifndef TOLUA_RELEASE 1486 tolua_error(tolua_S,
"#ferror in function 'set_int'.",&tolua_err);
1490 #endif //#ifndef TOLUA_DISABLE 1493 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_bool00 1494 static int tolua_fawkesconfig_fawkes_Configuration_set_bool00(lua_State* tolua_S)
1496 #ifndef TOLUA_RELEASE 1497 tolua_Error tolua_err;
1499 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1500 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1501 !tolua_isboolean(tolua_S,3,0,&tolua_err) ||
1502 !tolua_isnoobj(tolua_S,4,&tolua_err)
1509 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1510 bool b = ((bool) tolua_toboolean(tolua_S,3,0));
1511 #ifndef TOLUA_RELEASE 1512 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_bool'", NULL);
1514 bool exc_caught =
false;
1517 self->set_bool(path,b);
1523 catch (std::exception &e) {
1525 lua_pushstring(tolua_S, e.what());
1527 if (exc_caught) lua_error(tolua_S);
1531 #ifndef TOLUA_RELEASE 1533 tolua_error(tolua_S,
"#ferror in function 'set_bool'.",&tolua_err);
1537 #endif //#ifndef TOLUA_DISABLE 1540 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_string00 1541 static int tolua_fawkesconfig_fawkes_Configuration_set_string00(lua_State* tolua_S)
1543 #ifndef TOLUA_RELEASE 1544 tolua_Error tolua_err;
1546 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1547 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1548 !tolua_iscppstring(tolua_S,3,0,&tolua_err) ||
1549 !tolua_isnoobj(tolua_S,4,&tolua_err)
1556 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1557 std::string s = ((std::string) tolua_tocppstring(tolua_S,3,0));
1558 #ifndef TOLUA_RELEASE 1559 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_string'", NULL);
1561 bool exc_caught =
false;
1564 self->set_string(path,s);
1570 catch (std::exception &e) {
1572 lua_pushstring(tolua_S, e.what());
1574 if (exc_caught) lua_error(tolua_S);
1578 #ifndef TOLUA_RELEASE 1580 tolua_error(tolua_S,
"#ferror in function 'set_string'.",&tolua_err);
1584 #endif //#ifndef TOLUA_DISABLE 1587 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_string01 1588 static int tolua_fawkesconfig_fawkes_Configuration_set_string01(lua_State* tolua_S)
1590 tolua_Error tolua_err;
1592 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1593 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1594 !tolua_isstring(tolua_S,3,0,&tolua_err) ||
1595 !tolua_isnoobj(tolua_S,4,&tolua_err)
1601 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1602 const char* s = ((
const char*) tolua_tostring(tolua_S,3,0));
1603 #ifndef TOLUA_RELEASE 1604 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_string'", NULL);
1606 bool exc_caught =
false;
1609 self->set_string(path,s);
1615 catch (std::exception &e) {
1617 lua_pushstring(tolua_S, e.what());
1619 if (exc_caught) lua_error(tolua_S);
1624 return tolua_fawkesconfig_fawkes_Configuration_set_string00(tolua_S);
1626 #endif //#ifndef TOLUA_DISABLE 1629 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_erase00 1630 static int tolua_fawkesconfig_fawkes_Configuration_erase00(lua_State* tolua_S)
1632 #ifndef TOLUA_RELEASE 1633 tolua_Error tolua_err;
1635 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1636 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1637 !tolua_isnoobj(tolua_S,3,&tolua_err)
1644 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1645 #ifndef TOLUA_RELEASE 1646 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'erase'", NULL);
1648 bool exc_caught =
false;
1657 catch (std::exception &e) {
1659 lua_pushstring(tolua_S, e.what());
1661 if (exc_caught) lua_error(tolua_S);
1665 #ifndef TOLUA_RELEASE 1667 tolua_error(tolua_S,
"#ferror in function 'erase'.",&tolua_err);
1671 #endif //#ifndef TOLUA_DISABLE 1674 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_default_float00 1675 static int tolua_fawkesconfig_fawkes_Configuration_set_default_float00(lua_State* tolua_S)
1677 #ifndef TOLUA_RELEASE 1678 tolua_Error tolua_err;
1680 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1681 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1682 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1683 !tolua_isnoobj(tolua_S,4,&tolua_err)
1690 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1691 float f = ((float) tolua_tonumber(tolua_S,3,0));
1692 #ifndef TOLUA_RELEASE 1693 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_default_float'", NULL);
1695 bool exc_caught =
false;
1698 self->set_default_float(path,f);
1704 catch (std::exception &e) {
1706 lua_pushstring(tolua_S, e.what());
1708 if (exc_caught) lua_error(tolua_S);
1712 #ifndef TOLUA_RELEASE 1714 tolua_error(tolua_S,
"#ferror in function 'set_default_float'.",&tolua_err);
1718 #endif //#ifndef TOLUA_DISABLE 1721 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_default_uint00 1722 static int tolua_fawkesconfig_fawkes_Configuration_set_default_uint00(lua_State* tolua_S)
1724 #ifndef TOLUA_RELEASE 1725 tolua_Error tolua_err;
1727 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1728 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1729 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1730 !tolua_isnoobj(tolua_S,4,&tolua_err)
1737 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1738 unsigned int uint = ((
unsigned int) tolua_tonumber(tolua_S,3,0));
1739 #ifndef TOLUA_RELEASE 1740 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_default_uint'", NULL);
1742 bool exc_caught =
false;
1745 self->set_default_uint(path,uint);
1751 catch (std::exception &e) {
1753 lua_pushstring(tolua_S, e.what());
1755 if (exc_caught) lua_error(tolua_S);
1759 #ifndef TOLUA_RELEASE 1761 tolua_error(tolua_S,
"#ferror in function 'set_default_uint'.",&tolua_err);
1765 #endif //#ifndef TOLUA_DISABLE 1768 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_default_int00 1769 static int tolua_fawkesconfig_fawkes_Configuration_set_default_int00(lua_State* tolua_S)
1771 #ifndef TOLUA_RELEASE 1772 tolua_Error tolua_err;
1774 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1775 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1776 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1777 !tolua_isnoobj(tolua_S,4,&tolua_err)
1784 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1785 int i = ((int) tolua_tonumber(tolua_S,3,0));
1786 #ifndef TOLUA_RELEASE 1787 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_default_int'", NULL);
1789 bool exc_caught =
false;
1792 self->set_default_int(path,i);
1798 catch (std::exception &e) {
1800 lua_pushstring(tolua_S, e.what());
1802 if (exc_caught) lua_error(tolua_S);
1806 #ifndef TOLUA_RELEASE 1808 tolua_error(tolua_S,
"#ferror in function 'set_default_int'.",&tolua_err);
1812 #endif //#ifndef TOLUA_DISABLE 1815 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_default_bool00 1816 static int tolua_fawkesconfig_fawkes_Configuration_set_default_bool00(lua_State* tolua_S)
1818 #ifndef TOLUA_RELEASE 1819 tolua_Error tolua_err;
1821 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1822 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1823 !tolua_isboolean(tolua_S,3,0,&tolua_err) ||
1824 !tolua_isnoobj(tolua_S,4,&tolua_err)
1831 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1832 bool b = ((bool) tolua_toboolean(tolua_S,3,0));
1833 #ifndef TOLUA_RELEASE 1834 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_default_bool'", NULL);
1836 bool exc_caught =
false;
1839 self->set_default_bool(path,b);
1845 catch (std::exception &e) {
1847 lua_pushstring(tolua_S, e.what());
1849 if (exc_caught) lua_error(tolua_S);
1853 #ifndef TOLUA_RELEASE 1855 tolua_error(tolua_S,
"#ferror in function 'set_default_bool'.",&tolua_err);
1859 #endif //#ifndef TOLUA_DISABLE 1862 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_default_string00 1863 static int tolua_fawkesconfig_fawkes_Configuration_set_default_string00(lua_State* tolua_S)
1865 #ifndef TOLUA_RELEASE 1866 tolua_Error tolua_err;
1868 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1869 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1870 !tolua_iscppstring(tolua_S,3,0,&tolua_err) ||
1871 !tolua_isnoobj(tolua_S,4,&tolua_err)
1878 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1879 std::string s = ((std::string) tolua_tocppstring(tolua_S,3,0));
1880 #ifndef TOLUA_RELEASE 1881 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_default_string'", NULL);
1883 bool exc_caught =
false;
1886 self->set_default_string(path,s);
1892 catch (std::exception &e) {
1894 lua_pushstring(tolua_S, e.what());
1896 if (exc_caught) lua_error(tolua_S);
1900 #ifndef TOLUA_RELEASE 1902 tolua_error(tolua_S,
"#ferror in function 'set_default_string'.",&tolua_err);
1906 #endif //#ifndef TOLUA_DISABLE 1909 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_default_string01 1910 static int tolua_fawkesconfig_fawkes_Configuration_set_default_string01(lua_State* tolua_S)
1912 tolua_Error tolua_err;
1914 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1915 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1916 !tolua_isstring(tolua_S,3,0,&tolua_err) ||
1917 !tolua_isnoobj(tolua_S,4,&tolua_err)
1923 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1924 const char* s = ((
const char*) tolua_tostring(tolua_S,3,0));
1925 #ifndef TOLUA_RELEASE 1926 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_default_string'", NULL);
1928 bool exc_caught =
false;
1931 self->set_default_string(path,s);
1937 catch (std::exception &e) {
1939 lua_pushstring(tolua_S, e.what());
1941 if (exc_caught) lua_error(tolua_S);
1946 return tolua_fawkesconfig_fawkes_Configuration_set_default_string00(tolua_S);
1948 #endif //#ifndef TOLUA_DISABLE 1951 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_erase_default00 1952 static int tolua_fawkesconfig_fawkes_Configuration_erase_default00(lua_State* tolua_S)
1954 #ifndef TOLUA_RELEASE 1955 tolua_Error tolua_err;
1957 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1958 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1959 !tolua_isnoobj(tolua_S,3,&tolua_err)
1966 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1967 #ifndef TOLUA_RELEASE 1968 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'erase_default'", NULL);
1970 bool exc_caught =
false;
1973 self->erase_default(path);
1979 catch (std::exception &e) {
1981 lua_pushstring(tolua_S, e.what());
1983 if (exc_caught) lua_error(tolua_S);
1987 #ifndef TOLUA_RELEASE 1989 tolua_error(tolua_S,
"#ferror in function 'erase_default'.",&tolua_err);
1993 #endif //#ifndef TOLUA_DISABLE 1996 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_iterator00 1997 static int tolua_fawkesconfig_fawkes_Configuration_iterator00(lua_State* tolua_S)
1999 #ifndef TOLUA_RELEASE 2000 tolua_Error tolua_err;
2002 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
2003 !tolua_isnoobj(tolua_S,2,&tolua_err)
2010 #ifndef TOLUA_RELEASE 2011 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'iterator'", NULL);
2013 bool exc_caught =
false;
2017 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Configuration::ValueIterator");
2023 catch (std::exception &e) {
2025 lua_pushstring(tolua_S, e.what());
2027 if (exc_caught) lua_error(tolua_S);
2031 #ifndef TOLUA_RELEASE 2033 tolua_error(tolua_S,
"#ferror in function 'iterator'.",&tolua_err);
2037 #endif //#ifndef TOLUA_DISABLE 2040 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_search00 2041 static int tolua_fawkesconfig_fawkes_Configuration_search00(lua_State* tolua_S)
2043 #ifndef TOLUA_RELEASE 2044 tolua_Error tolua_err;
2046 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
2047 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
2048 !tolua_isnoobj(tolua_S,3,&tolua_err)
2055 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
2056 #ifndef TOLUA_RELEASE 2057 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'search'", NULL);
2059 bool exc_caught =
false;
2063 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Configuration::ValueIterator");
2069 catch (std::exception &e) {
2071 lua_pushstring(tolua_S, e.what());
2073 if (exc_caught) lua_error(tolua_S);
2077 #ifndef TOLUA_RELEASE 2079 tolua_error(tolua_S,
"#ferror in function 'search'.",&tolua_err);
2083 #endif //#ifndef TOLUA_DISABLE 2086 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_lock00 2087 static int tolua_fawkesconfig_fawkes_Configuration_lock00(lua_State* tolua_S)
2089 #ifndef TOLUA_RELEASE 2090 tolua_Error tolua_err;
2092 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
2093 !tolua_isnoobj(tolua_S,2,&tolua_err)
2100 #ifndef TOLUA_RELEASE 2101 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'lock'", NULL);
2103 bool exc_caught =
false;
2112 catch (std::exception &e) {
2114 lua_pushstring(tolua_S, e.what());
2116 if (exc_caught) lua_error(tolua_S);
2120 #ifndef TOLUA_RELEASE 2122 tolua_error(tolua_S,
"#ferror in function 'lock'.",&tolua_err);
2126 #endif //#ifndef TOLUA_DISABLE 2129 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_try_lock00 2130 static int tolua_fawkesconfig_fawkes_Configuration_try_lock00(lua_State* tolua_S)
2132 #ifndef TOLUA_RELEASE 2133 tolua_Error tolua_err;
2135 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
2136 !tolua_isnoobj(tolua_S,2,&tolua_err)
2143 #ifndef TOLUA_RELEASE 2144 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'try_lock'", NULL);
2146 bool exc_caught =
false;
2149 bool tolua_ret = (bool) self->try_lock();
2150 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
2156 catch (std::exception &e) {
2158 lua_pushstring(tolua_S, e.what());
2160 if (exc_caught) lua_error(tolua_S);
2164 #ifndef TOLUA_RELEASE 2166 tolua_error(tolua_S,
"#ferror in function 'try_lock'.",&tolua_err);
2170 #endif //#ifndef TOLUA_DISABLE 2173 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_unlock00 2174 static int tolua_fawkesconfig_fawkes_Configuration_unlock00(lua_State* tolua_S)
2176 #ifndef TOLUA_RELEASE 2177 tolua_Error tolua_err;
2179 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
2180 !tolua_isnoobj(tolua_S,2,&tolua_err)
2187 #ifndef TOLUA_RELEASE 2188 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'unlock'", NULL);
2190 bool exc_caught =
false;
2199 catch (std::exception &e) {
2201 lua_pushstring(tolua_S, e.what());
2203 if (exc_caught) lua_error(tolua_S);
2207 #ifndef TOLUA_RELEASE 2209 tolua_error(tolua_S,
"#ferror in function 'unlock'.",&tolua_err);
2213 #endif //#ifndef TOLUA_DISABLE 2216 TOLUA_API
int tolua_fawkesconfig_open (lua_State* tolua_S)
2218 tolua_open(tolua_S);
2219 tolua_reg_types(tolua_S);
2220 tolua_module(tolua_S,NULL,0);
2221 tolua_beginmodule(tolua_S,NULL);
2222 tolua_module(tolua_S,
"fawkes",0);
2223 tolua_beginmodule(tolua_S,
"fawkes");
2224 tolua_cclass(tolua_S,
"Configuration",
"fawkes::Configuration",
"",NULL);
2225 tolua_beginmodule(tolua_S,
"Configuration");
2227 tolua_cclass(tolua_S,
"ValueIterator",
"fawkes::Configuration::ValueIterator",
"",tolua_collect_fawkes__Configuration__ValueIterator);
2229 tolua_cclass(tolua_S,
"ValueIterator",
"fawkes::Configuration::ValueIterator",
"",NULL);
2231 tolua_beginmodule(tolua_S,
"ValueIterator");
2232 tolua_function(tolua_S,
"delete",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_delete00);
2233 tolua_function(tolua_S,
"next",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_next00);
2234 tolua_function(tolua_S,
"valid",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_valid00);
2235 tolua_function(tolua_S,
"path",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_path00);
2236 tolua_function(tolua_S,
"type",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_type00);
2237 tolua_function(tolua_S,
"is_float",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_float00);
2238 tolua_function(tolua_S,
"is_uint",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_uint00);
2239 tolua_function(tolua_S,
"is_int",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_int00);
2240 tolua_function(tolua_S,
"is_bool",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_bool00);
2241 tolua_function(tolua_S,
"is_string",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_string00);
2242 tolua_function(tolua_S,
"get_float",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_float00);
2243 tolua_function(tolua_S,
"get_uint",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_uint00);
2244 tolua_function(tolua_S,
"get_int",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_int00);
2245 tolua_function(tolua_S,
"get_bool",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_bool00);
2246 tolua_function(tolua_S,
"get_string",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_string00);
2247 tolua_function(tolua_S,
"is_default",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_default00);
2248 tolua_endmodule(tolua_S);
2249 tolua_function(tolua_S,
"exists",tolua_fawkesconfig_fawkes_Configuration_exists00);
2250 tolua_function(tolua_S,
"is_float",tolua_fawkesconfig_fawkes_Configuration_is_float00);
2251 tolua_function(tolua_S,
"is_uint",tolua_fawkesconfig_fawkes_Configuration_is_uint00);
2252 tolua_function(tolua_S,
"is_int",tolua_fawkesconfig_fawkes_Configuration_is_int00);
2253 tolua_function(tolua_S,
"is_bool",tolua_fawkesconfig_fawkes_Configuration_is_bool00);
2254 tolua_function(tolua_S,
"is_string",tolua_fawkesconfig_fawkes_Configuration_is_string00);
2255 tolua_function(tolua_S,
"is_default",tolua_fawkesconfig_fawkes_Configuration_is_default00);
2256 tolua_function(tolua_S,
"get_float",tolua_fawkesconfig_fawkes_Configuration_get_float00);
2257 tolua_function(tolua_S,
"get_uint",tolua_fawkesconfig_fawkes_Configuration_get_uint00);
2258 tolua_function(tolua_S,
"get_int",tolua_fawkesconfig_fawkes_Configuration_get_int00);
2259 tolua_function(tolua_S,
"get_bool",tolua_fawkesconfig_fawkes_Configuration_get_bool00);
2260 tolua_function(tolua_S,
"get_string",tolua_fawkesconfig_fawkes_Configuration_get_string00);
2261 tolua_function(tolua_S,
"get_value",tolua_fawkesconfig_fawkes_Configuration_get_value00);
2262 tolua_function(tolua_S,
"set_float",tolua_fawkesconfig_fawkes_Configuration_set_float00);
2263 tolua_function(tolua_S,
"set_uint",tolua_fawkesconfig_fawkes_Configuration_set_uint00);
2264 tolua_function(tolua_S,
"set_int",tolua_fawkesconfig_fawkes_Configuration_set_int00);
2265 tolua_function(tolua_S,
"set_bool",tolua_fawkesconfig_fawkes_Configuration_set_bool00);
2266 tolua_function(tolua_S,
"set_string",tolua_fawkesconfig_fawkes_Configuration_set_string00);
2267 tolua_function(tolua_S,
"set_string",tolua_fawkesconfig_fawkes_Configuration_set_string01);
2268 tolua_function(tolua_S,
"erase",tolua_fawkesconfig_fawkes_Configuration_erase00);
2269 tolua_function(tolua_S,
"set_default_float",tolua_fawkesconfig_fawkes_Configuration_set_default_float00);
2270 tolua_function(tolua_S,
"set_default_uint",tolua_fawkesconfig_fawkes_Configuration_set_default_uint00);
2271 tolua_function(tolua_S,
"set_default_int",tolua_fawkesconfig_fawkes_Configuration_set_default_int00);
2272 tolua_function(tolua_S,
"set_default_bool",tolua_fawkesconfig_fawkes_Configuration_set_default_bool00);
2273 tolua_function(tolua_S,
"set_default_string",tolua_fawkesconfig_fawkes_Configuration_set_default_string00);
2274 tolua_function(tolua_S,
"set_default_string",tolua_fawkesconfig_fawkes_Configuration_set_default_string01);
2275 tolua_function(tolua_S,
"erase_default",tolua_fawkesconfig_fawkes_Configuration_erase_default00);
2276 tolua_function(tolua_S,
"iterator",tolua_fawkesconfig_fawkes_Configuration_iterator00);
2277 tolua_function(tolua_S,
"search",tolua_fawkesconfig_fawkes_Configuration_search00);
2278 tolua_function(tolua_S,
"lock",tolua_fawkesconfig_fawkes_Configuration_lock00);
2279 tolua_function(tolua_S,
"try_lock",tolua_fawkesconfig_fawkes_Configuration_try_lock00);
2280 tolua_function(tolua_S,
"unlock",tolua_fawkesconfig_fawkes_Configuration_unlock00);
2281 tolua_endmodule(tolua_S);
2282 tolua_endmodule(tolua_S);
2283 tolua_endmodule(tolua_S);
2289 #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501 2290 TOLUA_API
int luaopen_fawkesconfig (lua_State* tolua_S) {
2291 return tolua_fawkesconfig_open(tolua_S);
Base class for exceptions in Fawkes.
virtual const char * what_no_backtrace() const
Get primary string (does not implicitly print the back trace).
Iterator interface to iterate over config values.
Interface for configuration handling.