27 TOLUA_API
int tolua_fawkesconfig_open (lua_State* tolua_S);
29 #include <config/config.h>
34 static int tolua_collect_fawkes__Configuration__ValueIterator (lua_State* tolua_S)
41 static int tolua_collect_std__list_std__string_ (lua_State* tolua_S)
43 std::list<std::string>*
self = (std::list<std::string>*) tolua_tousertype(tolua_S,1,0);
51 static void tolua_reg_types (lua_State* tolua_S)
53 tolua_usertype(tolua_S,
"fawkes::Configuration");
54 tolua_usertype(tolua_S,
"fawkes::Configuration::ValueIterator");
55 tolua_usertype(tolua_S,
"std::list<std::string>");
59 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_delete00
60 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_delete00(lua_State* tolua_S)
63 tolua_Error tolua_err;
65 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
66 !tolua_isnoobj(tolua_S,2,&tolua_err)
74 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'delete'", NULL);
81 tolua_error(tolua_S,
"#ferror in function 'delete'.",&tolua_err);
85 #endif //#ifndef TOLUA_DISABLE
88 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_next00
89 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_next00(lua_State* tolua_S)
92 tolua_Error tolua_err;
94 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
95 !tolua_isnoobj(tolua_S,2,&tolua_err)
102 #ifndef TOLUA_RELEASE
103 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'next'", NULL);
106 bool tolua_ret = (bool) self->next();
107 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
111 #ifndef TOLUA_RELEASE
113 tolua_error(tolua_S,
"#ferror in function 'next'.",&tolua_err);
117 #endif //#ifndef TOLUA_DISABLE
120 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_valid00
121 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_valid00(lua_State* tolua_S)
123 #ifndef TOLUA_RELEASE
124 tolua_Error tolua_err;
126 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
127 !tolua_isnoobj(tolua_S,2,&tolua_err)
134 #ifndef TOLUA_RELEASE
135 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'valid'", NULL);
138 bool tolua_ret = (bool) self->valid();
139 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
143 #ifndef TOLUA_RELEASE
145 tolua_error(tolua_S,
"#ferror in function 'valid'.",&tolua_err);
149 #endif //#ifndef TOLUA_DISABLE
152 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_path00
153 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_path00(lua_State* tolua_S)
155 #ifndef TOLUA_RELEASE
156 tolua_Error tolua_err;
158 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
159 !tolua_isnoobj(tolua_S,2,&tolua_err)
166 #ifndef TOLUA_RELEASE
167 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'path'", NULL);
170 const char* tolua_ret = (
const char*) self->path();
171 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
175 #ifndef TOLUA_RELEASE
177 tolua_error(tolua_S,
"#ferror in function 'path'.",&tolua_err);
181 #endif //#ifndef TOLUA_DISABLE
184 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_type00
185 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_type00(lua_State* tolua_S)
187 #ifndef TOLUA_RELEASE
188 tolua_Error tolua_err;
190 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
191 !tolua_isnoobj(tolua_S,2,&tolua_err)
198 #ifndef TOLUA_RELEASE
199 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'type'", NULL);
202 const char* tolua_ret = (
const char*) self->type();
203 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
207 #ifndef TOLUA_RELEASE
209 tolua_error(tolua_S,
"#ferror in function 'type'.",&tolua_err);
213 #endif //#ifndef TOLUA_DISABLE
216 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_float00
217 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_float00(lua_State* tolua_S)
219 #ifndef TOLUA_RELEASE
220 tolua_Error tolua_err;
222 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
223 !tolua_isnoobj(tolua_S,2,&tolua_err)
230 #ifndef TOLUA_RELEASE
231 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_float'", NULL);
234 bool tolua_ret = (bool) self->is_float();
235 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
239 #ifndef TOLUA_RELEASE
241 tolua_error(tolua_S,
"#ferror in function 'is_float'.",&tolua_err);
245 #endif //#ifndef TOLUA_DISABLE
248 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_uint00
249 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_uint00(lua_State* tolua_S)
251 #ifndef TOLUA_RELEASE
252 tolua_Error tolua_err;
254 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
255 !tolua_isnoobj(tolua_S,2,&tolua_err)
262 #ifndef TOLUA_RELEASE
263 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_uint'", NULL);
266 bool tolua_ret = (bool) self->is_uint();
267 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
271 #ifndef TOLUA_RELEASE
273 tolua_error(tolua_S,
"#ferror in function 'is_uint'.",&tolua_err);
277 #endif //#ifndef TOLUA_DISABLE
280 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_int00
281 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_int00(lua_State* tolua_S)
283 #ifndef TOLUA_RELEASE
284 tolua_Error tolua_err;
286 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
287 !tolua_isnoobj(tolua_S,2,&tolua_err)
294 #ifndef TOLUA_RELEASE
295 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_int'", NULL);
298 bool tolua_ret = (bool) self->is_int();
299 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
303 #ifndef TOLUA_RELEASE
305 tolua_error(tolua_S,
"#ferror in function 'is_int'.",&tolua_err);
309 #endif //#ifndef TOLUA_DISABLE
312 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_bool00
313 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_bool00(lua_State* tolua_S)
315 #ifndef TOLUA_RELEASE
316 tolua_Error tolua_err;
318 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
319 !tolua_isnoobj(tolua_S,2,&tolua_err)
326 #ifndef TOLUA_RELEASE
327 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_bool'", NULL);
330 bool tolua_ret = (bool) self->is_bool();
331 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
335 #ifndef TOLUA_RELEASE
337 tolua_error(tolua_S,
"#ferror in function 'is_bool'.",&tolua_err);
341 #endif //#ifndef TOLUA_DISABLE
344 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_string00
345 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_string00(lua_State* tolua_S)
347 #ifndef TOLUA_RELEASE
348 tolua_Error tolua_err;
350 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
351 !tolua_isnoobj(tolua_S,2,&tolua_err)
358 #ifndef TOLUA_RELEASE
359 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_string'", NULL);
362 bool tolua_ret = (bool) self->is_string();
363 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
367 #ifndef TOLUA_RELEASE
369 tolua_error(tolua_S,
"#ferror in function 'is_string'.",&tolua_err);
373 #endif //#ifndef TOLUA_DISABLE
376 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_float00
377 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_float00(lua_State* tolua_S)
379 #ifndef TOLUA_RELEASE
380 tolua_Error tolua_err;
382 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
383 !tolua_isnoobj(tolua_S,2,&tolua_err)
390 #ifndef TOLUA_RELEASE
391 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'get_float'", NULL);
394 float tolua_ret = (float) self->get_float();
395 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
399 #ifndef TOLUA_RELEASE
401 tolua_error(tolua_S,
"#ferror in function 'get_float'.",&tolua_err);
405 #endif //#ifndef TOLUA_DISABLE
408 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_uint00
409 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_uint00(lua_State* tolua_S)
411 #ifndef TOLUA_RELEASE
412 tolua_Error tolua_err;
414 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
415 !tolua_isnoobj(tolua_S,2,&tolua_err)
422 #ifndef TOLUA_RELEASE
423 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'get_uint'", NULL);
426 unsigned int tolua_ret = (
unsigned int) self->get_uint();
427 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
431 #ifndef TOLUA_RELEASE
433 tolua_error(tolua_S,
"#ferror in function 'get_uint'.",&tolua_err);
437 #endif //#ifndef TOLUA_DISABLE
440 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_int00
441 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_int00(lua_State* tolua_S)
443 #ifndef TOLUA_RELEASE
444 tolua_Error tolua_err;
446 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
447 !tolua_isnoobj(tolua_S,2,&tolua_err)
454 #ifndef TOLUA_RELEASE
455 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'get_int'", NULL);
458 int tolua_ret = (int) self->get_int();
459 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
463 #ifndef TOLUA_RELEASE
465 tolua_error(tolua_S,
"#ferror in function 'get_int'.",&tolua_err);
469 #endif //#ifndef TOLUA_DISABLE
472 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_bool00
473 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_bool00(lua_State* tolua_S)
475 #ifndef TOLUA_RELEASE
476 tolua_Error tolua_err;
478 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
479 !tolua_isnoobj(tolua_S,2,&tolua_err)
486 #ifndef TOLUA_RELEASE
487 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'get_bool'", NULL);
490 bool tolua_ret = (bool) self->get_bool();
491 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
495 #ifndef TOLUA_RELEASE
497 tolua_error(tolua_S,
"#ferror in function 'get_bool'.",&tolua_err);
501 #endif //#ifndef TOLUA_DISABLE
504 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_string00
505 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_string00(lua_State* tolua_S)
507 #ifndef TOLUA_RELEASE
508 tolua_Error tolua_err;
510 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
511 !tolua_isnoobj(tolua_S,2,&tolua_err)
518 #ifndef TOLUA_RELEASE
519 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'get_string'", NULL);
522 std::string tolua_ret = (std::string) self->get_string();
523 tolua_pushcppstring(tolua_S,(
const char*)tolua_ret);
527 #ifndef TOLUA_RELEASE
529 tolua_error(tolua_S,
"#ferror in function 'get_string'.",&tolua_err);
533 #endif //#ifndef TOLUA_DISABLE
536 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_default00
537 static int tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_default00(lua_State* tolua_S)
539 #ifndef TOLUA_RELEASE
540 tolua_Error tolua_err;
542 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration::ValueIterator",0,&tolua_err) ||
543 !tolua_isnoobj(tolua_S,2,&tolua_err)
550 #ifndef TOLUA_RELEASE
551 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_default'", NULL);
554 bool tolua_ret = (bool) self->is_default();
555 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
559 #ifndef TOLUA_RELEASE
561 tolua_error(tolua_S,
"#ferror in function 'is_default'.",&tolua_err);
565 #endif //#ifndef TOLUA_DISABLE
568 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_tag00
569 static int tolua_fawkesconfig_fawkes_Configuration_tag00(lua_State* tolua_S)
571 #ifndef TOLUA_RELEASE
572 tolua_Error tolua_err;
574 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
575 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
576 !tolua_isnoobj(tolua_S,3,&tolua_err)
583 const char* tag = ((
const char*) tolua_tostring(tolua_S,2,0));
584 #ifndef TOLUA_RELEASE
585 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'tag'", NULL);
592 #ifndef TOLUA_RELEASE
594 tolua_error(tolua_S,
"#ferror in function 'tag'.",&tolua_err);
598 #endif //#ifndef TOLUA_DISABLE
601 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_tags00
602 static int tolua_fawkesconfig_fawkes_Configuration_tags00(lua_State* tolua_S)
604 #ifndef TOLUA_RELEASE
605 tolua_Error tolua_err;
607 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
608 !tolua_isnoobj(tolua_S,2,&tolua_err)
615 #ifndef TOLUA_RELEASE
616 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'tags'", NULL);
619 std::list<std::string> tolua_ret = (std::list<std::string>) self->tags();
622 void* tolua_obj = Mtolua_new((std::list<std::string>)(tolua_ret));
623 tolua_pushusertype(tolua_S,tolua_obj,
"std::list<std::string>");
624 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
626 void* tolua_obj = tolua_copy(tolua_S,(
void*)&tolua_ret,
sizeof(std::list<std::string>));
627 tolua_pushusertype(tolua_S,tolua_obj,
"std::list<std::string>");
628 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
634 #ifndef TOLUA_RELEASE
636 tolua_error(tolua_S,
"#ferror in function 'tags'.",&tolua_err);
640 #endif //#ifndef TOLUA_DISABLE
643 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_exists00
644 static int tolua_fawkesconfig_fawkes_Configuration_exists00(lua_State* tolua_S)
646 #ifndef TOLUA_RELEASE
647 tolua_Error tolua_err;
649 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
650 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
651 !tolua_isnoobj(tolua_S,3,&tolua_err)
658 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
659 #ifndef TOLUA_RELEASE
660 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'exists'", NULL);
663 bool tolua_ret = (bool) self->exists(path);
664 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
668 #ifndef TOLUA_RELEASE
670 tolua_error(tolua_S,
"#ferror in function 'exists'.",&tolua_err);
674 #endif //#ifndef TOLUA_DISABLE
677 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_is_float00
678 static int tolua_fawkesconfig_fawkes_Configuration_is_float00(lua_State* tolua_S)
680 #ifndef TOLUA_RELEASE
681 tolua_Error tolua_err;
683 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
684 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
685 !tolua_isnoobj(tolua_S,3,&tolua_err)
692 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
693 #ifndef TOLUA_RELEASE
694 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_float'", NULL);
697 bool tolua_ret = (bool) self->is_float(path);
698 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
702 #ifndef TOLUA_RELEASE
704 tolua_error(tolua_S,
"#ferror in function 'is_float'.",&tolua_err);
708 #endif //#ifndef TOLUA_DISABLE
711 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_is_uint00
712 static int tolua_fawkesconfig_fawkes_Configuration_is_uint00(lua_State* tolua_S)
714 #ifndef TOLUA_RELEASE
715 tolua_Error tolua_err;
717 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
718 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
719 !tolua_isnoobj(tolua_S,3,&tolua_err)
726 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
727 #ifndef TOLUA_RELEASE
728 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_uint'", NULL);
731 bool tolua_ret = (bool) self->is_uint(path);
732 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
736 #ifndef TOLUA_RELEASE
738 tolua_error(tolua_S,
"#ferror in function 'is_uint'.",&tolua_err);
742 #endif //#ifndef TOLUA_DISABLE
745 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_is_int00
746 static int tolua_fawkesconfig_fawkes_Configuration_is_int00(lua_State* tolua_S)
748 #ifndef TOLUA_RELEASE
749 tolua_Error tolua_err;
751 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
752 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
753 !tolua_isnoobj(tolua_S,3,&tolua_err)
760 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
761 #ifndef TOLUA_RELEASE
762 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_int'", NULL);
765 bool tolua_ret = (bool) self->is_int(path);
766 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
770 #ifndef TOLUA_RELEASE
772 tolua_error(tolua_S,
"#ferror in function 'is_int'.",&tolua_err);
776 #endif //#ifndef TOLUA_DISABLE
779 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_is_bool00
780 static int tolua_fawkesconfig_fawkes_Configuration_is_bool00(lua_State* tolua_S)
782 #ifndef TOLUA_RELEASE
783 tolua_Error tolua_err;
785 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
786 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
787 !tolua_isnoobj(tolua_S,3,&tolua_err)
794 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
795 #ifndef TOLUA_RELEASE
796 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_bool'", NULL);
799 bool tolua_ret = (bool) self->is_bool(path);
800 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
804 #ifndef TOLUA_RELEASE
806 tolua_error(tolua_S,
"#ferror in function 'is_bool'.",&tolua_err);
810 #endif //#ifndef TOLUA_DISABLE
813 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_is_string00
814 static int tolua_fawkesconfig_fawkes_Configuration_is_string00(lua_State* tolua_S)
816 #ifndef TOLUA_RELEASE
817 tolua_Error tolua_err;
819 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
820 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
821 !tolua_isnoobj(tolua_S,3,&tolua_err)
828 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
829 #ifndef TOLUA_RELEASE
830 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_string'", NULL);
833 bool tolua_ret = (bool) self->is_string(path);
834 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
838 #ifndef TOLUA_RELEASE
840 tolua_error(tolua_S,
"#ferror in function 'is_string'.",&tolua_err);
844 #endif //#ifndef TOLUA_DISABLE
847 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_is_default00
848 static int tolua_fawkesconfig_fawkes_Configuration_is_default00(lua_State* tolua_S)
850 #ifndef TOLUA_RELEASE
851 tolua_Error tolua_err;
853 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
854 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
855 !tolua_isnoobj(tolua_S,3,&tolua_err)
862 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
863 #ifndef TOLUA_RELEASE
864 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_default'", NULL);
867 bool tolua_ret = (bool) self->is_default(path);
868 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
872 #ifndef TOLUA_RELEASE
874 tolua_error(tolua_S,
"#ferror in function 'is_default'.",&tolua_err);
878 #endif //#ifndef TOLUA_DISABLE
881 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_get_float00
882 static int tolua_fawkesconfig_fawkes_Configuration_get_float00(lua_State* tolua_S)
884 #ifndef TOLUA_RELEASE
885 tolua_Error tolua_err;
887 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
888 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
889 !tolua_isnoobj(tolua_S,3,&tolua_err)
896 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
897 #ifndef TOLUA_RELEASE
898 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'get_float'", NULL);
901 float tolua_ret = (float) self->get_float(path);
902 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
906 #ifndef TOLUA_RELEASE
908 tolua_error(tolua_S,
"#ferror in function 'get_float'.",&tolua_err);
912 #endif //#ifndef TOLUA_DISABLE
915 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_get_uint00
916 static int tolua_fawkesconfig_fawkes_Configuration_get_uint00(lua_State* tolua_S)
918 #ifndef TOLUA_RELEASE
919 tolua_Error tolua_err;
921 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
922 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
923 !tolua_isnoobj(tolua_S,3,&tolua_err)
930 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
931 #ifndef TOLUA_RELEASE
932 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'get_uint'", NULL);
935 unsigned int tolua_ret = (
unsigned int) self->get_uint(path);
936 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
940 #ifndef TOLUA_RELEASE
942 tolua_error(tolua_S,
"#ferror in function 'get_uint'.",&tolua_err);
946 #endif //#ifndef TOLUA_DISABLE
949 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_get_int00
950 static int tolua_fawkesconfig_fawkes_Configuration_get_int00(lua_State* tolua_S)
952 #ifndef TOLUA_RELEASE
953 tolua_Error tolua_err;
955 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
956 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
957 !tolua_isnoobj(tolua_S,3,&tolua_err)
964 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
965 #ifndef TOLUA_RELEASE
966 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'get_int'", NULL);
969 int tolua_ret = (int) self->get_int(path);
970 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
974 #ifndef TOLUA_RELEASE
976 tolua_error(tolua_S,
"#ferror in function 'get_int'.",&tolua_err);
980 #endif //#ifndef TOLUA_DISABLE
983 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_get_bool00
984 static int tolua_fawkesconfig_fawkes_Configuration_get_bool00(lua_State* tolua_S)
986 #ifndef TOLUA_RELEASE
987 tolua_Error tolua_err;
989 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
990 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
991 !tolua_isnoobj(tolua_S,3,&tolua_err)
998 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
999 #ifndef TOLUA_RELEASE
1000 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'get_bool'", NULL);
1003 bool tolua_ret = (bool) self->get_bool(path);
1004 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
1008 #ifndef TOLUA_RELEASE
1010 tolua_error(tolua_S,
"#ferror in function 'get_bool'.",&tolua_err);
1014 #endif //#ifndef TOLUA_DISABLE
1017 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_get_string00
1018 static int tolua_fawkesconfig_fawkes_Configuration_get_string00(lua_State* tolua_S)
1020 #ifndef TOLUA_RELEASE
1021 tolua_Error tolua_err;
1023 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1024 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1025 !tolua_isnoobj(tolua_S,3,&tolua_err)
1032 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1033 #ifndef TOLUA_RELEASE
1034 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'get_string'", NULL);
1037 std::string tolua_ret = (std::string) self->get_string(path);
1038 tolua_pushcppstring(tolua_S,(
const char*)tolua_ret);
1042 #ifndef TOLUA_RELEASE
1044 tolua_error(tolua_S,
"#ferror in function 'get_string'.",&tolua_err);
1048 #endif //#ifndef TOLUA_DISABLE
1051 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_get_value00
1052 static int tolua_fawkesconfig_fawkes_Configuration_get_value00(lua_State* tolua_S)
1054 #ifndef TOLUA_RELEASE
1055 tolua_Error tolua_err;
1057 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1058 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1059 !tolua_isnoobj(tolua_S,3,&tolua_err)
1066 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1067 #ifndef TOLUA_RELEASE
1068 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'get_value'", NULL);
1072 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Configuration::ValueIterator");
1076 #ifndef TOLUA_RELEASE
1078 tolua_error(tolua_S,
"#ferror in function 'get_value'.",&tolua_err);
1082 #endif //#ifndef TOLUA_DISABLE
1085 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_float00
1086 static int tolua_fawkesconfig_fawkes_Configuration_set_float00(lua_State* tolua_S)
1088 #ifndef TOLUA_RELEASE
1089 tolua_Error tolua_err;
1091 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1092 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1093 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1094 !tolua_isnoobj(tolua_S,4,&tolua_err)
1101 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1102 float f = ((float) tolua_tonumber(tolua_S,3,0));
1103 #ifndef TOLUA_RELEASE
1104 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_float'", NULL);
1107 self->set_float(path,f);
1111 #ifndef TOLUA_RELEASE
1113 tolua_error(tolua_S,
"#ferror in function 'set_float'.",&tolua_err);
1117 #endif //#ifndef TOLUA_DISABLE
1120 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_uint00
1121 static int tolua_fawkesconfig_fawkes_Configuration_set_uint00(lua_State* tolua_S)
1123 #ifndef TOLUA_RELEASE
1124 tolua_Error tolua_err;
1126 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1127 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1128 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1129 !tolua_isnoobj(tolua_S,4,&tolua_err)
1136 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1137 unsigned int uint = ((
unsigned int) tolua_tonumber(tolua_S,3,0));
1138 #ifndef TOLUA_RELEASE
1139 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_uint'", NULL);
1142 self->set_uint(path,uint);
1146 #ifndef TOLUA_RELEASE
1148 tolua_error(tolua_S,
"#ferror in function 'set_uint'.",&tolua_err);
1152 #endif //#ifndef TOLUA_DISABLE
1155 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_int00
1156 static int tolua_fawkesconfig_fawkes_Configuration_set_int00(lua_State* tolua_S)
1158 #ifndef TOLUA_RELEASE
1159 tolua_Error tolua_err;
1161 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1162 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1163 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1164 !tolua_isnoobj(tolua_S,4,&tolua_err)
1171 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1172 int i = ((int) tolua_tonumber(tolua_S,3,0));
1173 #ifndef TOLUA_RELEASE
1174 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_int'", NULL);
1177 self->set_int(path,i);
1181 #ifndef TOLUA_RELEASE
1183 tolua_error(tolua_S,
"#ferror in function 'set_int'.",&tolua_err);
1187 #endif //#ifndef TOLUA_DISABLE
1190 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_bool00
1191 static int tolua_fawkesconfig_fawkes_Configuration_set_bool00(lua_State* tolua_S)
1193 #ifndef TOLUA_RELEASE
1194 tolua_Error tolua_err;
1196 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1197 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1198 !tolua_isboolean(tolua_S,3,0,&tolua_err) ||
1199 !tolua_isnoobj(tolua_S,4,&tolua_err)
1206 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1207 bool b = ((bool) tolua_toboolean(tolua_S,3,0));
1208 #ifndef TOLUA_RELEASE
1209 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_bool'", NULL);
1212 self->set_bool(path,b);
1216 #ifndef TOLUA_RELEASE
1218 tolua_error(tolua_S,
"#ferror in function 'set_bool'.",&tolua_err);
1222 #endif //#ifndef TOLUA_DISABLE
1225 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_string00
1226 static int tolua_fawkesconfig_fawkes_Configuration_set_string00(lua_State* tolua_S)
1228 #ifndef TOLUA_RELEASE
1229 tolua_Error tolua_err;
1231 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1232 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1233 !tolua_iscppstring(tolua_S,3,0,&tolua_err) ||
1234 !tolua_isnoobj(tolua_S,4,&tolua_err)
1241 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1242 std::string s = ((std::string) tolua_tocppstring(tolua_S,3,0));
1243 #ifndef TOLUA_RELEASE
1244 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_string'", NULL);
1247 self->set_string(path,s);
1251 #ifndef TOLUA_RELEASE
1253 tolua_error(tolua_S,
"#ferror in function 'set_string'.",&tolua_err);
1257 #endif //#ifndef TOLUA_DISABLE
1260 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_string01
1261 static int tolua_fawkesconfig_fawkes_Configuration_set_string01(lua_State* tolua_S)
1263 tolua_Error tolua_err;
1265 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1266 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1267 !tolua_isstring(tolua_S,3,0,&tolua_err) ||
1268 !tolua_isnoobj(tolua_S,4,&tolua_err)
1274 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1275 const char* s = ((
const char*) tolua_tostring(tolua_S,3,0));
1276 #ifndef TOLUA_RELEASE
1277 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_string'", NULL);
1280 self->set_string(path,s);
1285 return tolua_fawkesconfig_fawkes_Configuration_set_string00(tolua_S);
1287 #endif //#ifndef TOLUA_DISABLE
1290 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_erase00
1291 static int tolua_fawkesconfig_fawkes_Configuration_erase00(lua_State* tolua_S)
1293 #ifndef TOLUA_RELEASE
1294 tolua_Error tolua_err;
1296 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1297 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1298 !tolua_isnoobj(tolua_S,3,&tolua_err)
1305 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1306 #ifndef TOLUA_RELEASE
1307 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'erase'", NULL);
1314 #ifndef TOLUA_RELEASE
1316 tolua_error(tolua_S,
"#ferror in function 'erase'.",&tolua_err);
1320 #endif //#ifndef TOLUA_DISABLE
1323 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_default_float00
1324 static int tolua_fawkesconfig_fawkes_Configuration_set_default_float00(lua_State* tolua_S)
1326 #ifndef TOLUA_RELEASE
1327 tolua_Error tolua_err;
1329 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1330 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1331 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1332 !tolua_isnoobj(tolua_S,4,&tolua_err)
1339 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1340 float f = ((float) tolua_tonumber(tolua_S,3,0));
1341 #ifndef TOLUA_RELEASE
1342 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_default_float'", NULL);
1345 self->set_default_float(path,f);
1349 #ifndef TOLUA_RELEASE
1351 tolua_error(tolua_S,
"#ferror in function 'set_default_float'.",&tolua_err);
1355 #endif //#ifndef TOLUA_DISABLE
1358 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_default_uint00
1359 static int tolua_fawkesconfig_fawkes_Configuration_set_default_uint00(lua_State* tolua_S)
1361 #ifndef TOLUA_RELEASE
1362 tolua_Error tolua_err;
1364 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1365 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1366 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1367 !tolua_isnoobj(tolua_S,4,&tolua_err)
1374 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1375 unsigned int uint = ((
unsigned int) tolua_tonumber(tolua_S,3,0));
1376 #ifndef TOLUA_RELEASE
1377 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_default_uint'", NULL);
1380 self->set_default_uint(path,uint);
1384 #ifndef TOLUA_RELEASE
1386 tolua_error(tolua_S,
"#ferror in function 'set_default_uint'.",&tolua_err);
1390 #endif //#ifndef TOLUA_DISABLE
1393 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_default_int00
1394 static int tolua_fawkesconfig_fawkes_Configuration_set_default_int00(lua_State* tolua_S)
1396 #ifndef TOLUA_RELEASE
1397 tolua_Error tolua_err;
1399 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1400 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1401 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1402 !tolua_isnoobj(tolua_S,4,&tolua_err)
1409 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1410 int i = ((int) tolua_tonumber(tolua_S,3,0));
1411 #ifndef TOLUA_RELEASE
1412 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_default_int'", NULL);
1415 self->set_default_int(path,i);
1419 #ifndef TOLUA_RELEASE
1421 tolua_error(tolua_S,
"#ferror in function 'set_default_int'.",&tolua_err);
1425 #endif //#ifndef TOLUA_DISABLE
1428 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_default_bool00
1429 static int tolua_fawkesconfig_fawkes_Configuration_set_default_bool00(lua_State* tolua_S)
1431 #ifndef TOLUA_RELEASE
1432 tolua_Error tolua_err;
1434 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1435 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1436 !tolua_isboolean(tolua_S,3,0,&tolua_err) ||
1437 !tolua_isnoobj(tolua_S,4,&tolua_err)
1444 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1445 bool b = ((bool) tolua_toboolean(tolua_S,3,0));
1446 #ifndef TOLUA_RELEASE
1447 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_default_bool'", NULL);
1450 self->set_default_bool(path,b);
1454 #ifndef TOLUA_RELEASE
1456 tolua_error(tolua_S,
"#ferror in function 'set_default_bool'.",&tolua_err);
1460 #endif //#ifndef TOLUA_DISABLE
1463 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_default_string00
1464 static int tolua_fawkesconfig_fawkes_Configuration_set_default_string00(lua_State* tolua_S)
1466 #ifndef TOLUA_RELEASE
1467 tolua_Error tolua_err;
1469 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1470 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1471 !tolua_iscppstring(tolua_S,3,0,&tolua_err) ||
1472 !tolua_isnoobj(tolua_S,4,&tolua_err)
1479 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1480 std::string s = ((std::string) tolua_tocppstring(tolua_S,3,0));
1481 #ifndef TOLUA_RELEASE
1482 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_default_string'", NULL);
1485 self->set_default_string(path,s);
1489 #ifndef TOLUA_RELEASE
1491 tolua_error(tolua_S,
"#ferror in function 'set_default_string'.",&tolua_err);
1495 #endif //#ifndef TOLUA_DISABLE
1498 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_set_default_string01
1499 static int tolua_fawkesconfig_fawkes_Configuration_set_default_string01(lua_State* tolua_S)
1501 tolua_Error tolua_err;
1503 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1504 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1505 !tolua_isstring(tolua_S,3,0,&tolua_err) ||
1506 !tolua_isnoobj(tolua_S,4,&tolua_err)
1512 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1513 const char* s = ((
const char*) tolua_tostring(tolua_S,3,0));
1514 #ifndef TOLUA_RELEASE
1515 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_default_string'", NULL);
1518 self->set_default_string(path,s);
1523 return tolua_fawkesconfig_fawkes_Configuration_set_default_string00(tolua_S);
1525 #endif //#ifndef TOLUA_DISABLE
1528 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_erase_default00
1529 static int tolua_fawkesconfig_fawkes_Configuration_erase_default00(lua_State* tolua_S)
1531 #ifndef TOLUA_RELEASE
1532 tolua_Error tolua_err;
1534 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1535 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1536 !tolua_isnoobj(tolua_S,3,&tolua_err)
1543 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1544 #ifndef TOLUA_RELEASE
1545 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'erase_default'", NULL);
1548 self->erase_default(path);
1552 #ifndef TOLUA_RELEASE
1554 tolua_error(tolua_S,
"#ferror in function 'erase_default'.",&tolua_err);
1558 #endif //#ifndef TOLUA_DISABLE
1561 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_iterator00
1562 static int tolua_fawkesconfig_fawkes_Configuration_iterator00(lua_State* tolua_S)
1564 #ifndef TOLUA_RELEASE
1565 tolua_Error tolua_err;
1567 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1568 !tolua_isnoobj(tolua_S,2,&tolua_err)
1575 #ifndef TOLUA_RELEASE
1576 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'iterator'", NULL);
1580 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Configuration::ValueIterator");
1584 #ifndef TOLUA_RELEASE
1586 tolua_error(tolua_S,
"#ferror in function 'iterator'.",&tolua_err);
1590 #endif //#ifndef TOLUA_DISABLE
1593 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_search00
1594 static int tolua_fawkesconfig_fawkes_Configuration_search00(lua_State* tolua_S)
1596 #ifndef TOLUA_RELEASE
1597 tolua_Error tolua_err;
1599 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1600 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1601 !tolua_isnoobj(tolua_S,3,&tolua_err)
1608 const char* path = ((
const char*) tolua_tostring(tolua_S,2,0));
1609 #ifndef TOLUA_RELEASE
1610 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'search'", NULL);
1614 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Configuration::ValueIterator");
1618 #ifndef TOLUA_RELEASE
1620 tolua_error(tolua_S,
"#ferror in function 'search'.",&tolua_err);
1624 #endif //#ifndef TOLUA_DISABLE
1627 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_lock00
1628 static int tolua_fawkesconfig_fawkes_Configuration_lock00(lua_State* tolua_S)
1630 #ifndef TOLUA_RELEASE
1631 tolua_Error tolua_err;
1633 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1634 !tolua_isnoobj(tolua_S,2,&tolua_err)
1641 #ifndef TOLUA_RELEASE
1642 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'lock'", NULL);
1649 #ifndef TOLUA_RELEASE
1651 tolua_error(tolua_S,
"#ferror in function 'lock'.",&tolua_err);
1655 #endif //#ifndef TOLUA_DISABLE
1658 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_try_lock00
1659 static int tolua_fawkesconfig_fawkes_Configuration_try_lock00(lua_State* tolua_S)
1661 #ifndef TOLUA_RELEASE
1662 tolua_Error tolua_err;
1664 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1665 !tolua_isnoobj(tolua_S,2,&tolua_err)
1672 #ifndef TOLUA_RELEASE
1673 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'try_lock'", NULL);
1676 bool tolua_ret = (bool) self->try_lock();
1677 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
1681 #ifndef TOLUA_RELEASE
1683 tolua_error(tolua_S,
"#ferror in function 'try_lock'.",&tolua_err);
1687 #endif //#ifndef TOLUA_DISABLE
1690 #ifndef TOLUA_DISABLE_tolua_fawkesconfig_fawkes_Configuration_unlock00
1691 static int tolua_fawkesconfig_fawkes_Configuration_unlock00(lua_State* tolua_S)
1693 #ifndef TOLUA_RELEASE
1694 tolua_Error tolua_err;
1696 !tolua_isusertype(tolua_S,1,
"fawkes::Configuration",0,&tolua_err) ||
1697 !tolua_isnoobj(tolua_S,2,&tolua_err)
1704 #ifndef TOLUA_RELEASE
1705 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'unlock'", NULL);
1712 #ifndef TOLUA_RELEASE
1714 tolua_error(tolua_S,
"#ferror in function 'unlock'.",&tolua_err);
1718 #endif //#ifndef TOLUA_DISABLE
1721 TOLUA_API
int tolua_fawkesconfig_open (lua_State* tolua_S)
1723 tolua_open(tolua_S);
1724 tolua_reg_types(tolua_S);
1725 tolua_module(tolua_S,NULL,0);
1726 tolua_beginmodule(tolua_S,NULL);
1727 tolua_module(tolua_S,
"fawkes",0);
1728 tolua_beginmodule(tolua_S,
"fawkes");
1729 tolua_cclass(tolua_S,
"Configuration",
"fawkes::Configuration",
"",NULL);
1730 tolua_beginmodule(tolua_S,
"Configuration");
1732 tolua_cclass(tolua_S,
"ValueIterator",
"fawkes::Configuration::ValueIterator",
"",tolua_collect_fawkes__Configuration__ValueIterator);
1734 tolua_cclass(tolua_S,
"ValueIterator",
"fawkes::Configuration::ValueIterator",
"",NULL);
1736 tolua_beginmodule(tolua_S,
"ValueIterator");
1737 tolua_function(tolua_S,
"delete",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_delete00);
1738 tolua_function(tolua_S,
"next",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_next00);
1739 tolua_function(tolua_S,
"valid",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_valid00);
1740 tolua_function(tolua_S,
"path",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_path00);
1741 tolua_function(tolua_S,
"type",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_type00);
1742 tolua_function(tolua_S,
"is_float",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_float00);
1743 tolua_function(tolua_S,
"is_uint",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_uint00);
1744 tolua_function(tolua_S,
"is_int",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_int00);
1745 tolua_function(tolua_S,
"is_bool",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_bool00);
1746 tolua_function(tolua_S,
"is_string",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_string00);
1747 tolua_function(tolua_S,
"get_float",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_float00);
1748 tolua_function(tolua_S,
"get_uint",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_uint00);
1749 tolua_function(tolua_S,
"get_int",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_int00);
1750 tolua_function(tolua_S,
"get_bool",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_bool00);
1751 tolua_function(tolua_S,
"get_string",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_get_string00);
1752 tolua_function(tolua_S,
"is_default",tolua_fawkesconfig_fawkes_Configuration_ValueIterator_is_default00);
1753 tolua_endmodule(tolua_S);
1754 tolua_function(tolua_S,
"tag",tolua_fawkesconfig_fawkes_Configuration_tag00);
1755 tolua_function(tolua_S,
"tags",tolua_fawkesconfig_fawkes_Configuration_tags00);
1756 tolua_function(tolua_S,
"exists",tolua_fawkesconfig_fawkes_Configuration_exists00);
1757 tolua_function(tolua_S,
"is_float",tolua_fawkesconfig_fawkes_Configuration_is_float00);
1758 tolua_function(tolua_S,
"is_uint",tolua_fawkesconfig_fawkes_Configuration_is_uint00);
1759 tolua_function(tolua_S,
"is_int",tolua_fawkesconfig_fawkes_Configuration_is_int00);
1760 tolua_function(tolua_S,
"is_bool",tolua_fawkesconfig_fawkes_Configuration_is_bool00);
1761 tolua_function(tolua_S,
"is_string",tolua_fawkesconfig_fawkes_Configuration_is_string00);
1762 tolua_function(tolua_S,
"is_default",tolua_fawkesconfig_fawkes_Configuration_is_default00);
1763 tolua_function(tolua_S,
"get_float",tolua_fawkesconfig_fawkes_Configuration_get_float00);
1764 tolua_function(tolua_S,
"get_uint",tolua_fawkesconfig_fawkes_Configuration_get_uint00);
1765 tolua_function(tolua_S,
"get_int",tolua_fawkesconfig_fawkes_Configuration_get_int00);
1766 tolua_function(tolua_S,
"get_bool",tolua_fawkesconfig_fawkes_Configuration_get_bool00);
1767 tolua_function(tolua_S,
"get_string",tolua_fawkesconfig_fawkes_Configuration_get_string00);
1768 tolua_function(tolua_S,
"get_value",tolua_fawkesconfig_fawkes_Configuration_get_value00);
1769 tolua_function(tolua_S,
"set_float",tolua_fawkesconfig_fawkes_Configuration_set_float00);
1770 tolua_function(tolua_S,
"set_uint",tolua_fawkesconfig_fawkes_Configuration_set_uint00);
1771 tolua_function(tolua_S,
"set_int",tolua_fawkesconfig_fawkes_Configuration_set_int00);
1772 tolua_function(tolua_S,
"set_bool",tolua_fawkesconfig_fawkes_Configuration_set_bool00);
1773 tolua_function(tolua_S,
"set_string",tolua_fawkesconfig_fawkes_Configuration_set_string00);
1774 tolua_function(tolua_S,
"set_string",tolua_fawkesconfig_fawkes_Configuration_set_string01);
1775 tolua_function(tolua_S,
"erase",tolua_fawkesconfig_fawkes_Configuration_erase00);
1776 tolua_function(tolua_S,
"set_default_float",tolua_fawkesconfig_fawkes_Configuration_set_default_float00);
1777 tolua_function(tolua_S,
"set_default_uint",tolua_fawkesconfig_fawkes_Configuration_set_default_uint00);
1778 tolua_function(tolua_S,
"set_default_int",tolua_fawkesconfig_fawkes_Configuration_set_default_int00);
1779 tolua_function(tolua_S,
"set_default_bool",tolua_fawkesconfig_fawkes_Configuration_set_default_bool00);
1780 tolua_function(tolua_S,
"set_default_string",tolua_fawkesconfig_fawkes_Configuration_set_default_string00);
1781 tolua_function(tolua_S,
"set_default_string",tolua_fawkesconfig_fawkes_Configuration_set_default_string01);
1782 tolua_function(tolua_S,
"erase_default",tolua_fawkesconfig_fawkes_Configuration_erase_default00);
1783 tolua_function(tolua_S,
"iterator",tolua_fawkesconfig_fawkes_Configuration_iterator00);
1784 tolua_function(tolua_S,
"search",tolua_fawkesconfig_fawkes_Configuration_search00);
1785 tolua_function(tolua_S,
"lock",tolua_fawkesconfig_fawkes_Configuration_lock00);
1786 tolua_function(tolua_S,
"try_lock",tolua_fawkesconfig_fawkes_Configuration_try_lock00);
1787 tolua_function(tolua_S,
"unlock",tolua_fawkesconfig_fawkes_Configuration_unlock00);
1788 tolua_endmodule(tolua_S);
1789 tolua_endmodule(tolua_S);
1790 tolua_endmodule(tolua_S);
1796 #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
1797 TOLUA_API
int luaopen_fawkesconfig (lua_State* tolua_S) {
1798 return tolua_fawkesconfig_open(tolua_S);