fwRPC
 All Files Functions Variables
fwRPC_functionManager.ctl File Reference

Functions

void fwRPC_functionManager_register (dyn_mixed funcObject)
 
void fwRPC_functionManager_load ()
 
bool fwRPC_functionManager_isRegistered (string functionName)
 
void fwRPC_functionManager_clearRegistry ()
 
void fwRPC_functionManager_getFunctionObject (string functionName, dyn_mixed &functionObject)
 
dyn_string fwRPC_functionManager_getFunctionNames ()
 

Variables

private global mapping g_fwRPC_functionManager_functions
 

Detailed Description

This library contains the functionality responsible for managing RPC functions in the core server module.

Part of the server-side RPC library.

Author
Victor Rodrigues (CERN, BE-ICS-SDS)

Function Documentation

void fwRPC_functionManager_clearRegistry ( )

Unregister all functions

Returns
void
Exceptions
nothing
dyn_string fwRPC_functionManager_getFunctionNames ( )

Get a list of all registered functions.

Returns
dyn string of registered functions
Exceptions
nothing
void fwRPC_functionManager_getFunctionObject ( string  functionName,
dyn_mixed &  functionObject 
)

Get a registered function. If the function is not registered it will check the DB, and register it if available.

Parameters
functionName(IN, string) name of the function
functionObject(OUT, dyn_mixed) function
Returns
void
Exceptions
ifthe function is not registered
bool fwRPC_functionManager_isRegistered ( string  functionName)

Check if a given object is registered.

Parameters
functionName(IN, string) function name to check for
Returns
true if registered otherwise false
Exceptions
nothing
void fwRPC_functionManager_load ( )

Clears the current function registry and loads functions registered in the DB.

Returns
void
Exceptions
nothing
void fwRPC_functionManager_register ( dyn_mixed  funcObject)

Register a function.

Parameters
funcObject(IN, dyn_mixed) Function object to register
Returns
void
Exceptions
ifthe given object is not a valid function object if the function is already registered

Variable Documentation

private global mapping g_fwRPC_functionManager_functions

Mapping containing all registered functions: key = function name value = function model (see fwRPC_functionModel.ctl)