bool CharsetConvert::RegisterToLua(lua_State* L){ CLASS_FUNC func[1] ={ { "Convert", &_Convert}, }; return register_class_to_lua(L, "Core", "CharsetConvert", 0, 0, 1, func, 0, 0, 0, 0 ); }
bool Requestor::RegisterToLua(lua_State* L){ CLASS_FUNC func[2] ={ { "reply", &_Reply}, { "replyByObject", &_ReplyByObject}, }; return register_class_to_lua(L, "Core", "Requestor", MAKE_LUA_METATABLE_NAME(core::Requestor), 0, 0, 0, 2, func, 0, 0 ); }
bool XmlForLua::RegisterToLua(lua_State* L){ CLASS_FUNC func[2] ={ { "Encode", &_Encode }, { "Decode", &_Decode }, }; return register_class_to_lua(L, "Core", "Xml", 0, 0, 2, func, 0, 0, 0, 0 ); }
bool ProtocolManager::RegisterToLua(lua_State* L){ CLASS_FUNC func[4] ={ { "TableToBytes", &_TableToBytes}, { "TableToObject", &_TableToObject}, { "BytesToTable", &_BytesToTable}, { "ObjectToTable", &_ObjectToTable}, }; return register_class_to_lua(L, "Core", "ProtocolManager", 0, 0, 4, func, 0, 0, 0, 0 ); }
bool DispatcherManager::RegisterToLua(lua_State* L){ CLASS_FUNC func[4] ={ { "Request", &_Request}, { "RequestByObject", &_RequestByObject}, { "Notify", &_Notify}, { "NotifyByObject", &_NotifyByObject}, }; return register_class_to_lua(L, "Core", "DispatcherManager", 0, 0, 4, func, 0, 0, 0, 0 ); }
bool LogService::RegisterToLua(lua_State* L){ CLASS_FUNC func[1] ={ { "Log", &_Log}, }; CLASS_ENUM enumerator[2] ={ { "SERVICE_ID", SERVICE_ID}, { "SERVICE_LOG_NOTIFY", SERVICE_LOG_NOTIFY}, }; return register_class_to_lua(L, "Core", "LogService", 0, 0, 1, func, 0, 0, 2, enumerator ); }
bool Sha::RegisterToLua(lua_State* L){ CLASS_FUNC func[1] ={ { "Sum", &_Sum}, }; CLASS_ENUM enumerator[5] ={ { "SHA1", TYPE_SHA1}, { "SHA224", TYPE_SHA224}, { "SHA256", TYPE_SHA256}, { "SHA384", TYPE_SHA384}, { "SHA512", TYPE_SHA512}, }; return register_class_to_lua(L, "Core", "Sha", 0, 0, 1, func, 0, 0, 5, enumerator ); }
bool MysqlForLua::RegisterToLua(lua_State* L){ CLASS_FUNC func[8] ={ { "New", &_New}, { "connect", &_Connect}, { "disconnect", &_Disconnect}, { "good", &_Good}, { "query", &_Query}, { "exec", &_Exec}, { "lastInsertId", &_LastInsertId}, { "affectedRows", &_AffectedRows}, }; return register_class_to_lua(L, "Core", "Mysql", MAKE_LUA_METATABLE_NAME(core::MysqlForLua), 0, 1, func, 7, func+1, 0, 0 ); }