Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages

O2Utils Class Reference

#include <O2Utils.hpp>

List of all members.

Static Public Member Functions

void initLuaState (lua_State *state)
void loadOrb (lua_State *state, string orbPath)
void loadIdl (lua_State *state, string idlPath)
void instantiateProxy (lua_State *state, string ior, string interfaceName, string proxyName)
string getIor (lua_State *state, const char *servantName)


Detailed Description

O2Utils - Holds some helper methods for common tasks involving O2 ORB.

Please be advised that, as all lua involving operations, those operations involves messing with a lua_state, including its API's stacks. All methods contained here tries to keep the state as clean as possible. But keep in mind that you should be careful, for example, if tou call those methods on the same state in a multithreaded environment, as these methods are not synchronized.

Author:
Andrei Goldchleger


Member Function Documentation

string O2Utils::getIor lua_State *  state,
const char *  servantName
[static]
 

Returns the ior of a given servant

Parameters:
state - the lua_State in which the servant is located
servantName - the name of the servant which will have its ior returned

void O2Utils::initLuaState lua_State *  state  )  [static]
 

Initializes a given lua_State by opening needed lua libraries

Parameters:
state - The lua_State to be initialized

void O2Utils::instantiateProxy lua_State *  state,
string  ior,
string  interfaceName,
string  proxyName
[static]
 

Instantiate a proAsctImplxy for a given servant

Parameters:
state - the lua_State in which the proxy should be loaded
ior - IOR of the servant to be acessed
interfaceName - Complete identifier if a given interface (e.g. myModule::Foo)
proxyName - the name of the that will hold a reference to the proxy

void O2Utils::loadIdl lua_State *  state,
string  idlPath
[static]
 

Loads a given IDL, so that "stubs/skeletons" can be dynamically instantiated.

Parameters:
state - the lua_State in which the IDL should be loaded
idlPath - the path to the IDL to be loaded

void O2Utils::loadOrb lua_State *  state,
string  orbPath
[static]
 

Loads O2 files(Lua source code) in a given lua_State in order to allow the ORB to be used. AsctImpl

Parameters:
state - the lua_State in which O2 should be loaded
orbPath - directory that holds O2 files


The documentation for this class was generated from the following files:
Generated on Mon Sep 6 16:13:19 2004 by doxygen 1.3.3