Fawkes API Fawkes Development Version
|
00001 /* 00002 ** Lua binding: interfaces_Position2DTrackInterface 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_Position2DTrackInterface_open (lua_State* tolua_S); 00028 00029 #include <interfaces/Position2DTrackInterface.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::Position2DTrackInterface"); 00036 tolua_usertype(tolua_S,"Message"); 00037 tolua_usertype(tolua_S,"Interface"); 00038 } 00039 00040 /* method: track_x_positions of class fawkes::Position2DTrackInterface */ 00041 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_track_x_positions00 00042 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_track_x_positions00(lua_State* tolua_S) 00043 { 00044 #ifndef TOLUA_RELEASE 00045 tolua_Error tolua_err; 00046 if ( 00047 !tolua_isusertype(tolua_S,1,"fawkes::Position2DTrackInterface",0,&tolua_err) || 00048 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 00049 !tolua_isnoobj(tolua_S,3,&tolua_err) 00050 ) 00051 goto tolua_lerror; 00052 else 00053 #endif 00054 { 00055 fawkes::Position2DTrackInterface* self = (fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00056 int index = ((int) tolua_tonumber(tolua_S,2,0)); 00057 #ifndef TOLUA_RELEASE 00058 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'track_x_positions'", NULL); 00059 #endif 00060 { 00061 float tolua_ret = (float) self->track_x_positions(index); 00062 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00063 } 00064 } 00065 return 1; 00066 #ifndef TOLUA_RELEASE 00067 tolua_lerror: 00068 tolua_error(tolua_S,"#ferror in function 'track_x_positions'.",&tolua_err); 00069 return 0; 00070 #endif 00071 } 00072 #endif //#ifndef TOLUA_DISABLE 00073 00074 /* method: set_track_x_positions of class fawkes::Position2DTrackInterface */ 00075 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_set_track_x_positions00 00076 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_set_track_x_positions00(lua_State* tolua_S) 00077 { 00078 #ifndef TOLUA_RELEASE 00079 tolua_Error tolua_err; 00080 if ( 00081 !tolua_isusertype(tolua_S,1,"fawkes::Position2DTrackInterface",0,&tolua_err) || 00082 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 00083 !tolua_isnumber(tolua_S,3,0,&tolua_err) || 00084 !tolua_isnoobj(tolua_S,4,&tolua_err) 00085 ) 00086 goto tolua_lerror; 00087 else 00088 #endif 00089 { 00090 fawkes::Position2DTrackInterface* self = (fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00091 unsigned int index = ((unsigned int) tolua_tonumber(tolua_S,2,0)); 00092 const float new_track_x_positions = ((const float) tolua_tonumber(tolua_S,3,0)); 00093 #ifndef TOLUA_RELEASE 00094 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_track_x_positions'", NULL); 00095 #endif 00096 { 00097 self->set_track_x_positions(index,new_track_x_positions); 00098 } 00099 } 00100 return 0; 00101 #ifndef TOLUA_RELEASE 00102 tolua_lerror: 00103 tolua_error(tolua_S,"#ferror in function 'set_track_x_positions'.",&tolua_err); 00104 return 0; 00105 #endif 00106 } 00107 #endif //#ifndef TOLUA_DISABLE 00108 00109 /* method: maxlenof_track_x_positions of class fawkes::Position2DTrackInterface */ 00110 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_maxlenof_track_x_positions00 00111 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_maxlenof_track_x_positions00(lua_State* tolua_S) 00112 { 00113 #ifndef TOLUA_RELEASE 00114 tolua_Error tolua_err; 00115 if ( 00116 !tolua_isusertype(tolua_S,1,"const fawkes::Position2DTrackInterface",0,&tolua_err) || 00117 !tolua_isnoobj(tolua_S,2,&tolua_err) 00118 ) 00119 goto tolua_lerror; 00120 else 00121 #endif 00122 { 00123 const fawkes::Position2DTrackInterface* self = (const fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00124 #ifndef TOLUA_RELEASE 00125 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_track_x_positions'", NULL); 00126 #endif 00127 { 00128 int tolua_ret = (int) self->maxlenof_track_x_positions(); 00129 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00130 } 00131 } 00132 return 1; 00133 #ifndef TOLUA_RELEASE 00134 tolua_lerror: 00135 tolua_error(tolua_S,"#ferror in function 'maxlenof_track_x_positions'.",&tolua_err); 00136 return 0; 00137 #endif 00138 } 00139 #endif //#ifndef TOLUA_DISABLE 00140 00141 /* method: track_y_positions of class fawkes::Position2DTrackInterface */ 00142 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_track_y_positions00 00143 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_track_y_positions00(lua_State* tolua_S) 00144 { 00145 #ifndef TOLUA_RELEASE 00146 tolua_Error tolua_err; 00147 if ( 00148 !tolua_isusertype(tolua_S,1,"fawkes::Position2DTrackInterface",0,&tolua_err) || 00149 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 00150 !tolua_isnoobj(tolua_S,3,&tolua_err) 00151 ) 00152 goto tolua_lerror; 00153 else 00154 #endif 00155 { 00156 fawkes::Position2DTrackInterface* self = (fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00157 int index = ((int) tolua_tonumber(tolua_S,2,0)); 00158 #ifndef TOLUA_RELEASE 00159 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'track_y_positions'", NULL); 00160 #endif 00161 { 00162 float tolua_ret = (float) self->track_y_positions(index); 00163 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00164 } 00165 } 00166 return 1; 00167 #ifndef TOLUA_RELEASE 00168 tolua_lerror: 00169 tolua_error(tolua_S,"#ferror in function 'track_y_positions'.",&tolua_err); 00170 return 0; 00171 #endif 00172 } 00173 #endif //#ifndef TOLUA_DISABLE 00174 00175 /* method: set_track_y_positions of class fawkes::Position2DTrackInterface */ 00176 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_set_track_y_positions00 00177 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_set_track_y_positions00(lua_State* tolua_S) 00178 { 00179 #ifndef TOLUA_RELEASE 00180 tolua_Error tolua_err; 00181 if ( 00182 !tolua_isusertype(tolua_S,1,"fawkes::Position2DTrackInterface",0,&tolua_err) || 00183 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 00184 !tolua_isnumber(tolua_S,3,0,&tolua_err) || 00185 !tolua_isnoobj(tolua_S,4,&tolua_err) 00186 ) 00187 goto tolua_lerror; 00188 else 00189 #endif 00190 { 00191 fawkes::Position2DTrackInterface* self = (fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00192 unsigned int index = ((unsigned int) tolua_tonumber(tolua_S,2,0)); 00193 const float new_track_y_positions = ((const float) tolua_tonumber(tolua_S,3,0)); 00194 #ifndef TOLUA_RELEASE 00195 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_track_y_positions'", NULL); 00196 #endif 00197 { 00198 self->set_track_y_positions(index,new_track_y_positions); 00199 } 00200 } 00201 return 0; 00202 #ifndef TOLUA_RELEASE 00203 tolua_lerror: 00204 tolua_error(tolua_S,"#ferror in function 'set_track_y_positions'.",&tolua_err); 00205 return 0; 00206 #endif 00207 } 00208 #endif //#ifndef TOLUA_DISABLE 00209 00210 /* method: maxlenof_track_y_positions of class fawkes::Position2DTrackInterface */ 00211 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_maxlenof_track_y_positions00 00212 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_maxlenof_track_y_positions00(lua_State* tolua_S) 00213 { 00214 #ifndef TOLUA_RELEASE 00215 tolua_Error tolua_err; 00216 if ( 00217 !tolua_isusertype(tolua_S,1,"const fawkes::Position2DTrackInterface",0,&tolua_err) || 00218 !tolua_isnoobj(tolua_S,2,&tolua_err) 00219 ) 00220 goto tolua_lerror; 00221 else 00222 #endif 00223 { 00224 const fawkes::Position2DTrackInterface* self = (const fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00225 #ifndef TOLUA_RELEASE 00226 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_track_y_positions'", NULL); 00227 #endif 00228 { 00229 int tolua_ret = (int) self->maxlenof_track_y_positions(); 00230 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00231 } 00232 } 00233 return 1; 00234 #ifndef TOLUA_RELEASE 00235 tolua_lerror: 00236 tolua_error(tolua_S,"#ferror in function 'maxlenof_track_y_positions'.",&tolua_err); 00237 return 0; 00238 #endif 00239 } 00240 #endif //#ifndef TOLUA_DISABLE 00241 00242 /* method: track_timestamps of class fawkes::Position2DTrackInterface */ 00243 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_track_timestamps00 00244 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_track_timestamps00(lua_State* tolua_S) 00245 { 00246 #ifndef TOLUA_RELEASE 00247 tolua_Error tolua_err; 00248 if ( 00249 !tolua_isusertype(tolua_S,1,"fawkes::Position2DTrackInterface",0,&tolua_err) || 00250 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 00251 !tolua_isnoobj(tolua_S,3,&tolua_err) 00252 ) 00253 goto tolua_lerror; 00254 else 00255 #endif 00256 { 00257 fawkes::Position2DTrackInterface* self = (fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00258 int index = ((int) tolua_tonumber(tolua_S,2,0)); 00259 #ifndef TOLUA_RELEASE 00260 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'track_timestamps'", NULL); 00261 #endif 00262 { 00263 int tolua_ret = (int) self->track_timestamps(index); 00264 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00265 } 00266 } 00267 return 1; 00268 #ifndef TOLUA_RELEASE 00269 tolua_lerror: 00270 tolua_error(tolua_S,"#ferror in function 'track_timestamps'.",&tolua_err); 00271 return 0; 00272 #endif 00273 } 00274 #endif //#ifndef TOLUA_DISABLE 00275 00276 /* method: set_track_timestamps of class fawkes::Position2DTrackInterface */ 00277 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_set_track_timestamps00 00278 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_set_track_timestamps00(lua_State* tolua_S) 00279 { 00280 #ifndef TOLUA_RELEASE 00281 tolua_Error tolua_err; 00282 if ( 00283 !tolua_isusertype(tolua_S,1,"fawkes::Position2DTrackInterface",0,&tolua_err) || 00284 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 00285 !tolua_isnumber(tolua_S,3,0,&tolua_err) || 00286 !tolua_isnoobj(tolua_S,4,&tolua_err) 00287 ) 00288 goto tolua_lerror; 00289 else 00290 #endif 00291 { 00292 fawkes::Position2DTrackInterface* self = (fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00293 unsigned int index = ((unsigned int) tolua_tonumber(tolua_S,2,0)); 00294 const int new_track_timestamps = ((const int) tolua_tonumber(tolua_S,3,0)); 00295 #ifndef TOLUA_RELEASE 00296 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_track_timestamps'", NULL); 00297 #endif 00298 { 00299 self->set_track_timestamps(index,new_track_timestamps); 00300 } 00301 } 00302 return 0; 00303 #ifndef TOLUA_RELEASE 00304 tolua_lerror: 00305 tolua_error(tolua_S,"#ferror in function 'set_track_timestamps'.",&tolua_err); 00306 return 0; 00307 #endif 00308 } 00309 #endif //#ifndef TOLUA_DISABLE 00310 00311 /* method: maxlenof_track_timestamps of class fawkes::Position2DTrackInterface */ 00312 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_maxlenof_track_timestamps00 00313 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_maxlenof_track_timestamps00(lua_State* tolua_S) 00314 { 00315 #ifndef TOLUA_RELEASE 00316 tolua_Error tolua_err; 00317 if ( 00318 !tolua_isusertype(tolua_S,1,"const fawkes::Position2DTrackInterface",0,&tolua_err) || 00319 !tolua_isnoobj(tolua_S,2,&tolua_err) 00320 ) 00321 goto tolua_lerror; 00322 else 00323 #endif 00324 { 00325 const fawkes::Position2DTrackInterface* self = (const fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00326 #ifndef TOLUA_RELEASE 00327 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_track_timestamps'", NULL); 00328 #endif 00329 { 00330 int tolua_ret = (int) self->maxlenof_track_timestamps(); 00331 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00332 } 00333 } 00334 return 1; 00335 #ifndef TOLUA_RELEASE 00336 tolua_lerror: 00337 tolua_error(tolua_S,"#ferror in function 'maxlenof_track_timestamps'.",&tolua_err); 00338 return 0; 00339 #endif 00340 } 00341 #endif //#ifndef TOLUA_DISABLE 00342 00343 /* method: is_valid of class fawkes::Position2DTrackInterface */ 00344 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_is_valid00 00345 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_is_valid00(lua_State* tolua_S) 00346 { 00347 #ifndef TOLUA_RELEASE 00348 tolua_Error tolua_err; 00349 if ( 00350 !tolua_isusertype(tolua_S,1,"fawkes::Position2DTrackInterface",0,&tolua_err) || 00351 !tolua_isnoobj(tolua_S,2,&tolua_err) 00352 ) 00353 goto tolua_lerror; 00354 else 00355 #endif 00356 { 00357 fawkes::Position2DTrackInterface* self = (fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00358 #ifndef TOLUA_RELEASE 00359 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'is_valid'", NULL); 00360 #endif 00361 { 00362 bool tolua_ret = (bool) self->is_valid(); 00363 tolua_pushboolean(tolua_S,(bool)tolua_ret); 00364 } 00365 } 00366 return 1; 00367 #ifndef TOLUA_RELEASE 00368 tolua_lerror: 00369 tolua_error(tolua_S,"#ferror in function 'is_valid'.",&tolua_err); 00370 return 0; 00371 #endif 00372 } 00373 #endif //#ifndef TOLUA_DISABLE 00374 00375 /* method: set_valid of class fawkes::Position2DTrackInterface */ 00376 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_set_valid00 00377 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_set_valid00(lua_State* tolua_S) 00378 { 00379 #ifndef TOLUA_RELEASE 00380 tolua_Error tolua_err; 00381 if ( 00382 !tolua_isusertype(tolua_S,1,"fawkes::Position2DTrackInterface",0,&tolua_err) || 00383 !tolua_isboolean(tolua_S,2,0,&tolua_err) || 00384 !tolua_isnoobj(tolua_S,3,&tolua_err) 00385 ) 00386 goto tolua_lerror; 00387 else 00388 #endif 00389 { 00390 fawkes::Position2DTrackInterface* self = (fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00391 const bool new_valid = ((const bool) tolua_toboolean(tolua_S,2,0)); 00392 #ifndef TOLUA_RELEASE 00393 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_valid'", NULL); 00394 #endif 00395 { 00396 self->set_valid(new_valid); 00397 } 00398 } 00399 return 0; 00400 #ifndef TOLUA_RELEASE 00401 tolua_lerror: 00402 tolua_error(tolua_S,"#ferror in function 'set_valid'.",&tolua_err); 00403 return 0; 00404 #endif 00405 } 00406 #endif //#ifndef TOLUA_DISABLE 00407 00408 /* method: maxlenof_valid of class fawkes::Position2DTrackInterface */ 00409 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_maxlenof_valid00 00410 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_maxlenof_valid00(lua_State* tolua_S) 00411 { 00412 #ifndef TOLUA_RELEASE 00413 tolua_Error tolua_err; 00414 if ( 00415 !tolua_isusertype(tolua_S,1,"const fawkes::Position2DTrackInterface",0,&tolua_err) || 00416 !tolua_isnoobj(tolua_S,2,&tolua_err) 00417 ) 00418 goto tolua_lerror; 00419 else 00420 #endif 00421 { 00422 const fawkes::Position2DTrackInterface* self = (const fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00423 #ifndef TOLUA_RELEASE 00424 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_valid'", NULL); 00425 #endif 00426 { 00427 int tolua_ret = (int) self->maxlenof_valid(); 00428 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00429 } 00430 } 00431 return 1; 00432 #ifndef TOLUA_RELEASE 00433 tolua_lerror: 00434 tolua_error(tolua_S,"#ferror in function 'maxlenof_valid'.",&tolua_err); 00435 return 0; 00436 #endif 00437 } 00438 #endif //#ifndef TOLUA_DISABLE 00439 00440 /* method: length of class fawkes::Position2DTrackInterface */ 00441 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_length00 00442 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_length00(lua_State* tolua_S) 00443 { 00444 #ifndef TOLUA_RELEASE 00445 tolua_Error tolua_err; 00446 if ( 00447 !tolua_isusertype(tolua_S,1,"fawkes::Position2DTrackInterface",0,&tolua_err) || 00448 !tolua_isnoobj(tolua_S,2,&tolua_err) 00449 ) 00450 goto tolua_lerror; 00451 else 00452 #endif 00453 { 00454 fawkes::Position2DTrackInterface* self = (fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00455 #ifndef TOLUA_RELEASE 00456 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'length'", NULL); 00457 #endif 00458 { 00459 unsigned int tolua_ret = (unsigned int) self->length(); 00460 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00461 } 00462 } 00463 return 1; 00464 #ifndef TOLUA_RELEASE 00465 tolua_lerror: 00466 tolua_error(tolua_S,"#ferror in function 'length'.",&tolua_err); 00467 return 0; 00468 #endif 00469 } 00470 #endif //#ifndef TOLUA_DISABLE 00471 00472 /* method: set_length of class fawkes::Position2DTrackInterface */ 00473 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_set_length00 00474 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_set_length00(lua_State* tolua_S) 00475 { 00476 #ifndef TOLUA_RELEASE 00477 tolua_Error tolua_err; 00478 if ( 00479 !tolua_isusertype(tolua_S,1,"fawkes::Position2DTrackInterface",0,&tolua_err) || 00480 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 00481 !tolua_isnoobj(tolua_S,3,&tolua_err) 00482 ) 00483 goto tolua_lerror; 00484 else 00485 #endif 00486 { 00487 fawkes::Position2DTrackInterface* self = (fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00488 unsigned const int new_length = ((unsigned const int) tolua_tonumber(tolua_S,2,0)); 00489 #ifndef TOLUA_RELEASE 00490 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_length'", NULL); 00491 #endif 00492 { 00493 self->set_length(new_length); 00494 } 00495 } 00496 return 0; 00497 #ifndef TOLUA_RELEASE 00498 tolua_lerror: 00499 tolua_error(tolua_S,"#ferror in function 'set_length'.",&tolua_err); 00500 return 0; 00501 #endif 00502 } 00503 #endif //#ifndef TOLUA_DISABLE 00504 00505 /* method: maxlenof_length of class fawkes::Position2DTrackInterface */ 00506 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_maxlenof_length00 00507 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_maxlenof_length00(lua_State* tolua_S) 00508 { 00509 #ifndef TOLUA_RELEASE 00510 tolua_Error tolua_err; 00511 if ( 00512 !tolua_isusertype(tolua_S,1,"const fawkes::Position2DTrackInterface",0,&tolua_err) || 00513 !tolua_isnoobj(tolua_S,2,&tolua_err) 00514 ) 00515 goto tolua_lerror; 00516 else 00517 #endif 00518 { 00519 const fawkes::Position2DTrackInterface* self = (const fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00520 #ifndef TOLUA_RELEASE 00521 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_length'", NULL); 00522 #endif 00523 { 00524 int tolua_ret = (int) self->maxlenof_length(); 00525 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00526 } 00527 } 00528 return 1; 00529 #ifndef TOLUA_RELEASE 00530 tolua_lerror: 00531 tolua_error(tolua_S,"#ferror in function 'maxlenof_length'.",&tolua_err); 00532 return 0; 00533 #endif 00534 } 00535 #endif //#ifndef TOLUA_DISABLE 00536 00537 /* method: track_id of class fawkes::Position2DTrackInterface */ 00538 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_track_id00 00539 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_track_id00(lua_State* tolua_S) 00540 { 00541 #ifndef TOLUA_RELEASE 00542 tolua_Error tolua_err; 00543 if ( 00544 !tolua_isusertype(tolua_S,1,"fawkes::Position2DTrackInterface",0,&tolua_err) || 00545 !tolua_isnoobj(tolua_S,2,&tolua_err) 00546 ) 00547 goto tolua_lerror; 00548 else 00549 #endif 00550 { 00551 fawkes::Position2DTrackInterface* self = (fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00552 #ifndef TOLUA_RELEASE 00553 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'track_id'", NULL); 00554 #endif 00555 { 00556 unsigned int tolua_ret = (unsigned int) self->track_id(); 00557 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00558 } 00559 } 00560 return 1; 00561 #ifndef TOLUA_RELEASE 00562 tolua_lerror: 00563 tolua_error(tolua_S,"#ferror in function 'track_id'.",&tolua_err); 00564 return 0; 00565 #endif 00566 } 00567 #endif //#ifndef TOLUA_DISABLE 00568 00569 /* method: set_track_id of class fawkes::Position2DTrackInterface */ 00570 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_set_track_id00 00571 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_set_track_id00(lua_State* tolua_S) 00572 { 00573 #ifndef TOLUA_RELEASE 00574 tolua_Error tolua_err; 00575 if ( 00576 !tolua_isusertype(tolua_S,1,"fawkes::Position2DTrackInterface",0,&tolua_err) || 00577 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 00578 !tolua_isnoobj(tolua_S,3,&tolua_err) 00579 ) 00580 goto tolua_lerror; 00581 else 00582 #endif 00583 { 00584 fawkes::Position2DTrackInterface* self = (fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00585 unsigned const int new_track_id = ((unsigned const int) tolua_tonumber(tolua_S,2,0)); 00586 #ifndef TOLUA_RELEASE 00587 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_track_id'", NULL); 00588 #endif 00589 { 00590 self->set_track_id(new_track_id); 00591 } 00592 } 00593 return 0; 00594 #ifndef TOLUA_RELEASE 00595 tolua_lerror: 00596 tolua_error(tolua_S,"#ferror in function 'set_track_id'.",&tolua_err); 00597 return 0; 00598 #endif 00599 } 00600 #endif //#ifndef TOLUA_DISABLE 00601 00602 /* method: maxlenof_track_id of class fawkes::Position2DTrackInterface */ 00603 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_maxlenof_track_id00 00604 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_maxlenof_track_id00(lua_State* tolua_S) 00605 { 00606 #ifndef TOLUA_RELEASE 00607 tolua_Error tolua_err; 00608 if ( 00609 !tolua_isusertype(tolua_S,1,"const fawkes::Position2DTrackInterface",0,&tolua_err) || 00610 !tolua_isnoobj(tolua_S,2,&tolua_err) 00611 ) 00612 goto tolua_lerror; 00613 else 00614 #endif 00615 { 00616 const fawkes::Position2DTrackInterface* self = (const fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00617 #ifndef TOLUA_RELEASE 00618 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxlenof_track_id'", NULL); 00619 #endif 00620 { 00621 int tolua_ret = (int) self->maxlenof_track_id(); 00622 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00623 } 00624 } 00625 return 1; 00626 #ifndef TOLUA_RELEASE 00627 tolua_lerror: 00628 tolua_error(tolua_S,"#ferror in function 'maxlenof_track_id'.",&tolua_err); 00629 return 0; 00630 #endif 00631 } 00632 #endif //#ifndef TOLUA_DISABLE 00633 00634 /* method: oftype of class fawkes::Position2DTrackInterface */ 00635 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_oftype00 00636 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_oftype00(lua_State* tolua_S) 00637 { 00638 #ifndef TOLUA_RELEASE 00639 tolua_Error tolua_err; 00640 if ( 00641 !tolua_isusertype(tolua_S,1,"const fawkes::Position2DTrackInterface",0,&tolua_err) || 00642 !tolua_isstring(tolua_S,2,0,&tolua_err) || 00643 !tolua_isnoobj(tolua_S,3,&tolua_err) 00644 ) 00645 goto tolua_lerror; 00646 else 00647 #endif 00648 { 00649 const fawkes::Position2DTrackInterface* self = (const fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00650 const char* interface_type = ((const char*) tolua_tostring(tolua_S,2,0)); 00651 #ifndef TOLUA_RELEASE 00652 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'oftype'", NULL); 00653 #endif 00654 { 00655 bool tolua_ret = (bool) self->oftype(interface_type); 00656 tolua_pushboolean(tolua_S,(bool)tolua_ret); 00657 } 00658 } 00659 return 1; 00660 #ifndef TOLUA_RELEASE 00661 tolua_lerror: 00662 tolua_error(tolua_S,"#ferror in function 'oftype'.",&tolua_err); 00663 return 0; 00664 #endif 00665 } 00666 #endif //#ifndef TOLUA_DISABLE 00667 00668 /* method: datachunk of class fawkes::Position2DTrackInterface */ 00669 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_datachunk00 00670 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_datachunk00(lua_State* tolua_S) 00671 { 00672 #ifndef TOLUA_RELEASE 00673 tolua_Error tolua_err; 00674 if ( 00675 !tolua_isusertype(tolua_S,1,"const fawkes::Position2DTrackInterface",0,&tolua_err) || 00676 !tolua_isnoobj(tolua_S,2,&tolua_err) 00677 ) 00678 goto tolua_lerror; 00679 else 00680 #endif 00681 { 00682 const fawkes::Position2DTrackInterface* self = (const fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00683 #ifndef TOLUA_RELEASE 00684 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'datachunk'", NULL); 00685 #endif 00686 { 00687 const void* tolua_ret = (const void*) self->datachunk(); 00688 tolua_pushuserdata(tolua_S,(void*)tolua_ret); 00689 } 00690 } 00691 return 1; 00692 #ifndef TOLUA_RELEASE 00693 tolua_lerror: 00694 tolua_error(tolua_S,"#ferror in function 'datachunk'.",&tolua_err); 00695 return 0; 00696 #endif 00697 } 00698 #endif //#ifndef TOLUA_DISABLE 00699 00700 /* method: datasize of class fawkes::Position2DTrackInterface */ 00701 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_datasize00 00702 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_datasize00(lua_State* tolua_S) 00703 { 00704 #ifndef TOLUA_RELEASE 00705 tolua_Error tolua_err; 00706 if ( 00707 !tolua_isusertype(tolua_S,1,"const fawkes::Position2DTrackInterface",0,&tolua_err) || 00708 !tolua_isnoobj(tolua_S,2,&tolua_err) 00709 ) 00710 goto tolua_lerror; 00711 else 00712 #endif 00713 { 00714 const fawkes::Position2DTrackInterface* self = (const fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00715 #ifndef TOLUA_RELEASE 00716 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'datasize'", NULL); 00717 #endif 00718 { 00719 unsigned int tolua_ret = (unsigned int) self->datasize(); 00720 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00721 } 00722 } 00723 return 1; 00724 #ifndef TOLUA_RELEASE 00725 tolua_lerror: 00726 tolua_error(tolua_S,"#ferror in function 'datasize'.",&tolua_err); 00727 return 0; 00728 #endif 00729 } 00730 #endif //#ifndef TOLUA_DISABLE 00731 00732 /* method: type of class fawkes::Position2DTrackInterface */ 00733 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_type00 00734 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_type00(lua_State* tolua_S) 00735 { 00736 #ifndef TOLUA_RELEASE 00737 tolua_Error tolua_err; 00738 if ( 00739 !tolua_isusertype(tolua_S,1,"const fawkes::Position2DTrackInterface",0,&tolua_err) || 00740 !tolua_isnoobj(tolua_S,2,&tolua_err) 00741 ) 00742 goto tolua_lerror; 00743 else 00744 #endif 00745 { 00746 const fawkes::Position2DTrackInterface* self = (const fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00747 #ifndef TOLUA_RELEASE 00748 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'type'", NULL); 00749 #endif 00750 { 00751 const char* tolua_ret = (const char*) self->type(); 00752 tolua_pushstring(tolua_S,(const char*)tolua_ret); 00753 } 00754 } 00755 return 1; 00756 #ifndef TOLUA_RELEASE 00757 tolua_lerror: 00758 tolua_error(tolua_S,"#ferror in function 'type'.",&tolua_err); 00759 return 0; 00760 #endif 00761 } 00762 #endif //#ifndef TOLUA_DISABLE 00763 00764 /* method: id of class fawkes::Position2DTrackInterface */ 00765 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_id00 00766 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_id00(lua_State* tolua_S) 00767 { 00768 #ifndef TOLUA_RELEASE 00769 tolua_Error tolua_err; 00770 if ( 00771 !tolua_isusertype(tolua_S,1,"const fawkes::Position2DTrackInterface",0,&tolua_err) || 00772 !tolua_isnoobj(tolua_S,2,&tolua_err) 00773 ) 00774 goto tolua_lerror; 00775 else 00776 #endif 00777 { 00778 const fawkes::Position2DTrackInterface* self = (const fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00779 #ifndef TOLUA_RELEASE 00780 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'id'", NULL); 00781 #endif 00782 { 00783 const char* tolua_ret = (const char*) self->id(); 00784 tolua_pushstring(tolua_S,(const char*)tolua_ret); 00785 } 00786 } 00787 return 1; 00788 #ifndef TOLUA_RELEASE 00789 tolua_lerror: 00790 tolua_error(tolua_S,"#ferror in function 'id'.",&tolua_err); 00791 return 0; 00792 #endif 00793 } 00794 #endif //#ifndef TOLUA_DISABLE 00795 00796 /* method: uid of class fawkes::Position2DTrackInterface */ 00797 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_uid00 00798 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_uid00(lua_State* tolua_S) 00799 { 00800 #ifndef TOLUA_RELEASE 00801 tolua_Error tolua_err; 00802 if ( 00803 !tolua_isusertype(tolua_S,1,"const fawkes::Position2DTrackInterface",0,&tolua_err) || 00804 !tolua_isnoobj(tolua_S,2,&tolua_err) 00805 ) 00806 goto tolua_lerror; 00807 else 00808 #endif 00809 { 00810 const fawkes::Position2DTrackInterface* self = (const fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00811 #ifndef TOLUA_RELEASE 00812 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'uid'", NULL); 00813 #endif 00814 { 00815 const char* tolua_ret = (const char*) self->uid(); 00816 tolua_pushstring(tolua_S,(const char*)tolua_ret); 00817 } 00818 } 00819 return 1; 00820 #ifndef TOLUA_RELEASE 00821 tolua_lerror: 00822 tolua_error(tolua_S,"#ferror in function 'uid'.",&tolua_err); 00823 return 0; 00824 #endif 00825 } 00826 #endif //#ifndef TOLUA_DISABLE 00827 00828 /* method: serial of class fawkes::Position2DTrackInterface */ 00829 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_serial00 00830 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_serial00(lua_State* tolua_S) 00831 { 00832 #ifndef TOLUA_RELEASE 00833 tolua_Error tolua_err; 00834 if ( 00835 !tolua_isusertype(tolua_S,1,"const fawkes::Position2DTrackInterface",0,&tolua_err) || 00836 !tolua_isnoobj(tolua_S,2,&tolua_err) 00837 ) 00838 goto tolua_lerror; 00839 else 00840 #endif 00841 { 00842 const fawkes::Position2DTrackInterface* self = (const fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00843 #ifndef TOLUA_RELEASE 00844 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'serial'", NULL); 00845 #endif 00846 { 00847 unsigned int tolua_ret = (unsigned int) self->serial(); 00848 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00849 } 00850 } 00851 return 1; 00852 #ifndef TOLUA_RELEASE 00853 tolua_lerror: 00854 tolua_error(tolua_S,"#ferror in function 'serial'.",&tolua_err); 00855 return 0; 00856 #endif 00857 } 00858 #endif //#ifndef TOLUA_DISABLE 00859 00860 /* method: mem_serial of class fawkes::Position2DTrackInterface */ 00861 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_mem_serial00 00862 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_mem_serial00(lua_State* tolua_S) 00863 { 00864 #ifndef TOLUA_RELEASE 00865 tolua_Error tolua_err; 00866 if ( 00867 !tolua_isusertype(tolua_S,1,"const fawkes::Position2DTrackInterface",0,&tolua_err) || 00868 !tolua_isnoobj(tolua_S,2,&tolua_err) 00869 ) 00870 goto tolua_lerror; 00871 else 00872 #endif 00873 { 00874 const fawkes::Position2DTrackInterface* self = (const fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00875 #ifndef TOLUA_RELEASE 00876 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'mem_serial'", NULL); 00877 #endif 00878 { 00879 unsigned int tolua_ret = (unsigned int) self->mem_serial(); 00880 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00881 } 00882 } 00883 return 1; 00884 #ifndef TOLUA_RELEASE 00885 tolua_lerror: 00886 tolua_error(tolua_S,"#ferror in function 'mem_serial'.",&tolua_err); 00887 return 0; 00888 #endif 00889 } 00890 #endif //#ifndef TOLUA_DISABLE 00891 00892 /* method: operator== of class fawkes::Position2DTrackInterface */ 00893 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface__eq00 00894 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface__eq00(lua_State* tolua_S) 00895 { 00896 #ifndef TOLUA_RELEASE 00897 tolua_Error tolua_err; 00898 if ( 00899 !tolua_isusertype(tolua_S,1,"const fawkes::Position2DTrackInterface",0,&tolua_err) || 00900 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Interface",0,&tolua_err)) || 00901 !tolua_isnoobj(tolua_S,3,&tolua_err) 00902 ) 00903 goto tolua_lerror; 00904 else 00905 #endif 00906 { 00907 const fawkes::Position2DTrackInterface* self = (const fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00908 Interface* comp = ((Interface*) tolua_tousertype(tolua_S,2,0)); 00909 #ifndef TOLUA_RELEASE 00910 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL); 00911 #endif 00912 { 00913 bool tolua_ret = (bool) self->operator==(*comp); 00914 tolua_pushboolean(tolua_S,(bool)tolua_ret); 00915 } 00916 } 00917 return 1; 00918 #ifndef TOLUA_RELEASE 00919 tolua_lerror: 00920 tolua_error(tolua_S,"#ferror in function '.eq'.",&tolua_err); 00921 return 0; 00922 #endif 00923 } 00924 #endif //#ifndef TOLUA_DISABLE 00925 00926 /* method: hash of class fawkes::Position2DTrackInterface */ 00927 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_hash00 00928 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_hash00(lua_State* tolua_S) 00929 { 00930 #ifndef TOLUA_RELEASE 00931 tolua_Error tolua_err; 00932 if ( 00933 !tolua_isusertype(tolua_S,1,"const fawkes::Position2DTrackInterface",0,&tolua_err) || 00934 !tolua_isnoobj(tolua_S,2,&tolua_err) 00935 ) 00936 goto tolua_lerror; 00937 else 00938 #endif 00939 { 00940 const fawkes::Position2DTrackInterface* self = (const fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00941 #ifndef TOLUA_RELEASE 00942 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'hash'", NULL); 00943 #endif 00944 { 00945 unsigned const char* tolua_ret = ( unsigned const char*) self->hash(); 00946 tolua_pushstring(tolua_S,(const char*)tolua_ret); 00947 } 00948 } 00949 return 1; 00950 #ifndef TOLUA_RELEASE 00951 tolua_lerror: 00952 tolua_error(tolua_S,"#ferror in function 'hash'.",&tolua_err); 00953 return 0; 00954 #endif 00955 } 00956 #endif //#ifndef TOLUA_DISABLE 00957 00958 /* method: hash_size of class fawkes::Position2DTrackInterface */ 00959 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_hash_size00 00960 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_hash_size00(lua_State* tolua_S) 00961 { 00962 #ifndef TOLUA_RELEASE 00963 tolua_Error tolua_err; 00964 if ( 00965 !tolua_isusertype(tolua_S,1,"const fawkes::Position2DTrackInterface",0,&tolua_err) || 00966 !tolua_isnoobj(tolua_S,2,&tolua_err) 00967 ) 00968 goto tolua_lerror; 00969 else 00970 #endif 00971 { 00972 const fawkes::Position2DTrackInterface* self = (const fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 00973 #ifndef TOLUA_RELEASE 00974 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'hash_size'", NULL); 00975 #endif 00976 { 00977 int tolua_ret = (int) self->hash_size(); 00978 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 00979 } 00980 } 00981 return 1; 00982 #ifndef TOLUA_RELEASE 00983 tolua_lerror: 00984 tolua_error(tolua_S,"#ferror in function 'hash_size'.",&tolua_err); 00985 return 0; 00986 #endif 00987 } 00988 #endif //#ifndef TOLUA_DISABLE 00989 00990 /* method: hash_printable of class fawkes::Position2DTrackInterface */ 00991 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_hash_printable00 00992 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_hash_printable00(lua_State* tolua_S) 00993 { 00994 #ifndef TOLUA_RELEASE 00995 tolua_Error tolua_err; 00996 if ( 00997 !tolua_isusertype(tolua_S,1,"const fawkes::Position2DTrackInterface",0,&tolua_err) || 00998 !tolua_isnoobj(tolua_S,2,&tolua_err) 00999 ) 01000 goto tolua_lerror; 01001 else 01002 #endif 01003 { 01004 const fawkes::Position2DTrackInterface* self = (const fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 01005 #ifndef TOLUA_RELEASE 01006 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'hash_printable'", NULL); 01007 #endif 01008 { 01009 const char* tolua_ret = (const char*) self->hash_printable(); 01010 tolua_pushstring(tolua_S,(const char*)tolua_ret); 01011 } 01012 } 01013 return 1; 01014 #ifndef TOLUA_RELEASE 01015 tolua_lerror: 01016 tolua_error(tolua_S,"#ferror in function 'hash_printable'.",&tolua_err); 01017 return 0; 01018 #endif 01019 } 01020 #endif //#ifndef TOLUA_DISABLE 01021 01022 /* method: is_writer of class fawkes::Position2DTrackInterface */ 01023 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_is_writer00 01024 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_is_writer00(lua_State* tolua_S) 01025 { 01026 #ifndef TOLUA_RELEASE 01027 tolua_Error tolua_err; 01028 if ( 01029 !tolua_isusertype(tolua_S,1,"const fawkes::Position2DTrackInterface",0,&tolua_err) || 01030 !tolua_isnoobj(tolua_S,2,&tolua_err) 01031 ) 01032 goto tolua_lerror; 01033 else 01034 #endif 01035 { 01036 const fawkes::Position2DTrackInterface* self = (const fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 01037 #ifndef TOLUA_RELEASE 01038 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'is_writer'", NULL); 01039 #endif 01040 { 01041 bool tolua_ret = (bool) self->is_writer(); 01042 tolua_pushboolean(tolua_S,(bool)tolua_ret); 01043 } 01044 } 01045 return 1; 01046 #ifndef TOLUA_RELEASE 01047 tolua_lerror: 01048 tolua_error(tolua_S,"#ferror in function 'is_writer'.",&tolua_err); 01049 return 0; 01050 #endif 01051 } 01052 #endif //#ifndef TOLUA_DISABLE 01053 01054 /* method: set_from_chunk of class fawkes::Position2DTrackInterface */ 01055 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_set_from_chunk00 01056 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_set_from_chunk00(lua_State* tolua_S) 01057 { 01058 #ifndef TOLUA_RELEASE 01059 tolua_Error tolua_err; 01060 if ( 01061 !tolua_isusertype(tolua_S,1,"fawkes::Position2DTrackInterface",0,&tolua_err) || 01062 !tolua_isuserdata(tolua_S,2,0,&tolua_err) || 01063 !tolua_isnoobj(tolua_S,3,&tolua_err) 01064 ) 01065 goto tolua_lerror; 01066 else 01067 #endif 01068 { 01069 fawkes::Position2DTrackInterface* self = (fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 01070 void* chunk = ((void*) tolua_touserdata(tolua_S,2,0)); 01071 #ifndef TOLUA_RELEASE 01072 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set_from_chunk'", NULL); 01073 #endif 01074 { 01075 self->set_from_chunk(chunk); 01076 } 01077 } 01078 return 0; 01079 #ifndef TOLUA_RELEASE 01080 tolua_lerror: 01081 tolua_error(tolua_S,"#ferror in function 'set_from_chunk'.",&tolua_err); 01082 return 0; 01083 #endif 01084 } 01085 #endif //#ifndef TOLUA_DISABLE 01086 01087 /* method: create_message of class fawkes::Position2DTrackInterface */ 01088 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_create_message00 01089 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_create_message00(lua_State* tolua_S) 01090 { 01091 #ifndef TOLUA_RELEASE 01092 tolua_Error tolua_err; 01093 if ( 01094 !tolua_isusertype(tolua_S,1,"const fawkes::Position2DTrackInterface",0,&tolua_err) || 01095 !tolua_isstring(tolua_S,2,0,&tolua_err) || 01096 !tolua_isnoobj(tolua_S,3,&tolua_err) 01097 ) 01098 goto tolua_lerror; 01099 else 01100 #endif 01101 { 01102 const fawkes::Position2DTrackInterface* self = (const fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 01103 const char* type = ((const char*) tolua_tostring(tolua_S,2,0)); 01104 #ifndef TOLUA_RELEASE 01105 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'create_message'", NULL); 01106 #endif 01107 { 01108 Message* tolua_ret = (Message*) self->create_message(type); 01109 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Message"); 01110 } 01111 } 01112 return 1; 01113 #ifndef TOLUA_RELEASE 01114 tolua_lerror: 01115 tolua_error(tolua_S,"#ferror in function 'create_message'.",&tolua_err); 01116 return 0; 01117 #endif 01118 } 01119 #endif //#ifndef TOLUA_DISABLE 01120 01121 /* method: read of class fawkes::Position2DTrackInterface */ 01122 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_read00 01123 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_read00(lua_State* tolua_S) 01124 { 01125 #ifndef TOLUA_RELEASE 01126 tolua_Error tolua_err; 01127 if ( 01128 !tolua_isusertype(tolua_S,1,"fawkes::Position2DTrackInterface",0,&tolua_err) || 01129 !tolua_isnoobj(tolua_S,2,&tolua_err) 01130 ) 01131 goto tolua_lerror; 01132 else 01133 #endif 01134 { 01135 fawkes::Position2DTrackInterface* self = (fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 01136 #ifndef TOLUA_RELEASE 01137 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'read'", NULL); 01138 #endif 01139 { 01140 self->read(); 01141 } 01142 } 01143 return 0; 01144 #ifndef TOLUA_RELEASE 01145 tolua_lerror: 01146 tolua_error(tolua_S,"#ferror in function 'read'.",&tolua_err); 01147 return 0; 01148 #endif 01149 } 01150 #endif //#ifndef TOLUA_DISABLE 01151 01152 /* method: write of class fawkes::Position2DTrackInterface */ 01153 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_write00 01154 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_write00(lua_State* tolua_S) 01155 { 01156 #ifndef TOLUA_RELEASE 01157 tolua_Error tolua_err; 01158 if ( 01159 !tolua_isusertype(tolua_S,1,"fawkes::Position2DTrackInterface",0,&tolua_err) || 01160 !tolua_isnoobj(tolua_S,2,&tolua_err) 01161 ) 01162 goto tolua_lerror; 01163 else 01164 #endif 01165 { 01166 fawkes::Position2DTrackInterface* self = (fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 01167 #ifndef TOLUA_RELEASE 01168 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'write'", NULL); 01169 #endif 01170 { 01171 self->write(); 01172 } 01173 } 01174 return 0; 01175 #ifndef TOLUA_RELEASE 01176 tolua_lerror: 01177 tolua_error(tolua_S,"#ferror in function 'write'.",&tolua_err); 01178 return 0; 01179 #endif 01180 } 01181 #endif //#ifndef TOLUA_DISABLE 01182 01183 /* method: has_writer of class fawkes::Position2DTrackInterface */ 01184 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_has_writer00 01185 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_has_writer00(lua_State* tolua_S) 01186 { 01187 #ifndef TOLUA_RELEASE 01188 tolua_Error tolua_err; 01189 if ( 01190 !tolua_isusertype(tolua_S,1,"const fawkes::Position2DTrackInterface",0,&tolua_err) || 01191 !tolua_isnoobj(tolua_S,2,&tolua_err) 01192 ) 01193 goto tolua_lerror; 01194 else 01195 #endif 01196 { 01197 const fawkes::Position2DTrackInterface* self = (const fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 01198 #ifndef TOLUA_RELEASE 01199 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'has_writer'", NULL); 01200 #endif 01201 { 01202 bool tolua_ret = (bool) self->has_writer(); 01203 tolua_pushboolean(tolua_S,(bool)tolua_ret); 01204 } 01205 } 01206 return 1; 01207 #ifndef TOLUA_RELEASE 01208 tolua_lerror: 01209 tolua_error(tolua_S,"#ferror in function 'has_writer'.",&tolua_err); 01210 return 0; 01211 #endif 01212 } 01213 #endif //#ifndef TOLUA_DISABLE 01214 01215 /* method: num_readers of class fawkes::Position2DTrackInterface */ 01216 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_num_readers00 01217 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_num_readers00(lua_State* tolua_S) 01218 { 01219 #ifndef TOLUA_RELEASE 01220 tolua_Error tolua_err; 01221 if ( 01222 !tolua_isusertype(tolua_S,1,"const fawkes::Position2DTrackInterface",0,&tolua_err) || 01223 !tolua_isnoobj(tolua_S,2,&tolua_err) 01224 ) 01225 goto tolua_lerror; 01226 else 01227 #endif 01228 { 01229 const fawkes::Position2DTrackInterface* self = (const fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 01230 #ifndef TOLUA_RELEASE 01231 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'num_readers'", NULL); 01232 #endif 01233 { 01234 unsigned int tolua_ret = (unsigned int) self->num_readers(); 01235 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01236 } 01237 } 01238 return 1; 01239 #ifndef TOLUA_RELEASE 01240 tolua_lerror: 01241 tolua_error(tolua_S,"#ferror in function 'num_readers'.",&tolua_err); 01242 return 0; 01243 #endif 01244 } 01245 #endif //#ifndef TOLUA_DISABLE 01246 01247 /* method: msgq_enqueue_copy of class fawkes::Position2DTrackInterface */ 01248 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_enqueue_copy00 01249 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_enqueue_copy00(lua_State* tolua_S) 01250 { 01251 #ifndef TOLUA_RELEASE 01252 tolua_Error tolua_err; 01253 if ( 01254 !tolua_isusertype(tolua_S,1,"fawkes::Position2DTrackInterface",0,&tolua_err) || 01255 !tolua_isusertype(tolua_S,2,"Message",0,&tolua_err) || 01256 !tolua_isnoobj(tolua_S,3,&tolua_err) 01257 ) 01258 goto tolua_lerror; 01259 else 01260 #endif 01261 { 01262 fawkes::Position2DTrackInterface* self = (fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 01263 Message* message = ((Message*) tolua_tousertype(tolua_S,2,0)); 01264 #ifndef TOLUA_RELEASE 01265 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_enqueue_copy'", NULL); 01266 #endif 01267 { 01268 unsigned int tolua_ret = (unsigned int) self->msgq_enqueue_copy(message); 01269 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01270 } 01271 } 01272 return 1; 01273 #ifndef TOLUA_RELEASE 01274 tolua_lerror: 01275 tolua_error(tolua_S,"#ferror in function 'msgq_enqueue_copy'.",&tolua_err); 01276 return 0; 01277 #endif 01278 } 01279 #endif //#ifndef TOLUA_DISABLE 01280 01281 /* method: msgq_remove of class fawkes::Position2DTrackInterface */ 01282 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_remove00 01283 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_remove00(lua_State* tolua_S) 01284 { 01285 #ifndef TOLUA_RELEASE 01286 tolua_Error tolua_err; 01287 if ( 01288 !tolua_isusertype(tolua_S,1,"fawkes::Position2DTrackInterface",0,&tolua_err) || 01289 !tolua_isusertype(tolua_S,2,"Message",0,&tolua_err) || 01290 !tolua_isnoobj(tolua_S,3,&tolua_err) 01291 ) 01292 goto tolua_lerror; 01293 else 01294 #endif 01295 { 01296 fawkes::Position2DTrackInterface* self = (fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 01297 Message* message = ((Message*) tolua_tousertype(tolua_S,2,0)); 01298 #ifndef TOLUA_RELEASE 01299 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_remove'", NULL); 01300 #endif 01301 { 01302 self->msgq_remove(message); 01303 } 01304 } 01305 return 0; 01306 #ifndef TOLUA_RELEASE 01307 tolua_lerror: 01308 tolua_error(tolua_S,"#ferror in function 'msgq_remove'.",&tolua_err); 01309 return 0; 01310 #endif 01311 } 01312 #endif //#ifndef TOLUA_DISABLE 01313 01314 /* method: msgq_remove of class fawkes::Position2DTrackInterface */ 01315 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_remove01 01316 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_remove01(lua_State* tolua_S) 01317 { 01318 tolua_Error tolua_err; 01319 if ( 01320 !tolua_isusertype(tolua_S,1,"fawkes::Position2DTrackInterface",0,&tolua_err) || 01321 !tolua_isnumber(tolua_S,2,0,&tolua_err) || 01322 !tolua_isnoobj(tolua_S,3,&tolua_err) 01323 ) 01324 goto tolua_lerror; 01325 else 01326 { 01327 fawkes::Position2DTrackInterface* self = (fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 01328 unsigned int message_id = ((unsigned int) tolua_tonumber(tolua_S,2,0)); 01329 #ifndef TOLUA_RELEASE 01330 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_remove'", NULL); 01331 #endif 01332 { 01333 self->msgq_remove(message_id); 01334 } 01335 } 01336 return 0; 01337 tolua_lerror: 01338 return tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_remove00(tolua_S); 01339 } 01340 #endif //#ifndef TOLUA_DISABLE 01341 01342 /* method: msgq_size of class fawkes::Position2DTrackInterface */ 01343 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_size00 01344 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_size00(lua_State* tolua_S) 01345 { 01346 #ifndef TOLUA_RELEASE 01347 tolua_Error tolua_err; 01348 if ( 01349 !tolua_isusertype(tolua_S,1,"fawkes::Position2DTrackInterface",0,&tolua_err) || 01350 !tolua_isnoobj(tolua_S,2,&tolua_err) 01351 ) 01352 goto tolua_lerror; 01353 else 01354 #endif 01355 { 01356 fawkes::Position2DTrackInterface* self = (fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 01357 #ifndef TOLUA_RELEASE 01358 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_size'", NULL); 01359 #endif 01360 { 01361 unsigned int tolua_ret = (unsigned int) self->msgq_size(); 01362 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); 01363 } 01364 } 01365 return 1; 01366 #ifndef TOLUA_RELEASE 01367 tolua_lerror: 01368 tolua_error(tolua_S,"#ferror in function 'msgq_size'.",&tolua_err); 01369 return 0; 01370 #endif 01371 } 01372 #endif //#ifndef TOLUA_DISABLE 01373 01374 /* method: msgq_flush of class fawkes::Position2DTrackInterface */ 01375 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_flush00 01376 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_flush00(lua_State* tolua_S) 01377 { 01378 #ifndef TOLUA_RELEASE 01379 tolua_Error tolua_err; 01380 if ( 01381 !tolua_isusertype(tolua_S,1,"fawkes::Position2DTrackInterface",0,&tolua_err) || 01382 !tolua_isnoobj(tolua_S,2,&tolua_err) 01383 ) 01384 goto tolua_lerror; 01385 else 01386 #endif 01387 { 01388 fawkes::Position2DTrackInterface* self = (fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 01389 #ifndef TOLUA_RELEASE 01390 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_flush'", NULL); 01391 #endif 01392 { 01393 self->msgq_flush(); 01394 } 01395 } 01396 return 0; 01397 #ifndef TOLUA_RELEASE 01398 tolua_lerror: 01399 tolua_error(tolua_S,"#ferror in function 'msgq_flush'.",&tolua_err); 01400 return 0; 01401 #endif 01402 } 01403 #endif //#ifndef TOLUA_DISABLE 01404 01405 /* method: msgq_lock of class fawkes::Position2DTrackInterface */ 01406 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_lock00 01407 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_lock00(lua_State* tolua_S) 01408 { 01409 #ifndef TOLUA_RELEASE 01410 tolua_Error tolua_err; 01411 if ( 01412 !tolua_isusertype(tolua_S,1,"fawkes::Position2DTrackInterface",0,&tolua_err) || 01413 !tolua_isnoobj(tolua_S,2,&tolua_err) 01414 ) 01415 goto tolua_lerror; 01416 else 01417 #endif 01418 { 01419 fawkes::Position2DTrackInterface* self = (fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 01420 #ifndef TOLUA_RELEASE 01421 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_lock'", NULL); 01422 #endif 01423 { 01424 self->msgq_lock(); 01425 } 01426 } 01427 return 0; 01428 #ifndef TOLUA_RELEASE 01429 tolua_lerror: 01430 tolua_error(tolua_S,"#ferror in function 'msgq_lock'.",&tolua_err); 01431 return 0; 01432 #endif 01433 } 01434 #endif //#ifndef TOLUA_DISABLE 01435 01436 /* method: msgq_try_lock of class fawkes::Position2DTrackInterface */ 01437 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_try_lock00 01438 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_try_lock00(lua_State* tolua_S) 01439 { 01440 #ifndef TOLUA_RELEASE 01441 tolua_Error tolua_err; 01442 if ( 01443 !tolua_isusertype(tolua_S,1,"fawkes::Position2DTrackInterface",0,&tolua_err) || 01444 !tolua_isnoobj(tolua_S,2,&tolua_err) 01445 ) 01446 goto tolua_lerror; 01447 else 01448 #endif 01449 { 01450 fawkes::Position2DTrackInterface* self = (fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 01451 #ifndef TOLUA_RELEASE 01452 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_try_lock'", NULL); 01453 #endif 01454 { 01455 bool tolua_ret = (bool) self->msgq_try_lock(); 01456 tolua_pushboolean(tolua_S,(bool)tolua_ret); 01457 } 01458 } 01459 return 1; 01460 #ifndef TOLUA_RELEASE 01461 tolua_lerror: 01462 tolua_error(tolua_S,"#ferror in function 'msgq_try_lock'.",&tolua_err); 01463 return 0; 01464 #endif 01465 } 01466 #endif //#ifndef TOLUA_DISABLE 01467 01468 /* method: msgq_unlock of class fawkes::Position2DTrackInterface */ 01469 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_unlock00 01470 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_unlock00(lua_State* tolua_S) 01471 { 01472 #ifndef TOLUA_RELEASE 01473 tolua_Error tolua_err; 01474 if ( 01475 !tolua_isusertype(tolua_S,1,"fawkes::Position2DTrackInterface",0,&tolua_err) || 01476 !tolua_isnoobj(tolua_S,2,&tolua_err) 01477 ) 01478 goto tolua_lerror; 01479 else 01480 #endif 01481 { 01482 fawkes::Position2DTrackInterface* self = (fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 01483 #ifndef TOLUA_RELEASE 01484 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_unlock'", NULL); 01485 #endif 01486 { 01487 self->msgq_unlock(); 01488 } 01489 } 01490 return 0; 01491 #ifndef TOLUA_RELEASE 01492 tolua_lerror: 01493 tolua_error(tolua_S,"#ferror in function 'msgq_unlock'.",&tolua_err); 01494 return 0; 01495 #endif 01496 } 01497 #endif //#ifndef TOLUA_DISABLE 01498 01499 /* method: msgq_pop of class fawkes::Position2DTrackInterface */ 01500 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_pop00 01501 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_pop00(lua_State* tolua_S) 01502 { 01503 #ifndef TOLUA_RELEASE 01504 tolua_Error tolua_err; 01505 if ( 01506 !tolua_isusertype(tolua_S,1,"fawkes::Position2DTrackInterface",0,&tolua_err) || 01507 !tolua_isnoobj(tolua_S,2,&tolua_err) 01508 ) 01509 goto tolua_lerror; 01510 else 01511 #endif 01512 { 01513 fawkes::Position2DTrackInterface* self = (fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 01514 #ifndef TOLUA_RELEASE 01515 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_pop'", NULL); 01516 #endif 01517 { 01518 self->msgq_pop(); 01519 } 01520 } 01521 return 0; 01522 #ifndef TOLUA_RELEASE 01523 tolua_lerror: 01524 tolua_error(tolua_S,"#ferror in function 'msgq_pop'.",&tolua_err); 01525 return 0; 01526 #endif 01527 } 01528 #endif //#ifndef TOLUA_DISABLE 01529 01530 /* method: msgq_first of class fawkes::Position2DTrackInterface */ 01531 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_first00 01532 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_first00(lua_State* tolua_S) 01533 { 01534 #ifndef TOLUA_RELEASE 01535 tolua_Error tolua_err; 01536 if ( 01537 !tolua_isusertype(tolua_S,1,"fawkes::Position2DTrackInterface",0,&tolua_err) || 01538 !tolua_isnoobj(tolua_S,2,&tolua_err) 01539 ) 01540 goto tolua_lerror; 01541 else 01542 #endif 01543 { 01544 fawkes::Position2DTrackInterface* self = (fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 01545 #ifndef TOLUA_RELEASE 01546 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_first'", NULL); 01547 #endif 01548 { 01549 Message* tolua_ret = (Message*) self->msgq_first(); 01550 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Message"); 01551 } 01552 } 01553 return 1; 01554 #ifndef TOLUA_RELEASE 01555 tolua_lerror: 01556 tolua_error(tolua_S,"#ferror in function 'msgq_first'.",&tolua_err); 01557 return 0; 01558 #endif 01559 } 01560 #endif //#ifndef TOLUA_DISABLE 01561 01562 /* method: msgq_empty of class fawkes::Position2DTrackInterface */ 01563 #ifndef TOLUA_DISABLE_tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_empty00 01564 static int tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_empty00(lua_State* tolua_S) 01565 { 01566 #ifndef TOLUA_RELEASE 01567 tolua_Error tolua_err; 01568 if ( 01569 !tolua_isusertype(tolua_S,1,"fawkes::Position2DTrackInterface",0,&tolua_err) || 01570 !tolua_isnoobj(tolua_S,2,&tolua_err) 01571 ) 01572 goto tolua_lerror; 01573 else 01574 #endif 01575 { 01576 fawkes::Position2DTrackInterface* self = (fawkes::Position2DTrackInterface*) tolua_tousertype(tolua_S,1,0); 01577 #ifndef TOLUA_RELEASE 01578 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'msgq_empty'", NULL); 01579 #endif 01580 { 01581 bool tolua_ret = (bool) self->msgq_empty(); 01582 tolua_pushboolean(tolua_S,(bool)tolua_ret); 01583 } 01584 } 01585 return 1; 01586 #ifndef TOLUA_RELEASE 01587 tolua_lerror: 01588 tolua_error(tolua_S,"#ferror in function 'msgq_empty'.",&tolua_err); 01589 return 0; 01590 #endif 01591 } 01592 #endif //#ifndef TOLUA_DISABLE 01593 01594 /* Open function */ 01595 TOLUA_API int tolua_interfaces_Position2DTrackInterface_open (lua_State* tolua_S) 01596 { 01597 tolua_open(tolua_S); 01598 tolua_reg_types(tolua_S); 01599 tolua_module(tolua_S,NULL,0); 01600 tolua_beginmodule(tolua_S,NULL); 01601 tolua_module(tolua_S,"fawkes",0); 01602 tolua_beginmodule(tolua_S,"fawkes"); 01603 tolua_cclass(tolua_S,"Position2DTrackInterface","fawkes::Position2DTrackInterface","Interface",NULL); 01604 tolua_beginmodule(tolua_S,"Position2DTrackInterface"); 01605 tolua_function(tolua_S,"track_x_positions",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_track_x_positions00); 01606 tolua_function(tolua_S,"set_track_x_positions",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_set_track_x_positions00); 01607 tolua_function(tolua_S,"maxlenof_track_x_positions",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_maxlenof_track_x_positions00); 01608 tolua_function(tolua_S,"track_y_positions",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_track_y_positions00); 01609 tolua_function(tolua_S,"set_track_y_positions",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_set_track_y_positions00); 01610 tolua_function(tolua_S,"maxlenof_track_y_positions",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_maxlenof_track_y_positions00); 01611 tolua_function(tolua_S,"track_timestamps",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_track_timestamps00); 01612 tolua_function(tolua_S,"set_track_timestamps",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_set_track_timestamps00); 01613 tolua_function(tolua_S,"maxlenof_track_timestamps",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_maxlenof_track_timestamps00); 01614 tolua_function(tolua_S,"is_valid",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_is_valid00); 01615 tolua_function(tolua_S,"set_valid",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_set_valid00); 01616 tolua_function(tolua_S,"maxlenof_valid",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_maxlenof_valid00); 01617 tolua_function(tolua_S,"length",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_length00); 01618 tolua_function(tolua_S,"set_length",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_set_length00); 01619 tolua_function(tolua_S,"maxlenof_length",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_maxlenof_length00); 01620 tolua_function(tolua_S,"track_id",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_track_id00); 01621 tolua_function(tolua_S,"set_track_id",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_set_track_id00); 01622 tolua_function(tolua_S,"maxlenof_track_id",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_maxlenof_track_id00); 01623 tolua_function(tolua_S,"oftype",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_oftype00); 01624 tolua_function(tolua_S,"datachunk",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_datachunk00); 01625 tolua_function(tolua_S,"datasize",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_datasize00); 01626 tolua_function(tolua_S,"type",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_type00); 01627 tolua_function(tolua_S,"id",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_id00); 01628 tolua_function(tolua_S,"uid",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_uid00); 01629 tolua_function(tolua_S,"serial",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_serial00); 01630 tolua_function(tolua_S,"mem_serial",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_mem_serial00); 01631 tolua_function(tolua_S,".eq",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface__eq00); 01632 tolua_function(tolua_S,"hash",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_hash00); 01633 tolua_function(tolua_S,"hash_size",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_hash_size00); 01634 tolua_function(tolua_S,"hash_printable",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_hash_printable00); 01635 tolua_function(tolua_S,"is_writer",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_is_writer00); 01636 tolua_function(tolua_S,"set_from_chunk",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_set_from_chunk00); 01637 tolua_function(tolua_S,"create_message",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_create_message00); 01638 tolua_function(tolua_S,"read",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_read00); 01639 tolua_function(tolua_S,"write",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_write00); 01640 tolua_function(tolua_S,"has_writer",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_has_writer00); 01641 tolua_function(tolua_S,"num_readers",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_num_readers00); 01642 tolua_function(tolua_S,"msgq_enqueue_copy",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_enqueue_copy00); 01643 tolua_function(tolua_S,"msgq_remove",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_remove00); 01644 tolua_function(tolua_S,"msgq_remove",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_remove01); 01645 tolua_function(tolua_S,"msgq_size",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_size00); 01646 tolua_function(tolua_S,"msgq_flush",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_flush00); 01647 tolua_function(tolua_S,"msgq_lock",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_lock00); 01648 tolua_function(tolua_S,"msgq_try_lock",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_try_lock00); 01649 tolua_function(tolua_S,"msgq_unlock",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_unlock00); 01650 tolua_function(tolua_S,"msgq_pop",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_pop00); 01651 tolua_function(tolua_S,"msgq_first",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_first00); 01652 tolua_function(tolua_S,"msgq_empty",tolua_interfaces_Position2DTrackInterface_fawkes_Position2DTrackInterface_msgq_empty00); 01653 tolua_endmodule(tolua_S); 01654 tolua_endmodule(tolua_S); 01655 tolua_endmodule(tolua_S); 01656 return 1; 01657 } 01658 01659 01660 extern "C" { 01661 #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501 01662 TOLUA_API int luaopen_interfaces_Position2DTrackInterface (lua_State* tolua_S) { 01663 return tolua_interfaces_Position2DTrackInterface_open(tolua_S); 01664 }; 01665 #endif 01666 } 01667 01668