createEventServerFromTemplate {RDCOMEvents}R Documentation

Create native DCOM server instance from meta-information.

Description

This function merges user-supplied methods and a template for an event handler and creates an instance of the server using the R code as methods.

Usage

createEventServerFromTemplate(methods, template, interfaceName)

Arguments

methods a named list of functions giving the methods that are to be implemented in R by this server instance. Methods not specified are degenerate and are not called.
template a template describing the interface for the "standard" or expected event handler. This gives information about all the methods, their identifiers and the types of the parameters and the return values. See createCOMEventServerInfo.
interfaceName the human-readable name of the event interface being implemented, e.g. AppEvents, WorkbookEvents, etc. This is only used for providing meaningful error messages.

Value

This returns the value from createCOMEventServer, so an object containing a reference to the low-level C++ object that represents the instance of the DCOM event handler.

Author(s)

Duncan Temple Lang <duncan@wald.ucdavis.edu>

References

http://www.omegahat.org/RDCOMClient http://www.omegahat.org/RDCOMServer http://www.omegahat.org/SWinTypeLibs

See Also

createCOMEventServer mergeFunctions which handles inserting the contracts for coercing the arguments to the expected types. createCOMEventServerInfo

Examples






[Package RDCOMEvents version 0.3-1 Index]