43 #include <rtt/TaskContext.hpp> 44 #include <ocl/OCL.hpp> 45 #include <deployment/DeploymentComponent.hpp> 53 int GCMethod(lua_State* L)
55 reinterpret_cast<T*
>(lua_touserdata(L, 1))->~T();
62 static int deployer_new(lua_State *L)
67 s = luaL_checkstring(L, 1);
70 TaskContext** tc = (TaskContext**) lua_newuserdata(L,
sizeof(TaskContext*));
72 *tc = (TaskContext*) d;
73 luaL_getmetatable(L,
"TaskContext");
74 lua_setmetatable(L, -2);
79 static const struct luaL_Reg DeploymentComponent_f [] = {
80 {
"new", deployer_new },
84 static const struct luaL_Reg DeploymentComponent_m [] = {
90 int luaopen_deployer(lua_State *L)
99 luaL_newmetatable(L,
"TaskContext");
100 lua_pushvalue(L, -1);
101 lua_setfield(L, -2,
"__index");
102 luaL_register(L, NULL, DeploymentComponent_m);
103 luaL_register(L,
"deployer", DeploymentComponent_f);
The Orocos Component Library.
A Component for deploying (configuring) other components in an application.