Register an R function or C++ routine to convert between R and CORBA/IDL type.

Usage

addCorbaConverter(name, idlName, userFunction, toCorba=T)

Arguments

name a character vector of length 1 identifying the R function or C/C++ routine that will perform the conversion.
idlName the identifier for the IDL type associated with this converter.
userFunction logical indicating whether the name argument refers to an R function or a C/C++ routine.
toCorba logical indicating whether the direction of the conversion is from R to CORBA (TRUE) or vice-versa (FALSE)

Description

This allows a user to register a specialized converter (rather than the standard dynamic CORBA mechanism) when converting between R and a CORBA object. This stores the name in an internal C++ table which is referenced when we convert between R and CORBA. If the name of a function is supplied, this should generate a suitable R object that can be used as a CORBA object - namely a closure. If a C/C++ routine is supplied, it must have an appropriate signature. See the more detiled documentation.

Details

Value

A list containing a details of the converter previously registered for that IDL type and conversion direction, or the default converter entry.

WARNING

....

Note

Author(s)

Duncan Temple Lang

References

See Also

removeCorbaConverter, .CorbaServer

Examples

  addCorbaConverter(baseMatrixHandlerGenerator, "IDL:Omegahat/Matrix:1.0",T)
  addCorbaConverter(baseMatrixHandlerGenerator, "Omegahat::Matrix",T)


[Package Contents]