Fawkes API
Fawkes Development Version
|
00001 /* 00002 ** Lua binding: interfaces_Laser720Interface 00003 ** Generated automatically by tolua++-1.0.92 00004 */ 00005 /* This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. A runtime exception applies to 00009 * this software (see LICENSE.GPL_WRE file mentioned below for details). 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU Library General Public License for more details. 00015 * 00016 * Read the full text in the LICENSE.GPL_WRE file in the doc directory. 00017 */ 00018 00019 #ifndef __cplusplus 00020 #include "stdlib.h" 00021 #endif 00022 #include "string.h" 00023 00024 #include "tolua++.h" 00025 00026 /* Exported function */ 00027 TOLUA_API int tolua_interfaces_Laser720Interface_open (lua_State* tolua_S); 00028 00029 #include <interfaces/Laser720Interface.h> 00030 using namespace fawkes; 00031 00032 /* function to register type */ 00033 static void tolua_reg_types (lua_State* tolua_S) 00034 { 00035 tolua_usertype(tolua_S,"fawkes::Laser720Interface"); 00036 tolua_usertype(tolua_S,"Message"); 00037 tolua_usertype(tolua_S,"Interface"); 00038 } 00039 00040 /* method: frame of class fawkes::Laser720Interface */ 00041 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_frame00 00042 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_frame00(lua_State* tolua_S) 00043 { 00044 #ifndef TOLUA_RELEASE 00045 tolua_Error tolua_err; 00046 if ( 00047 !tolua_isusertype(tolua_S,1,"fawkes::Laser720Interface",0,&tolua_err) || 00048 !tolua_isnoobj(tolua_S,2,&tolua_err) 00049 ) 00050 goto tolua_lerror; 00051 else 00052 #endif 00053 { 00054 fawkes::Laser720Interface* self = (fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00055 #ifndef TOLUA_RELEASE 00056 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'frame'", NULL); 00057 #endif 00058 { 00059 char* tolua_ret = (char*) self->frame(); 00060 tolua_pushstring(tolua_S,(const char*)tolua_ret); 00061 } 00062 } 00063 return 1; 00064 #ifndef TOLUA_RELEASE 00065 tolua_lerror: 00066 tolua_error(tolua_S,"#ferror in function 'frame'.",&tolua_err); 00067 return 0; 00068 #endif 00069 } 00070 #endif //#ifndef TOLUA_DISABLE 00071 00072 /* method: set_frame of class fawkes::Laser720Interface */ 00073 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_set_frame00 00074 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_set_frame00(lua_State* tolua_S) 00075 { 00076 #ifndef TOLUA_RELEASE 00077 tolua_Error tolua_err; 00078 if ( 00079 !tolua_isusertype(tolua_S,1,"fawkes::Laser720Interface",0,&tolua_err) || 00080 !tolua_isstring(tolua_S,2,0,&tolua_err) || 00081 !tolua_isnoobj(tolua_S,3,&tolua_err) 00082 ) 00083 goto tolua_lerror; 00084 else 00085 #endif 00086 { 00087 fawkes::Laser720Interface* self = (fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00088 const char* new_frame = ((const char*) tolua_tostring(tolua_S,2,0)); 00089 #ifndef TOLUA_RELEASE 00090 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_frame'", NULL); 00091 #endif 00092 { 00093 self->set_frame(new_frame); 00094 } 00095 } 00096 return 0; 00097 #ifndef TOLUA_RELEASE 00098 tolua_lerror: 00099 tolua_error(tolua_S,"#ferror in function 'set_frame'.",&tolua_err); 00100 return 0; 00101 #endif 00102 } 00103 #endif //#ifndef TOLUA_DISABLE 00104 00105 /* method: maxlenof_frame of class fawkes::Laser720Interface */ 00106 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_maxlenof_frame00 00107 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_maxlenof_frame00(lua_State* tolua_S) 00108 { 00109 #ifndef TOLUA_RELEASE 00110 tolua_Error tolua_err; 00111 if ( 00112 !tolua_isusertype(tolua_S,1,"const fawkes::Laser720Interface",0,&tolua_err) || 00113 !tolua_isnoobj(tolua_S,2,&tolua_err) 00114 ) 00115 goto tolua_lerror; 00116 else 00117 #endif 00118 { 00119 const fawkes::Laser720Interface* self = (const fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00120 #ifndef TOLUA_RELEASE 00121 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_frame'", NULL); 00122 #endif 00123 { 00124 int tolua_ret = (int) self->maxlenof_frame(); 00125 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00126 } 00127 } 00128 return 1; 00129 #ifndef TOLUA_RELEASE 00130 tolua_lerror: 00131 tolua_error(tolua_S,"#ferror in function 'maxlenof_frame'.",&tolua_err); 00132 return 0; 00133 #endif 00134 } 00135 #endif //#ifndef TOLUA_DISABLE 00136 00137 /* method: distances of class fawkes::Laser720Interface */ 00138 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_distances00 00139 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_distances00(lua_State* tolua_S) 00140 { 00141 #ifndef TOLUA_RELEASE 00142 tolua_Error tolua_err; 00143 if ( 00144 !tolua_isusertype(tolua_S,1,"fawkes::Laser720Interface",0,&tolua_err) || 00145 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 00146 !tolua_isnoobj(tolua_S,3,&tolua_err) 00147 ) 00148 goto tolua_lerror; 00149 else 00150 #endif 00151 { 00152 fawkes::Laser720Interface* self = (fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00153 int index = ((int) tolua_tonumber(tolua_S,2,0)); 00154 #ifndef TOLUA_RELEASE 00155 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'distances'", NULL); 00156 #endif 00157 { 00158 float tolua_ret = (float) self->distances(index); 00159 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00160 } 00161 } 00162 return 1; 00163 #ifndef TOLUA_RELEASE 00164 tolua_lerror: 00165 tolua_error(tolua_S,"#ferror in function 'distances'.",&tolua_err); 00166 return 0; 00167 #endif 00168 } 00169 #endif //#ifndef TOLUA_DISABLE 00170 00171 /* method: set_distances of class fawkes::Laser720Interface */ 00172 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_set_distances00 00173 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_set_distances00(lua_State* tolua_S) 00174 { 00175 #ifndef TOLUA_RELEASE 00176 tolua_Error tolua_err; 00177 if ( 00178 !tolua_isusertype(tolua_S,1,"fawkes::Laser720Interface",0,&tolua_err) || 00179 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 00180 !tolua_isnumber(tolua_S,3,0,&tolua_err) || 00181 !tolua_isnoobj(tolua_S,4,&tolua_err) 00182 ) 00183 goto tolua_lerror; 00184 else 00185 #endif 00186 { 00187 fawkes::Laser720Interface* self = (fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00188 unsigned int index = ((unsigned int) tolua_tonumber(tolua_S,2,0)); 00189 const float new_distances = ((const float) tolua_tonumber(tolua_S,3,0)); 00190 #ifndef TOLUA_RELEASE 00191 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_distances'", NULL); 00192 #endif 00193 { 00194 self->set_distances(index,new_distances); 00195 } 00196 } 00197 return 0; 00198 #ifndef TOLUA_RELEASE 00199 tolua_lerror: 00200 tolua_error(tolua_S,"#ferror in function 'set_distances'.",&tolua_err); 00201 return 0; 00202 #endif 00203 } 00204 #endif //#ifndef TOLUA_DISABLE 00205 00206 /* method: maxlenof_distances of class fawkes::Laser720Interface */ 00207 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_maxlenof_distances00 00208 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_maxlenof_distances00(lua_State* tolua_S) 00209 { 00210 #ifndef TOLUA_RELEASE 00211 tolua_Error tolua_err; 00212 if ( 00213 !tolua_isusertype(tolua_S,1,"const fawkes::Laser720Interface",0,&tolua_err) || 00214 !tolua_isnoobj(tolua_S,2,&tolua_err) 00215 ) 00216 goto tolua_lerror; 00217 else 00218 #endif 00219 { 00220 const fawkes::Laser720Interface* self = (const fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00221 #ifndef TOLUA_RELEASE 00222 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_distances'", NULL); 00223 #endif 00224 { 00225 int tolua_ret = (int) self->maxlenof_distances(); 00226 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00227 } 00228 } 00229 return 1; 00230 #ifndef TOLUA_RELEASE 00231 tolua_lerror: 00232 tolua_error(tolua_S,"#ferror in function 'maxlenof_distances'.",&tolua_err); 00233 return 0; 00234 #endif 00235 } 00236 #endif //#ifndef TOLUA_DISABLE 00237 00238 /* method: is_clockwise_angle of class fawkes::Laser720Interface */ 00239 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_is_clockwise_angle00 00240 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_is_clockwise_angle00(lua_State* tolua_S) 00241 { 00242 #ifndef TOLUA_RELEASE 00243 tolua_Error tolua_err; 00244 if ( 00245 !tolua_isusertype(tolua_S,1,"fawkes::Laser720Interface",0,&tolua_err) || 00246 !tolua_isnoobj(tolua_S,2,&tolua_err) 00247 ) 00248 goto tolua_lerror; 00249 else 00250 #endif 00251 { 00252 fawkes::Laser720Interface* self = (fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00253 #ifndef TOLUA_RELEASE 00254 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'is_clockwise_angle'", NULL); 00255 #endif 00256 { 00257 bool tolua_ret = (bool) self->is_clockwise_angle(); 00258 tolua_pushboolean(tolua_S,(bool)tolua_ret); 00259 } 00260 } 00261 return 1; 00262 #ifndef TOLUA_RELEASE 00263 tolua_lerror: 00264 tolua_error(tolua_S,"#ferror in function 'is_clockwise_angle'.",&tolua_err); 00265 return 0; 00266 #endif 00267 } 00268 #endif //#ifndef TOLUA_DISABLE 00269 00270 /* method: set_clockwise_angle of class fawkes::Laser720Interface */ 00271 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_set_clockwise_angle00 00272 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_set_clockwise_angle00(lua_State* tolua_S) 00273 { 00274 #ifndef TOLUA_RELEASE 00275 tolua_Error tolua_err; 00276 if ( 00277 !tolua_isusertype(tolua_S,1,"fawkes::Laser720Interface",0,&tolua_err) || 00278 !tolua_isboolean(tolua_S,2,0,&tolua_err) || 00279 !tolua_isnoobj(tolua_S,3,&tolua_err) 00280 ) 00281 goto tolua_lerror; 00282 else 00283 #endif 00284 { 00285 fawkes::Laser720Interface* self = (fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00286 const bool new_clockwise_angle = ((const bool) tolua_toboolean(tolua_S,2,0)); 00287 #ifndef TOLUA_RELEASE 00288 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_clockwise_angle'", NULL); 00289 #endif 00290 { 00291 self->set_clockwise_angle(new_clockwise_angle); 00292 } 00293 } 00294 return 0; 00295 #ifndef TOLUA_RELEASE 00296 tolua_lerror: 00297 tolua_error(tolua_S,"#ferror in function 'set_clockwise_angle'.",&tolua_err); 00298 return 0; 00299 #endif 00300 } 00301 #endif //#ifndef TOLUA_DISABLE 00302 00303 /* method: maxlenof_clockwise_angle of class fawkes::Laser720Interface */ 00304 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_maxlenof_clockwise_angle00 00305 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_maxlenof_clockwise_angle00(lua_State* tolua_S) 00306 { 00307 #ifndef TOLUA_RELEASE 00308 tolua_Error tolua_err; 00309 if ( 00310 !tolua_isusertype(tolua_S,1,"const fawkes::Laser720Interface",0,&tolua_err) || 00311 !tolua_isnoobj(tolua_S,2,&tolua_err) 00312 ) 00313 goto tolua_lerror; 00314 else 00315 #endif 00316 { 00317 const fawkes::Laser720Interface* self = (const fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00318 #ifndef TOLUA_RELEASE 00319 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_clockwise_angle'", NULL); 00320 #endif 00321 { 00322 int tolua_ret = (int) self->maxlenof_clockwise_angle(); 00323 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00324 } 00325 } 00326 return 1; 00327 #ifndef TOLUA_RELEASE 00328 tolua_lerror: 00329 tolua_error(tolua_S,"#ferror in function 'maxlenof_clockwise_angle'.",&tolua_err); 00330 return 0; 00331 #endif 00332 } 00333 #endif //#ifndef TOLUA_DISABLE 00334 00335 /* method: oftype of class fawkes::Laser720Interface */ 00336 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_oftype00 00337 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_oftype00(lua_State* tolua_S) 00338 { 00339 #ifndef TOLUA_RELEASE 00340 tolua_Error tolua_err; 00341 if ( 00342 !tolua_isusertype(tolua_S,1,"const fawkes::Laser720Interface",0,&tolua_err) || 00343 !tolua_isstring(tolua_S,2,0,&tolua_err) || 00344 !tolua_isnoobj(tolua_S,3,&tolua_err) 00345 ) 00346 goto tolua_lerror; 00347 else 00348 #endif 00349 { 00350 const fawkes::Laser720Interface* self = (const fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00351 const char* interface_type = ((const char*) tolua_tostring(tolua_S,2,0)); 00352 #ifndef TOLUA_RELEASE 00353 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'oftype'", NULL); 00354 #endif 00355 { 00356 bool tolua_ret = (bool) self->oftype(interface_type); 00357 tolua_pushboolean(tolua_S,(bool)tolua_ret); 00358 } 00359 } 00360 return 1; 00361 #ifndef TOLUA_RELEASE 00362 tolua_lerror: 00363 tolua_error(tolua_S,"#ferror in function 'oftype'.",&tolua_err); 00364 return 0; 00365 #endif 00366 } 00367 #endif //#ifndef TOLUA_DISABLE 00368 00369 /* method: datachunk of class fawkes::Laser720Interface */ 00370 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_datachunk00 00371 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_datachunk00(lua_State* tolua_S) 00372 { 00373 #ifndef TOLUA_RELEASE 00374 tolua_Error tolua_err; 00375 if ( 00376 !tolua_isusertype(tolua_S,1,"const fawkes::Laser720Interface",0,&tolua_err) || 00377 !tolua_isnoobj(tolua_S,2,&tolua_err) 00378 ) 00379 goto tolua_lerror; 00380 else 00381 #endif 00382 { 00383 const fawkes::Laser720Interface* self = (const fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00384 #ifndef TOLUA_RELEASE 00385 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'datachunk'", NULL); 00386 #endif 00387 { 00388 const void* tolua_ret = (const void*) self->datachunk(); 00389 tolua_pushuserdata(tolua_S,(void*)tolua_ret); 00390 } 00391 } 00392 return 1; 00393 #ifndef TOLUA_RELEASE 00394 tolua_lerror: 00395 tolua_error(tolua_S,"#ferror in function 'datachunk'.",&tolua_err); 00396 return 0; 00397 #endif 00398 } 00399 #endif //#ifndef TOLUA_DISABLE 00400 00401 /* method: datasize of class fawkes::Laser720Interface */ 00402 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_datasize00 00403 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_datasize00(lua_State* tolua_S) 00404 { 00405 #ifndef TOLUA_RELEASE 00406 tolua_Error tolua_err; 00407 if ( 00408 !tolua_isusertype(tolua_S,1,"const fawkes::Laser720Interface",0,&tolua_err) || 00409 !tolua_isnoobj(tolua_S,2,&tolua_err) 00410 ) 00411 goto tolua_lerror; 00412 else 00413 #endif 00414 { 00415 const fawkes::Laser720Interface* self = (const fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00416 #ifndef TOLUA_RELEASE 00417 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'datasize'", NULL); 00418 #endif 00419 { 00420 unsigned int tolua_ret = (unsigned int) self->datasize(); 00421 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00422 } 00423 } 00424 return 1; 00425 #ifndef TOLUA_RELEASE 00426 tolua_lerror: 00427 tolua_error(tolua_S,"#ferror in function 'datasize'.",&tolua_err); 00428 return 0; 00429 #endif 00430 } 00431 #endif //#ifndef TOLUA_DISABLE 00432 00433 /* method: type of class fawkes::Laser720Interface */ 00434 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_type00 00435 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_type00(lua_State* tolua_S) 00436 { 00437 #ifndef TOLUA_RELEASE 00438 tolua_Error tolua_err; 00439 if ( 00440 !tolua_isusertype(tolua_S,1,"const fawkes::Laser720Interface",0,&tolua_err) || 00441 !tolua_isnoobj(tolua_S,2,&tolua_err) 00442 ) 00443 goto tolua_lerror; 00444 else 00445 #endif 00446 { 00447 const fawkes::Laser720Interface* self = (const fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00448 #ifndef TOLUA_RELEASE 00449 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'type'", NULL); 00450 #endif 00451 { 00452 const char* tolua_ret = (const char*) self->type(); 00453 tolua_pushstring(tolua_S,(const char*)tolua_ret); 00454 } 00455 } 00456 return 1; 00457 #ifndef TOLUA_RELEASE 00458 tolua_lerror: 00459 tolua_error(tolua_S,"#ferror in function 'type'.",&tolua_err); 00460 return 0; 00461 #endif 00462 } 00463 #endif //#ifndef TOLUA_DISABLE 00464 00465 /* method: id of class fawkes::Laser720Interface */ 00466 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_id00 00467 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_id00(lua_State* tolua_S) 00468 { 00469 #ifndef TOLUA_RELEASE 00470 tolua_Error tolua_err; 00471 if ( 00472 !tolua_isusertype(tolua_S,1,"const fawkes::Laser720Interface",0,&tolua_err) || 00473 !tolua_isnoobj(tolua_S,2,&tolua_err) 00474 ) 00475 goto tolua_lerror; 00476 else 00477 #endif 00478 { 00479 const fawkes::Laser720Interface* self = (const fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00480 #ifndef TOLUA_RELEASE 00481 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'id'", NULL); 00482 #endif 00483 { 00484 const char* tolua_ret = (const char*) self->id(); 00485 tolua_pushstring(tolua_S,(const char*)tolua_ret); 00486 } 00487 } 00488 return 1; 00489 #ifndef TOLUA_RELEASE 00490 tolua_lerror: 00491 tolua_error(tolua_S,"#ferror in function 'id'.",&tolua_err); 00492 return 0; 00493 #endif 00494 } 00495 #endif //#ifndef TOLUA_DISABLE 00496 00497 /* method: uid of class fawkes::Laser720Interface */ 00498 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_uid00 00499 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_uid00(lua_State* tolua_S) 00500 { 00501 #ifndef TOLUA_RELEASE 00502 tolua_Error tolua_err; 00503 if ( 00504 !tolua_isusertype(tolua_S,1,"const fawkes::Laser720Interface",0,&tolua_err) || 00505 !tolua_isnoobj(tolua_S,2,&tolua_err) 00506 ) 00507 goto tolua_lerror; 00508 else 00509 #endif 00510 { 00511 const fawkes::Laser720Interface* self = (const fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00512 #ifndef TOLUA_RELEASE 00513 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'uid'", NULL); 00514 #endif 00515 { 00516 const char* tolua_ret = (const char*) self->uid(); 00517 tolua_pushstring(tolua_S,(const char*)tolua_ret); 00518 } 00519 } 00520 return 1; 00521 #ifndef TOLUA_RELEASE 00522 tolua_lerror: 00523 tolua_error(tolua_S,"#ferror in function 'uid'.",&tolua_err); 00524 return 0; 00525 #endif 00526 } 00527 #endif //#ifndef TOLUA_DISABLE 00528 00529 /* method: serial of class fawkes::Laser720Interface */ 00530 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_serial00 00531 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_serial00(lua_State* tolua_S) 00532 { 00533 #ifndef TOLUA_RELEASE 00534 tolua_Error tolua_err; 00535 if ( 00536 !tolua_isusertype(tolua_S,1,"const fawkes::Laser720Interface",0,&tolua_err) || 00537 !tolua_isnoobj(tolua_S,2,&tolua_err) 00538 ) 00539 goto tolua_lerror; 00540 else 00541 #endif 00542 { 00543 const fawkes::Laser720Interface* self = (const fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00544 #ifndef TOLUA_RELEASE 00545 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'serial'", NULL); 00546 #endif 00547 { 00548 unsigned int tolua_ret = (unsigned int) self->serial(); 00549 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00550 } 00551 } 00552 return 1; 00553 #ifndef TOLUA_RELEASE 00554 tolua_lerror: 00555 tolua_error(tolua_S,"#ferror in function 'serial'.",&tolua_err); 00556 return 0; 00557 #endif 00558 } 00559 #endif //#ifndef TOLUA_DISABLE 00560 00561 /* method: mem_serial of class fawkes::Laser720Interface */ 00562 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_mem_serial00 00563 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_mem_serial00(lua_State* tolua_S) 00564 { 00565 #ifndef TOLUA_RELEASE 00566 tolua_Error tolua_err; 00567 if ( 00568 !tolua_isusertype(tolua_S,1,"const fawkes::Laser720Interface",0,&tolua_err) || 00569 !tolua_isnoobj(tolua_S,2,&tolua_err) 00570 ) 00571 goto tolua_lerror; 00572 else 00573 #endif 00574 { 00575 const fawkes::Laser720Interface* self = (const fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00576 #ifndef TOLUA_RELEASE 00577 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'mem_serial'", NULL); 00578 #endif 00579 { 00580 unsigned int tolua_ret = (unsigned int) self->mem_serial(); 00581 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00582 } 00583 } 00584 return 1; 00585 #ifndef TOLUA_RELEASE 00586 tolua_lerror: 00587 tolua_error(tolua_S,"#ferror in function 'mem_serial'.",&tolua_err); 00588 return 0; 00589 #endif 00590 } 00591 #endif //#ifndef TOLUA_DISABLE 00592 00593 /* method: operator== of class fawkes::Laser720Interface */ 00594 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface__eq00 00595 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface__eq00(lua_State* tolua_S) 00596 { 00597 #ifndef TOLUA_RELEASE 00598 tolua_Error tolua_err; 00599 if ( 00600 !tolua_isusertype(tolua_S,1,"const fawkes::Laser720Interface",0,&tolua_err) || 00601 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Interface",0,&tolua_err)) || 00602 !tolua_isnoobj(tolua_S,3,&tolua_err) 00603 ) 00604 goto tolua_lerror; 00605 else 00606 #endif 00607 { 00608 const fawkes::Laser720Interface* self = (const fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00609 Interface* comp = ((Interface*) tolua_tousertype(tolua_S,2,0)); 00610 #ifndef TOLUA_RELEASE 00611 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL); 00612 #endif 00613 { 00614 bool tolua_ret = (bool) self->operator==(*comp); 00615 tolua_pushboolean(tolua_S,(bool)tolua_ret); 00616 } 00617 } 00618 return 1; 00619 #ifndef TOLUA_RELEASE 00620 tolua_lerror: 00621 tolua_error(tolua_S,"#ferror in function '.eq'.",&tolua_err); 00622 return 0; 00623 #endif 00624 } 00625 #endif //#ifndef TOLUA_DISABLE 00626 00627 /* method: hash of class fawkes::Laser720Interface */ 00628 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_hash00 00629 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_hash00(lua_State* tolua_S) 00630 { 00631 #ifndef TOLUA_RELEASE 00632 tolua_Error tolua_err; 00633 if ( 00634 !tolua_isusertype(tolua_S,1,"const fawkes::Laser720Interface",0,&tolua_err) || 00635 !tolua_isnoobj(tolua_S,2,&tolua_err) 00636 ) 00637 goto tolua_lerror; 00638 else 00639 #endif 00640 { 00641 const fawkes::Laser720Interface* self = (const fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00642 #ifndef TOLUA_RELEASE 00643 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'hash'", NULL); 00644 #endif 00645 { 00646 unsigned const char* tolua_ret = ( unsigned const char*) self->hash(); 00647 tolua_pushstring(tolua_S,(const char*)tolua_ret); 00648 } 00649 } 00650 return 1; 00651 #ifndef TOLUA_RELEASE 00652 tolua_lerror: 00653 tolua_error(tolua_S,"#ferror in function 'hash'.",&tolua_err); 00654 return 0; 00655 #endif 00656 } 00657 #endif //#ifndef TOLUA_DISABLE 00658 00659 /* method: hash_size of class fawkes::Laser720Interface */ 00660 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_hash_size00 00661 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_hash_size00(lua_State* tolua_S) 00662 { 00663 #ifndef TOLUA_RELEASE 00664 tolua_Error tolua_err; 00665 if ( 00666 !tolua_isusertype(tolua_S,1,"const fawkes::Laser720Interface",0,&tolua_err) || 00667 !tolua_isnoobj(tolua_S,2,&tolua_err) 00668 ) 00669 goto tolua_lerror; 00670 else 00671 #endif 00672 { 00673 const fawkes::Laser720Interface* self = (const fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00674 #ifndef TOLUA_RELEASE 00675 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'hash_size'", NULL); 00676 #endif 00677 { 00678 int tolua_ret = (int) self->hash_size(); 00679 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00680 } 00681 } 00682 return 1; 00683 #ifndef TOLUA_RELEASE 00684 tolua_lerror: 00685 tolua_error(tolua_S,"#ferror in function 'hash_size'.",&tolua_err); 00686 return 0; 00687 #endif 00688 } 00689 #endif //#ifndef TOLUA_DISABLE 00690 00691 /* method: hash_printable of class fawkes::Laser720Interface */ 00692 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_hash_printable00 00693 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_hash_printable00(lua_State* tolua_S) 00694 { 00695 #ifndef TOLUA_RELEASE 00696 tolua_Error tolua_err; 00697 if ( 00698 !tolua_isusertype(tolua_S,1,"const fawkes::Laser720Interface",0,&tolua_err) || 00699 !tolua_isnoobj(tolua_S,2,&tolua_err) 00700 ) 00701 goto tolua_lerror; 00702 else 00703 #endif 00704 { 00705 const fawkes::Laser720Interface* self = (const fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00706 #ifndef TOLUA_RELEASE 00707 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'hash_printable'", NULL); 00708 #endif 00709 { 00710 const char* tolua_ret = (const char*) self->hash_printable(); 00711 tolua_pushstring(tolua_S,(const char*)tolua_ret); 00712 } 00713 } 00714 return 1; 00715 #ifndef TOLUA_RELEASE 00716 tolua_lerror: 00717 tolua_error(tolua_S,"#ferror in function 'hash_printable'.",&tolua_err); 00718 return 0; 00719 #endif 00720 } 00721 #endif //#ifndef TOLUA_DISABLE 00722 00723 /* method: is_writer of class fawkes::Laser720Interface */ 00724 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_is_writer00 00725 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_is_writer00(lua_State* tolua_S) 00726 { 00727 #ifndef TOLUA_RELEASE 00728 tolua_Error tolua_err; 00729 if ( 00730 !tolua_isusertype(tolua_S,1,"const fawkes::Laser720Interface",0,&tolua_err) || 00731 !tolua_isnoobj(tolua_S,2,&tolua_err) 00732 ) 00733 goto tolua_lerror; 00734 else 00735 #endif 00736 { 00737 const fawkes::Laser720Interface* self = (const fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00738 #ifndef TOLUA_RELEASE 00739 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'is_writer'", NULL); 00740 #endif 00741 { 00742 bool tolua_ret = (bool) self->is_writer(); 00743 tolua_pushboolean(tolua_S,(bool)tolua_ret); 00744 } 00745 } 00746 return 1; 00747 #ifndef TOLUA_RELEASE 00748 tolua_lerror: 00749 tolua_error(tolua_S,"#ferror in function 'is_writer'.",&tolua_err); 00750 return 0; 00751 #endif 00752 } 00753 #endif //#ifndef TOLUA_DISABLE 00754 00755 /* method: set_from_chunk of class fawkes::Laser720Interface */ 00756 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_set_from_chunk00 00757 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_set_from_chunk00(lua_State* tolua_S) 00758 { 00759 #ifndef TOLUA_RELEASE 00760 tolua_Error tolua_err; 00761 if ( 00762 !tolua_isusertype(tolua_S,1,"fawkes::Laser720Interface",0,&tolua_err) || 00763 !tolua_isuserdata(tolua_S,2,0,&tolua_err) || 00764 !tolua_isnoobj(tolua_S,3,&tolua_err) 00765 ) 00766 goto tolua_lerror; 00767 else 00768 #endif 00769 { 00770 fawkes::Laser720Interface* self = (fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00771 void* chunk = ((void*) tolua_touserdata(tolua_S,2,0)); 00772 #ifndef TOLUA_RELEASE 00773 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_from_chunk'", NULL); 00774 #endif 00775 { 00776 self->set_from_chunk(chunk); 00777 } 00778 } 00779 return 0; 00780 #ifndef TOLUA_RELEASE 00781 tolua_lerror: 00782 tolua_error(tolua_S,"#ferror in function 'set_from_chunk'.",&tolua_err); 00783 return 0; 00784 #endif 00785 } 00786 #endif //#ifndef TOLUA_DISABLE 00787 00788 /* method: create_message of class fawkes::Laser720Interface */ 00789 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_create_message00 00790 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_create_message00(lua_State* tolua_S) 00791 { 00792 #ifndef TOLUA_RELEASE 00793 tolua_Error tolua_err; 00794 if ( 00795 !tolua_isusertype(tolua_S,1,"const fawkes::Laser720Interface",0,&tolua_err) || 00796 !tolua_isstring(tolua_S,2,0,&tolua_err) || 00797 !tolua_isnoobj(tolua_S,3,&tolua_err) 00798 ) 00799 goto tolua_lerror; 00800 else 00801 #endif 00802 { 00803 const fawkes::Laser720Interface* self = (const fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00804 const char* type = ((const char*) tolua_tostring(tolua_S,2,0)); 00805 #ifndef TOLUA_RELEASE 00806 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'create_message'", NULL); 00807 #endif 00808 { 00809 Message* tolua_ret = (Message*) self->create_message(type); 00810 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Message"); 00811 } 00812 } 00813 return 1; 00814 #ifndef TOLUA_RELEASE 00815 tolua_lerror: 00816 tolua_error(tolua_S,"#ferror in function 'create_message'.",&tolua_err); 00817 return 0; 00818 #endif 00819 } 00820 #endif //#ifndef TOLUA_DISABLE 00821 00822 /* method: read of class fawkes::Laser720Interface */ 00823 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_read00 00824 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_read00(lua_State* tolua_S) 00825 { 00826 #ifndef TOLUA_RELEASE 00827 tolua_Error tolua_err; 00828 if ( 00829 !tolua_isusertype(tolua_S,1,"fawkes::Laser720Interface",0,&tolua_err) || 00830 !tolua_isnoobj(tolua_S,2,&tolua_err) 00831 ) 00832 goto tolua_lerror; 00833 else 00834 #endif 00835 { 00836 fawkes::Laser720Interface* self = (fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00837 #ifndef TOLUA_RELEASE 00838 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'read'", NULL); 00839 #endif 00840 { 00841 self->read(); 00842 } 00843 } 00844 return 0; 00845 #ifndef TOLUA_RELEASE 00846 tolua_lerror: 00847 tolua_error(tolua_S,"#ferror in function 'read'.",&tolua_err); 00848 return 0; 00849 #endif 00850 } 00851 #endif //#ifndef TOLUA_DISABLE 00852 00853 /* method: write of class fawkes::Laser720Interface */ 00854 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_write00 00855 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_write00(lua_State* tolua_S) 00856 { 00857 #ifndef TOLUA_RELEASE 00858 tolua_Error tolua_err; 00859 if ( 00860 !tolua_isusertype(tolua_S,1,"fawkes::Laser720Interface",0,&tolua_err) || 00861 !tolua_isnoobj(tolua_S,2,&tolua_err) 00862 ) 00863 goto tolua_lerror; 00864 else 00865 #endif 00866 { 00867 fawkes::Laser720Interface* self = (fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00868 #ifndef TOLUA_RELEASE 00869 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'write'", NULL); 00870 #endif 00871 { 00872 self->write(); 00873 } 00874 } 00875 return 0; 00876 #ifndef TOLUA_RELEASE 00877 tolua_lerror: 00878 tolua_error(tolua_S,"#ferror in function 'write'.",&tolua_err); 00879 return 0; 00880 #endif 00881 } 00882 #endif //#ifndef TOLUA_DISABLE 00883 00884 /* method: has_writer of class fawkes::Laser720Interface */ 00885 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_has_writer00 00886 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_has_writer00(lua_State* tolua_S) 00887 { 00888 #ifndef TOLUA_RELEASE 00889 tolua_Error tolua_err; 00890 if ( 00891 !tolua_isusertype(tolua_S,1,"const fawkes::Laser720Interface",0,&tolua_err) || 00892 !tolua_isnoobj(tolua_S,2,&tolua_err) 00893 ) 00894 goto tolua_lerror; 00895 else 00896 #endif 00897 { 00898 const fawkes::Laser720Interface* self = (const fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00899 #ifndef TOLUA_RELEASE 00900 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'has_writer'", NULL); 00901 #endif 00902 { 00903 bool tolua_ret = (bool) self->has_writer(); 00904 tolua_pushboolean(tolua_S,(bool)tolua_ret); 00905 } 00906 } 00907 return 1; 00908 #ifndef TOLUA_RELEASE 00909 tolua_lerror: 00910 tolua_error(tolua_S,"#ferror in function 'has_writer'.",&tolua_err); 00911 return 0; 00912 #endif 00913 } 00914 #endif //#ifndef TOLUA_DISABLE 00915 00916 /* method: num_readers of class fawkes::Laser720Interface */ 00917 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_num_readers00 00918 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_num_readers00(lua_State* tolua_S) 00919 { 00920 #ifndef TOLUA_RELEASE 00921 tolua_Error tolua_err; 00922 if ( 00923 !tolua_isusertype(tolua_S,1,"const fawkes::Laser720Interface",0,&tolua_err) || 00924 !tolua_isnoobj(tolua_S,2,&tolua_err) 00925 ) 00926 goto tolua_lerror; 00927 else 00928 #endif 00929 { 00930 const fawkes::Laser720Interface* self = (const fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00931 #ifndef TOLUA_RELEASE 00932 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'num_readers'", NULL); 00933 #endif 00934 { 00935 unsigned int tolua_ret = (unsigned int) self->num_readers(); 00936 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00937 } 00938 } 00939 return 1; 00940 #ifndef TOLUA_RELEASE 00941 tolua_lerror: 00942 tolua_error(tolua_S,"#ferror in function 'num_readers'.",&tolua_err); 00943 return 0; 00944 #endif 00945 } 00946 #endif //#ifndef TOLUA_DISABLE 00947 00948 /* method: msgq_enqueue_copy of class fawkes::Laser720Interface */ 00949 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_enqueue_copy00 00950 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_enqueue_copy00(lua_State* tolua_S) 00951 { 00952 #ifndef TOLUA_RELEASE 00953 tolua_Error tolua_err; 00954 if ( 00955 !tolua_isusertype(tolua_S,1,"fawkes::Laser720Interface",0,&tolua_err) || 00956 !tolua_isusertype(tolua_S,2,"Message",0,&tolua_err) || 00957 !tolua_isnoobj(tolua_S,3,&tolua_err) 00958 ) 00959 goto tolua_lerror; 00960 else 00961 #endif 00962 { 00963 fawkes::Laser720Interface* self = (fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00964 Message* message = ((Message*) tolua_tousertype(tolua_S,2,0)); 00965 #ifndef TOLUA_RELEASE 00966 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_enqueue_copy'", NULL); 00967 #endif 00968 { 00969 unsigned int tolua_ret = (unsigned int) self->msgq_enqueue_copy(message); 00970 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00971 } 00972 } 00973 return 1; 00974 #ifndef TOLUA_RELEASE 00975 tolua_lerror: 00976 tolua_error(tolua_S,"#ferror in function 'msgq_enqueue_copy'.",&tolua_err); 00977 return 0; 00978 #endif 00979 } 00980 #endif //#ifndef TOLUA_DISABLE 00981 00982 /* method: msgq_remove of class fawkes::Laser720Interface */ 00983 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_remove00 00984 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_remove00(lua_State* tolua_S) 00985 { 00986 #ifndef TOLUA_RELEASE 00987 tolua_Error tolua_err; 00988 if ( 00989 !tolua_isusertype(tolua_S,1,"fawkes::Laser720Interface",0,&tolua_err) || 00990 !tolua_isusertype(tolua_S,2,"Message",0,&tolua_err) || 00991 !tolua_isnoobj(tolua_S,3,&tolua_err) 00992 ) 00993 goto tolua_lerror; 00994 else 00995 #endif 00996 { 00997 fawkes::Laser720Interface* self = (fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 00998 Message* message = ((Message*) tolua_tousertype(tolua_S,2,0)); 00999 #ifndef TOLUA_RELEASE 01000 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_remove'", NULL); 01001 #endif 01002 { 01003 self->msgq_remove(message); 01004 } 01005 } 01006 return 0; 01007 #ifndef TOLUA_RELEASE 01008 tolua_lerror: 01009 tolua_error(tolua_S,"#ferror in function 'msgq_remove'.",&tolua_err); 01010 return 0; 01011 #endif 01012 } 01013 #endif //#ifndef TOLUA_DISABLE 01014 01015 /* method: msgq_remove of class fawkes::Laser720Interface */ 01016 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_remove01 01017 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_remove01(lua_State* tolua_S) 01018 { 01019 tolua_Error tolua_err; 01020 if ( 01021 !tolua_isusertype(tolua_S,1,"fawkes::Laser720Interface",0,&tolua_err) || 01022 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 01023 !tolua_isnoobj(tolua_S,3,&tolua_err) 01024 ) 01025 goto tolua_lerror; 01026 else 01027 { 01028 fawkes::Laser720Interface* self = (fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 01029 unsigned int message_id = ((unsigned int) tolua_tonumber(tolua_S,2,0)); 01030 #ifndef TOLUA_RELEASE 01031 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_remove'", NULL); 01032 #endif 01033 { 01034 self->msgq_remove(message_id); 01035 } 01036 } 01037 return 0; 01038 tolua_lerror: 01039 return tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_remove00(tolua_S); 01040 } 01041 #endif //#ifndef TOLUA_DISABLE 01042 01043 /* method: msgq_size of class fawkes::Laser720Interface */ 01044 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_size00 01045 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_size00(lua_State* tolua_S) 01046 { 01047 #ifndef TOLUA_RELEASE 01048 tolua_Error tolua_err; 01049 if ( 01050 !tolua_isusertype(tolua_S,1,"fawkes::Laser720Interface",0,&tolua_err) || 01051 !tolua_isnoobj(tolua_S,2,&tolua_err) 01052 ) 01053 goto tolua_lerror; 01054 else 01055 #endif 01056 { 01057 fawkes::Laser720Interface* self = (fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 01058 #ifndef TOLUA_RELEASE 01059 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_size'", NULL); 01060 #endif 01061 { 01062 unsigned int tolua_ret = (unsigned int) self->msgq_size(); 01063 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01064 } 01065 } 01066 return 1; 01067 #ifndef TOLUA_RELEASE 01068 tolua_lerror: 01069 tolua_error(tolua_S,"#ferror in function 'msgq_size'.",&tolua_err); 01070 return 0; 01071 #endif 01072 } 01073 #endif //#ifndef TOLUA_DISABLE 01074 01075 /* method: msgq_flush of class fawkes::Laser720Interface */ 01076 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_flush00 01077 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_flush00(lua_State* tolua_S) 01078 { 01079 #ifndef TOLUA_RELEASE 01080 tolua_Error tolua_err; 01081 if ( 01082 !tolua_isusertype(tolua_S,1,"fawkes::Laser720Interface",0,&tolua_err) || 01083 !tolua_isnoobj(tolua_S,2,&tolua_err) 01084 ) 01085 goto tolua_lerror; 01086 else 01087 #endif 01088 { 01089 fawkes::Laser720Interface* self = (fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 01090 #ifndef TOLUA_RELEASE 01091 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_flush'", NULL); 01092 #endif 01093 { 01094 self->msgq_flush(); 01095 } 01096 } 01097 return 0; 01098 #ifndef TOLUA_RELEASE 01099 tolua_lerror: 01100 tolua_error(tolua_S,"#ferror in function 'msgq_flush'.",&tolua_err); 01101 return 0; 01102 #endif 01103 } 01104 #endif //#ifndef TOLUA_DISABLE 01105 01106 /* method: msgq_lock of class fawkes::Laser720Interface */ 01107 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_lock00 01108 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_lock00(lua_State* tolua_S) 01109 { 01110 #ifndef TOLUA_RELEASE 01111 tolua_Error tolua_err; 01112 if ( 01113 !tolua_isusertype(tolua_S,1,"fawkes::Laser720Interface",0,&tolua_err) || 01114 !tolua_isnoobj(tolua_S,2,&tolua_err) 01115 ) 01116 goto tolua_lerror; 01117 else 01118 #endif 01119 { 01120 fawkes::Laser720Interface* self = (fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 01121 #ifndef TOLUA_RELEASE 01122 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_lock'", NULL); 01123 #endif 01124 { 01125 self->msgq_lock(); 01126 } 01127 } 01128 return 0; 01129 #ifndef TOLUA_RELEASE 01130 tolua_lerror: 01131 tolua_error(tolua_S,"#ferror in function 'msgq_lock'.",&tolua_err); 01132 return 0; 01133 #endif 01134 } 01135 #endif //#ifndef TOLUA_DISABLE 01136 01137 /* method: msgq_try_lock of class fawkes::Laser720Interface */ 01138 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_try_lock00 01139 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_try_lock00(lua_State* tolua_S) 01140 { 01141 #ifndef TOLUA_RELEASE 01142 tolua_Error tolua_err; 01143 if ( 01144 !tolua_isusertype(tolua_S,1,"fawkes::Laser720Interface",0,&tolua_err) || 01145 !tolua_isnoobj(tolua_S,2,&tolua_err) 01146 ) 01147 goto tolua_lerror; 01148 else 01149 #endif 01150 { 01151 fawkes::Laser720Interface* self = (fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 01152 #ifndef TOLUA_RELEASE 01153 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_try_lock'", NULL); 01154 #endif 01155 { 01156 bool tolua_ret = (bool) self->msgq_try_lock(); 01157 tolua_pushboolean(tolua_S,(bool)tolua_ret); 01158 } 01159 } 01160 return 1; 01161 #ifndef TOLUA_RELEASE 01162 tolua_lerror: 01163 tolua_error(tolua_S,"#ferror in function 'msgq_try_lock'.",&tolua_err); 01164 return 0; 01165 #endif 01166 } 01167 #endif //#ifndef TOLUA_DISABLE 01168 01169 /* method: msgq_unlock of class fawkes::Laser720Interface */ 01170 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_unlock00 01171 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_unlock00(lua_State* tolua_S) 01172 { 01173 #ifndef TOLUA_RELEASE 01174 tolua_Error tolua_err; 01175 if ( 01176 !tolua_isusertype(tolua_S,1,"fawkes::Laser720Interface",0,&tolua_err) || 01177 !tolua_isnoobj(tolua_S,2,&tolua_err) 01178 ) 01179 goto tolua_lerror; 01180 else 01181 #endif 01182 { 01183 fawkes::Laser720Interface* self = (fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 01184 #ifndef TOLUA_RELEASE 01185 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_unlock'", NULL); 01186 #endif 01187 { 01188 self->msgq_unlock(); 01189 } 01190 } 01191 return 0; 01192 #ifndef TOLUA_RELEASE 01193 tolua_lerror: 01194 tolua_error(tolua_S,"#ferror in function 'msgq_unlock'.",&tolua_err); 01195 return 0; 01196 #endif 01197 } 01198 #endif //#ifndef TOLUA_DISABLE 01199 01200 /* method: msgq_pop of class fawkes::Laser720Interface */ 01201 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_pop00 01202 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_pop00(lua_State* tolua_S) 01203 { 01204 #ifndef TOLUA_RELEASE 01205 tolua_Error tolua_err; 01206 if ( 01207 !tolua_isusertype(tolua_S,1,"fawkes::Laser720Interface",0,&tolua_err) || 01208 !tolua_isnoobj(tolua_S,2,&tolua_err) 01209 ) 01210 goto tolua_lerror; 01211 else 01212 #endif 01213 { 01214 fawkes::Laser720Interface* self = (fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 01215 #ifndef TOLUA_RELEASE 01216 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_pop'", NULL); 01217 #endif 01218 { 01219 self->msgq_pop(); 01220 } 01221 } 01222 return 0; 01223 #ifndef TOLUA_RELEASE 01224 tolua_lerror: 01225 tolua_error(tolua_S,"#ferror in function 'msgq_pop'.",&tolua_err); 01226 return 0; 01227 #endif 01228 } 01229 #endif //#ifndef TOLUA_DISABLE 01230 01231 /* method: msgq_first of class fawkes::Laser720Interface */ 01232 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_first00 01233 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_first00(lua_State* tolua_S) 01234 { 01235 #ifndef TOLUA_RELEASE 01236 tolua_Error tolua_err; 01237 if ( 01238 !tolua_isusertype(tolua_S,1,"fawkes::Laser720Interface",0,&tolua_err) || 01239 !tolua_isnoobj(tolua_S,2,&tolua_err) 01240 ) 01241 goto tolua_lerror; 01242 else 01243 #endif 01244 { 01245 fawkes::Laser720Interface* self = (fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 01246 #ifndef TOLUA_RELEASE 01247 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_first'", NULL); 01248 #endif 01249 { 01250 Message* tolua_ret = (Message*) self->msgq_first(); 01251 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Message"); 01252 } 01253 } 01254 return 1; 01255 #ifndef TOLUA_RELEASE 01256 tolua_lerror: 01257 tolua_error(tolua_S,"#ferror in function 'msgq_first'.",&tolua_err); 01258 return 0; 01259 #endif 01260 } 01261 #endif //#ifndef TOLUA_DISABLE 01262 01263 /* method: msgq_empty of class fawkes::Laser720Interface */ 01264 #ifndef TOLUA_DISABLE_tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_empty00 01265 static int tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_empty00(lua_State* tolua_S) 01266 { 01267 #ifndef TOLUA_RELEASE 01268 tolua_Error tolua_err; 01269 if ( 01270 !tolua_isusertype(tolua_S,1,"fawkes::Laser720Interface",0,&tolua_err) || 01271 !tolua_isnoobj(tolua_S,2,&tolua_err) 01272 ) 01273 goto tolua_lerror; 01274 else 01275 #endif 01276 { 01277 fawkes::Laser720Interface* self = (fawkes::Laser720Interface*) tolua_tousertype(tolua_S,1,0); 01278 #ifndef TOLUA_RELEASE 01279 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_empty'", NULL); 01280 #endif 01281 { 01282 bool tolua_ret = (bool) self->msgq_empty(); 01283 tolua_pushboolean(tolua_S,(bool)tolua_ret); 01284 } 01285 } 01286 return 1; 01287 #ifndef TOLUA_RELEASE 01288 tolua_lerror: 01289 tolua_error(tolua_S,"#ferror in function 'msgq_empty'.",&tolua_err); 01290 return 0; 01291 #endif 01292 } 01293 #endif //#ifndef TOLUA_DISABLE 01294 01295 /* Open function */ 01296 TOLUA_API int tolua_interfaces_Laser720Interface_open (lua_State* tolua_S) 01297 { 01298 tolua_open(tolua_S); 01299 tolua_reg_types(tolua_S); 01300 tolua_module(tolua_S,NULL,0); 01301 tolua_beginmodule(tolua_S,NULL); 01302 tolua_module(tolua_S,"fawkes",0); 01303 tolua_beginmodule(tolua_S,"fawkes"); 01304 tolua_cclass(tolua_S,"Laser720Interface","fawkes::Laser720Interface","Interface",NULL); 01305 tolua_beginmodule(tolua_S,"Laser720Interface"); 01306 tolua_function(tolua_S,"frame",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_frame00); 01307 tolua_function(tolua_S,"set_frame",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_set_frame00); 01308 tolua_function(tolua_S,"maxlenof_frame",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_maxlenof_frame00); 01309 tolua_function(tolua_S,"distances",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_distances00); 01310 tolua_function(tolua_S,"set_distances",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_set_distances00); 01311 tolua_function(tolua_S,"maxlenof_distances",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_maxlenof_distances00); 01312 tolua_function(tolua_S,"is_clockwise_angle",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_is_clockwise_angle00); 01313 tolua_function(tolua_S,"set_clockwise_angle",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_set_clockwise_angle00); 01314 tolua_function(tolua_S,"maxlenof_clockwise_angle",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_maxlenof_clockwise_angle00); 01315 tolua_function(tolua_S,"oftype",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_oftype00); 01316 tolua_function(tolua_S,"datachunk",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_datachunk00); 01317 tolua_function(tolua_S,"datasize",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_datasize00); 01318 tolua_function(tolua_S,"type",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_type00); 01319 tolua_function(tolua_S,"id",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_id00); 01320 tolua_function(tolua_S,"uid",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_uid00); 01321 tolua_function(tolua_S,"serial",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_serial00); 01322 tolua_function(tolua_S,"mem_serial",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_mem_serial00); 01323 tolua_function(tolua_S,".eq",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface__eq00); 01324 tolua_function(tolua_S,"hash",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_hash00); 01325 tolua_function(tolua_S,"hash_size",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_hash_size00); 01326 tolua_function(tolua_S,"hash_printable",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_hash_printable00); 01327 tolua_function(tolua_S,"is_writer",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_is_writer00); 01328 tolua_function(tolua_S,"set_from_chunk",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_set_from_chunk00); 01329 tolua_function(tolua_S,"create_message",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_create_message00); 01330 tolua_function(tolua_S,"read",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_read00); 01331 tolua_function(tolua_S,"write",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_write00); 01332 tolua_function(tolua_S,"has_writer",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_has_writer00); 01333 tolua_function(tolua_S,"num_readers",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_num_readers00); 01334 tolua_function(tolua_S,"msgq_enqueue_copy",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_enqueue_copy00); 01335 tolua_function(tolua_S,"msgq_remove",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_remove00); 01336 tolua_function(tolua_S,"msgq_remove",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_remove01); 01337 tolua_function(tolua_S,"msgq_size",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_size00); 01338 tolua_function(tolua_S,"msgq_flush",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_flush00); 01339 tolua_function(tolua_S,"msgq_lock",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_lock00); 01340 tolua_function(tolua_S,"msgq_try_lock",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_try_lock00); 01341 tolua_function(tolua_S,"msgq_unlock",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_unlock00); 01342 tolua_function(tolua_S,"msgq_pop",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_pop00); 01343 tolua_function(tolua_S,"msgq_first",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_first00); 01344 tolua_function(tolua_S,"msgq_empty",tolua_interfaces_Laser720Interface_fawkes_Laser720Interface_msgq_empty00); 01345 tolua_endmodule(tolua_S); 01346 tolua_endmodule(tolua_S); 01347 tolua_endmodule(tolua_S); 01348 return 1; 01349 } 01350 01351 01352 extern "C" { 01353 #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501 01354 TOLUA_API int luaopen_interfaces_Laser720Interface (lua_State* tolua_S) { 01355 return tolua_interfaces_Laser720Interface_open(tolua_S); 01356 }; 01357 #endif 01358 } 01359 01360