00001 #ifndef O2Utils_HPP 00002 #define O2Utils_HPP 00003 00004 #include <string> 00005 00006 extern "C" { 00007 #include <lua.h> 00008 } 00009 00010 00011 using namespace std; 00012 00026 class O2Utils{ 00027 00028 public: 00029 00036 static void initLuaState(lua_State * state); 00037 00045 static void loadOrb(lua_State * state, string orbPath); 00046 00054 static void loadIdl(lua_State * state, string idlPath); 00055 00063 static void instantiateProxy(lua_State * state, 00064 string ior, string interfaceName, string proxyName); 00065 00072 static string getIor(lua_State * state, const char * servantName); 00073 00074 }; 00075 00076 #endif//O2Utils_HPP