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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
1352 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_get_float_or_default00
1353 static int tolua_fawkesconfig_fawkes_Configuration_get_float_or_default00(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 char* path = ((
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 'get_float_or_default'", NULL);
1373 bool exc_caught =
false;
1376 float tolua_ret = (float) self->get_float_or_default(path,f);
1377 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1383 catch (std::exception &e) {
1385 lua_pushstring(tolua_S, e.what());
1387 if (exc_caught) lua_error(tolua_S);
1391 #ifndef TOLUA_RELEASE
1393 tolua_error(tolua_S,
"#ferror in function 'get_float_or_default'.",&tolua_err);
1400 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_get_int_or_default00
1401 static int tolua_fawkesconfig_fawkes_Configuration_get_int_or_default00(lua_State* tolua_S)
1403 #ifndef TOLUA_RELEASE
1404 tolua_Error tolua_err;
1406 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1407 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1408 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1409 !tolua_isnoobj(tolua_S,4,&tolua_err)
1416 char* path = ((
char*) tolua_tostring(tolua_S,2,0));
1417 int i = ((int) tolua_tonumber(tolua_S,3,0));
1418 #ifndef TOLUA_RELEASE
1419 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'get_int_or_default'", NULL);
1421 bool exc_caught =
false;
1424 int tolua_ret = (int) self->get_int_or_default(path,i);
1425 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1431 catch (std::exception &e) {
1433 lua_pushstring(tolua_S, e.what());
1435 if (exc_caught) lua_error(tolua_S);
1439 #ifndef TOLUA_RELEASE
1441 tolua_error(tolua_S,
"#ferror in function 'get_int_or_default'.",&tolua_err);
1448 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_float00
1449 static int tolua_fawkesconfig_fawkes_Configuration_set_float00(lua_State* tolua_S)
1451 #ifndef TOLUA_RELEASE
1452 tolua_Error tolua_err;
1454 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1455 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1456 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1457 !tolua_isnoobj(tolua_S,4,&tolua_err)
1464 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1465 float f = ((float) tolua_tonumber(tolua_S,3,0));
1466 #ifndef TOLUA_RELEASE
1467 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_float'", NULL);
1469 bool exc_caught =
false;
1472 self->set_float(path,f);
1478 catch (std::exception &e) {
1480 lua_pushstring(tolua_S, e.what());
1482 if (exc_caught) lua_error(tolua_S);
1486 #ifndef TOLUA_RELEASE
1488 tolua_error(tolua_S,
"#ferror in function 'set_float'.",&tolua_err);
1495 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_uint00
1496 static int tolua_fawkesconfig_fawkes_Configuration_set_uint00(lua_State* tolua_S)
1498 #ifndef TOLUA_RELEASE
1499 tolua_Error tolua_err;
1501 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1502 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1503 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1504 !tolua_isnoobj(tolua_S,4,&tolua_err)
1511 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1512 unsigned int uint = ((
unsigned int) tolua_tonumber(tolua_S,3,0));
1513 #ifndef TOLUA_RELEASE
1514 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_uint'", NULL);
1516 bool exc_caught =
false;
1519 self->set_uint(path,uint);
1525 catch (std::exception &e) {
1527 lua_pushstring(tolua_S, e.what());
1529 if (exc_caught) lua_error(tolua_S);
1533 #ifndef TOLUA_RELEASE
1535 tolua_error(tolua_S,
"#ferror in function 'set_uint'.",&tolua_err);
1542 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_int00
1543 static int tolua_fawkesconfig_fawkes_Configuration_set_int00(lua_State* tolua_S)
1545 #ifndef TOLUA_RELEASE
1546 tolua_Error tolua_err;
1548 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1549 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1550 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1551 !tolua_isnoobj(tolua_S,4,&tolua_err)
1558 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1559 int i = ((int) tolua_tonumber(tolua_S,3,0));
1560 #ifndef TOLUA_RELEASE
1561 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_int'", NULL);
1563 bool exc_caught =
false;
1566 self->set_int(path,i);
1572 catch (std::exception &e) {
1574 lua_pushstring(tolua_S, e.what());
1576 if (exc_caught) lua_error(tolua_S);
1580 #ifndef TOLUA_RELEASE
1582 tolua_error(tolua_S,
"#ferror in function 'set_int'.",&tolua_err);
1589 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_bool00
1590 static int tolua_fawkesconfig_fawkes_Configuration_set_bool00(lua_State* tolua_S)
1592 #ifndef TOLUA_RELEASE
1593 tolua_Error tolua_err;
1595 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1596 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1597 !tolua_isboolean(tolua_S,3,0,&tolua_err) ||
1598 !tolua_isnoobj(tolua_S,4,&tolua_err)
1605 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1606 bool b = ((bool) tolua_toboolean(tolua_S,3,0));
1607 #ifndef TOLUA_RELEASE
1608 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_bool'", NULL);
1610 bool exc_caught =
false;
1613 self->set_bool(path,b);
1619 catch (std::exception &e) {
1621 lua_pushstring(tolua_S, e.what());
1623 if (exc_caught) lua_error(tolua_S);
1627 #ifndef TOLUA_RELEASE
1629 tolua_error(tolua_S,
"#ferror in function 'set_bool'.",&tolua_err);
1636 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_string00
1637 static int tolua_fawkesconfig_fawkes_Configuration_set_string00(lua_State* tolua_S)
1639 #ifndef TOLUA_RELEASE
1640 tolua_Error tolua_err;
1642 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1643 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1644 !tolua_iscppstring(tolua_S,3,0,&tolua_err) ||
1645 !tolua_isnoobj(tolua_S,4,&tolua_err)
1652 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1653 std::string s = ((std::string) tolua_tocppstring(tolua_S,3,0));
1654 #ifndef TOLUA_RELEASE
1655 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_string'", NULL);
1657 bool exc_caught =
false;
1660 self->set_string(path,s);
1666 catch (std::exception &e) {
1668 lua_pushstring(tolua_S, e.what());
1670 if (exc_caught) lua_error(tolua_S);
1674 #ifndef TOLUA_RELEASE
1676 tolua_error(tolua_S,
"#ferror in function 'set_string'.",&tolua_err);
1683 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_string01
1684 static int tolua_fawkesconfig_fawkes_Configuration_set_string01(lua_State* tolua_S)
1686 tolua_Error tolua_err;
1688 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1689 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1690 !tolua_isstring(tolua_S,3,0,&tolua_err) ||
1691 !tolua_isnoobj(tolua_S,4,&tolua_err)
1697 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1698 const char* s = ((
const char*) tolua_tostring(tolua_S,3,0));
1699 #ifndef TOLUA_RELEASE
1700 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_string'", NULL);
1702 bool exc_caught =
false;
1705 self->set_string(path,s);
1711 catch (std::exception &e) {
1713 lua_pushstring(tolua_S, e.what());
1715 if (exc_caught) lua_error(tolua_S);
1720 return tolua_fawkesconfig_fawkes_Configuration_set_string00(tolua_S);
1725 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_erase00
1726 static int tolua_fawkesconfig_fawkes_Configuration_erase00(lua_State* tolua_S)
1728 #ifndef TOLUA_RELEASE
1729 tolua_Error tolua_err;
1731 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1732 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1733 !tolua_isnoobj(tolua_S,3,&tolua_err)
1740 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1741 #ifndef TOLUA_RELEASE
1742 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'erase'", NULL);
1744 bool exc_caught =
false;
1753 catch (std::exception &e) {
1755 lua_pushstring(tolua_S, e.what());
1757 if (exc_caught) lua_error(tolua_S);
1761 #ifndef TOLUA_RELEASE
1763 tolua_error(tolua_S,
"#ferror in function 'erase'.",&tolua_err);
1770 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_default_float00
1771 static int tolua_fawkesconfig_fawkes_Configuration_set_default_float00(lua_State* tolua_S)
1773 #ifndef TOLUA_RELEASE
1774 tolua_Error tolua_err;
1776 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1777 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1778 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1779 !tolua_isnoobj(tolua_S,4,&tolua_err)
1786 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1787 float f = ((float) tolua_tonumber(tolua_S,3,0));
1788 #ifndef TOLUA_RELEASE
1789 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_default_float'", NULL);
1791 bool exc_caught =
false;
1794 self->set_default_float(path,f);
1800 catch (std::exception &e) {
1802 lua_pushstring(tolua_S, e.what());
1804 if (exc_caught) lua_error(tolua_S);
1808 #ifndef TOLUA_RELEASE
1810 tolua_error(tolua_S,
"#ferror in function 'set_default_float'.",&tolua_err);
1817 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_default_uint00
1818 static int tolua_fawkesconfig_fawkes_Configuration_set_default_uint00(lua_State* tolua_S)
1820 #ifndef TOLUA_RELEASE
1821 tolua_Error tolua_err;
1823 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1824 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1825 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1826 !tolua_isnoobj(tolua_S,4,&tolua_err)
1833 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1834 unsigned int uint = ((
unsigned int) tolua_tonumber(tolua_S,3,0));
1835 #ifndef TOLUA_RELEASE
1836 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_default_uint'", NULL);
1838 bool exc_caught =
false;
1841 self->set_default_uint(path,uint);
1847 catch (std::exception &e) {
1849 lua_pushstring(tolua_S, e.what());
1851 if (exc_caught) lua_error(tolua_S);
1855 #ifndef TOLUA_RELEASE
1857 tolua_error(tolua_S,
"#ferror in function 'set_default_uint'.",&tolua_err);
1864 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_default_int00
1865 static int tolua_fawkesconfig_fawkes_Configuration_set_default_int00(lua_State* tolua_S)
1867 #ifndef TOLUA_RELEASE
1868 tolua_Error tolua_err;
1870 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1871 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1872 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1873 !tolua_isnoobj(tolua_S,4,&tolua_err)
1880 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1881 int i = ((int) tolua_tonumber(tolua_S,3,0));
1882 #ifndef TOLUA_RELEASE
1883 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_default_int'", NULL);
1885 bool exc_caught =
false;
1888 self->set_default_int(path,i);
1894 catch (std::exception &e) {
1896 lua_pushstring(tolua_S, e.what());
1898 if (exc_caught) lua_error(tolua_S);
1902 #ifndef TOLUA_RELEASE
1904 tolua_error(tolua_S,
"#ferror in function 'set_default_int'.",&tolua_err);
1911 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_default_bool00
1912 static int tolua_fawkesconfig_fawkes_Configuration_set_default_bool00(lua_State* tolua_S)
1914 #ifndef TOLUA_RELEASE
1915 tolua_Error tolua_err;
1917 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1918 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1919 !tolua_isboolean(tolua_S,3,0,&tolua_err) ||
1920 !tolua_isnoobj(tolua_S,4,&tolua_err)
1927 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1928 bool b = ((bool) tolua_toboolean(tolua_S,3,0));
1929 #ifndef TOLUA_RELEASE
1930 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_default_bool'", NULL);
1932 bool exc_caught =
false;
1935 self->set_default_bool(path,b);
1941 catch (std::exception &e) {
1943 lua_pushstring(tolua_S, e.what());
1945 if (exc_caught) lua_error(tolua_S);
1949 #ifndef TOLUA_RELEASE
1951 tolua_error(tolua_S,
"#ferror in function 'set_default_bool'.",&tolua_err);
1958 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_default_string00
1959 static int tolua_fawkesconfig_fawkes_Configuration_set_default_string00(lua_State* tolua_S)
1961 #ifndef TOLUA_RELEASE
1962 tolua_Error tolua_err;
1964 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1965 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1966 !tolua_iscppstring(tolua_S,3,0,&tolua_err) ||
1967 !tolua_isnoobj(tolua_S,4,&tolua_err)
1974 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1975 std::string s = ((std::string) tolua_tocppstring(tolua_S,3,0));
1976 #ifndef TOLUA_RELEASE
1977 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_default_string'", NULL);
1979 bool exc_caught =
false;
1982 self->set_default_string(path,s);
1988 catch (std::exception &e) {
1990 lua_pushstring(tolua_S, e.what());
1992 if (exc_caught) lua_error(tolua_S);
1996 #ifndef TOLUA_RELEASE
1998 tolua_error(tolua_S,
"#ferror in function 'set_default_string'.",&tolua_err);
2005 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_default_string01
2006 static int tolua_fawkesconfig_fawkes_Configuration_set_default_string01(lua_State* tolua_S)
2008 tolua_Error tolua_err;
2010 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
2011 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
2012 !tolua_isstring(tolua_S,3,0,&tolua_err) ||
2013 !tolua_isnoobj(tolua_S,4,&tolua_err)
2019 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
2020 const char* s = ((
const char*) tolua_tostring(tolua_S,3,0));
2021 #ifndef TOLUA_RELEASE
2022 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_default_string'", NULL);
2024 bool exc_caught =
false;
2027 self->set_default_string(path,s);
2033 catch (std::exception &e) {
2035 lua_pushstring(tolua_S, e.what());
2037 if (exc_caught) lua_error(tolua_S);
2042 return tolua_fawkesconfig_fawkes_Configuration_set_default_string00(tolua_S);
2047 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_erase_default00
2048 static int tolua_fawkesconfig_fawkes_Configuration_erase_default00(lua_State* tolua_S)
2050 #ifndef TOLUA_RELEASE
2051 tolua_Error tolua_err;
2053 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
2054 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
2055 !tolua_isnoobj(tolua_S,3,&tolua_err)
2062 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
2063 #ifndef TOLUA_RELEASE
2064 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'erase_default'", NULL);
2066 bool exc_caught =
false;
2069 self->erase_default(path);
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 'erase_default'.",&tolua_err);
2092 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_iterator00
2093 static int tolua_fawkesconfig_fawkes_Configuration_iterator00(lua_State* tolua_S)
2095 #ifndef TOLUA_RELEASE
2096 tolua_Error tolua_err;
2098 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",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 'iterator'", NULL);
2109 bool exc_caught =
false;
2113 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Configuration::ValueIterator");
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 'iterator'.",&tolua_err);
2136 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_search00
2137 static int tolua_fawkesconfig_fawkes_Configuration_search00(lua_State* tolua_S)
2139 #ifndef TOLUA_RELEASE
2140 tolua_Error tolua_err;
2142 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
2143 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
2144 !tolua_isnoobj(tolua_S,3,&tolua_err)
2151 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
2152 #ifndef TOLUA_RELEASE
2153 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'search'", NULL);
2155 bool exc_caught =
false;
2159 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Configuration::ValueIterator");
2165 catch (std::exception &e) {
2167 lua_pushstring(tolua_S, e.what());
2169 if (exc_caught) lua_error(tolua_S);
2173 #ifndef TOLUA_RELEASE
2175 tolua_error(tolua_S,
"#ferror in function 'search'.",&tolua_err);
2182 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_lock00
2183 static int tolua_fawkesconfig_fawkes_Configuration_lock00(lua_State* tolua_S)
2185 #ifndef TOLUA_RELEASE
2186 tolua_Error tolua_err;
2188 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
2189 !tolua_isnoobj(tolua_S,2,&tolua_err)
2196 #ifndef TOLUA_RELEASE
2197 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'lock'", NULL);
2199 bool exc_caught =
false;
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 'lock'.",&tolua_err);
2225 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_try_lock00
2226 static int tolua_fawkesconfig_fawkes_Configuration_try_lock00(lua_State* tolua_S)
2228 #ifndef TOLUA_RELEASE
2229 tolua_Error tolua_err;
2231 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",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 'try_lock'", NULL);
2242 bool exc_caught =
false;
2245 bool tolua_ret = (bool) self->try_lock();
2246 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
2252 catch (std::exception &e) {
2254 lua_pushstring(tolua_S, e.what());
2256 if (exc_caught) lua_error(tolua_S);
2260 #ifndef TOLUA_RELEASE
2262 tolua_error(tolua_S,
"#ferror in function 'try_lock'.",&tolua_err);
2269 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_unlock00
2270 static int tolua_fawkesconfig_fawkes_Configuration_unlock00(lua_State* tolua_S)
2272 #ifndef TOLUA_RELEASE
2273 tolua_Error tolua_err;
2275 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
2276 !tolua_isnoobj(tolua_S,2,&tolua_err)
2283 #ifndef TOLUA_RELEASE
2284 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'unlock'", NULL);
2286 bool exc_caught =
false;
2295 catch (std::exception &e) {
2297 lua_pushstring(tolua_S, e.what());
2299 if (exc_caught) lua_error(tolua_S);
2303 #ifndef TOLUA_RELEASE
2305 tolua_error(tolua_S,
"#ferror in function 'unlock'.",&tolua_err);
2312 TOLUA_API
int tolua_fawkesconfig_open (lua_State* tolua_S)
2314 tolua_open(tolua_S);
2315 tolua_reg_types(tolua_S);
2316 tolua_module(tolua_S,NULL,0);
2317 tolua_beginmodule(tolua_S,NULL);
2318 tolua_module(tolua_S,
"fawkes",0);
2319 tolua_beginmodule(tolua_S,
"fawkes");
2320 tolua_cclass(tolua_S,
"Configuration",
"fawkes::Configuration",
"",NULL);
2321 tolua_beginmodule(tolua_S,
"Configuration");
2323 tolua_cclass(tolua_S,
"ValueIterator",
"fawkes::Configuration::ValueIterator",
"",tolua_collect_fawkes__Configuration__ValueIterator);
2325 tolua_cclass(tolua_S,
"ValueIterator",
"fawkes::Configuration::ValueIterator",
"",NULL);
2327 tolua_beginmodule(tolua_S,
"ValueIterator");
2328 tolua_function(tolua_S,
"delete",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_delete00);
2329 tolua_function(tolua_S,
"next",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_next00);
2330 tolua_function(tolua_S,
"valid",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_valid00);
2331 tolua_function(tolua_S,
"path",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_path00);
2332 tolua_function(tolua_S,
"type",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_type00);
2333 tolua_function(tolua_S,
"is_float",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_float00);
2334 tolua_function(tolua_S,
"is_uint",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_uint00);
2335 tolua_function(tolua_S,
"is_int",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_int00);
2336 tolua_function(tolua_S,
"is_bool",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_bool00);
2337 tolua_function(tolua_S,
"is_string",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_string00);
2338 tolua_function(tolua_S,
"get_float",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_float00);
2339 tolua_function(tolua_S,
"get_uint",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_uint00);
2340 tolua_function(tolua_S,
"get_int",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_int00);
2341 tolua_function(tolua_S,
"get_bool",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_bool00);
2342 tolua_function(tolua_S,
"get_string",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_string00);
2343 tolua_function(tolua_S,
"is_default",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_default00);
2344 tolua_endmodule(tolua_S);
2345 tolua_function(tolua_S,
"exists",tolua_fawkesconfig_fawkes_Configuration_exists00);
2346 tolua_function(tolua_S,
"is_float",tolua_fawkesconfig_fawkes_Configuration_is_float00);
2347 tolua_function(tolua_S,
"is_uint",tolua_fawkesconfig_fawkes_Configuration_is_uint00);
2348 tolua_function(tolua_S,
"is_int",tolua_fawkesconfig_fawkes_Configuration_is_int00);
2349 tolua_function(tolua_S,
"is_bool",tolua_fawkesconfig_fawkes_Configuration_is_bool00);
2350 tolua_function(tolua_S,
"is_string",tolua_fawkesconfig_fawkes_Configuration_is_string00);
2351 tolua_function(tolua_S,
"is_default",tolua_fawkesconfig_fawkes_Configuration_is_default00);
2352 tolua_function(tolua_S,
"get_float",tolua_fawkesconfig_fawkes_Configuration_get_float00);
2353 tolua_function(tolua_S,
"get_uint",tolua_fawkesconfig_fawkes_Configuration_get_uint00);
2354 tolua_function(tolua_S,
"get_int",tolua_fawkesconfig_fawkes_Configuration_get_int00);
2355 tolua_function(tolua_S,
"get_bool",tolua_fawkesconfig_fawkes_Configuration_get_bool00);
2356 tolua_function(tolua_S,
"get_string",tolua_fawkesconfig_fawkes_Configuration_get_string00);
2357 tolua_function(tolua_S,
"get_value",tolua_fawkesconfig_fawkes_Configuration_get_value00);
2358 tolua_function(tolua_S,
"get_float_or_default",tolua_fawkesconfig_fawkes_Configuration_get_float_or_default00);
2359 tolua_function(tolua_S,
"get_int_or_default",tolua_fawkesconfig_fawkes_Configuration_get_int_or_default00);
2360 tolua_function(tolua_S,
"set_float",tolua_fawkesconfig_fawkes_Configuration_set_float00);
2361 tolua_function(tolua_S,
"set_uint",tolua_fawkesconfig_fawkes_Configuration_set_uint00);
2362 tolua_function(tolua_S,
"set_int",tolua_fawkesconfig_fawkes_Configuration_set_int00);
2363 tolua_function(tolua_S,
"set_bool",tolua_fawkesconfig_fawkes_Configuration_set_bool00);
2364 tolua_function(tolua_S,
"set_string",tolua_fawkesconfig_fawkes_Configuration_set_string00);
2365 tolua_function(tolua_S,
"set_string",tolua_fawkesconfig_fawkes_Configuration_set_string01);
2366 tolua_function(tolua_S,
"erase",tolua_fawkesconfig_fawkes_Configuration_erase00);
2367 tolua_function(tolua_S,
"set_default_float",tolua_fawkesconfig_fawkes_Configuration_set_default_float00);
2368 tolua_function(tolua_S,
"set_default_uint",tolua_fawkesconfig_fawkes_Configuration_set_default_uint00);
2369 tolua_function(tolua_S,
"set_default_int",tolua_fawkesconfig_fawkes_Configuration_set_default_int00);
2370 tolua_function(tolua_S,
"set_default_bool",tolua_fawkesconfig_fawkes_Configuration_set_default_bool00);
2371 tolua_function(tolua_S,
"set_default_string",tolua_fawkesconfig_fawkes_Configuration_set_default_string00);
2372 tolua_function(tolua_S,
"set_default_string",tolua_fawkesconfig_fawkes_Configuration_set_default_string01);
2373 tolua_function(tolua_S,
"erase_default",tolua_fawkesconfig_fawkes_Configuration_erase_default00);
2374 tolua_function(tolua_S,
"iterator",tolua_fawkesconfig_fawkes_Configuration_iterator00);
2375 tolua_function(tolua_S,
"search",tolua_fawkesconfig_fawkes_Configuration_search00);
2376 tolua_function(tolua_S,
"lock",tolua_fawkesconfig_fawkes_Configuration_lock00);
2377 tolua_function(tolua_S,
"try_lock",tolua_fawkesconfig_fawkes_Configuration_try_lock00);
2378 tolua_function(tolua_S,
"unlock",tolua_fawkesconfig_fawkes_Configuration_unlock00);
2379 tolua_endmodule(tolua_S);
2380 tolua_endmodule(tolua_S);
2381 tolua_endmodule(tolua_S);
2387 #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
2388 TOLUA_API
int luaopen_fawkesconfig (lua_State* tolua_S) {
2389 return tolua_fawkesconfig_open(tolua_S);
Iterator interface to iterate over config values.
Interface for configuration handling.
Base class for exceptions in Fawkes.
virtual const char * what_no_backtrace() const noexcept
Get primary string (does not implicitly print the back trace).