generateClass | R Documentation |
This function is part of the code generation mechanism to interface to DCOM classes/types in a type library. This function generates the R code to access the methods and properties of the DCOM interface along with additional information about class definitions, etc.
generateClass(id, lib, defaultClass = "CompiledCOMIDispatch",
defaultListClass = c("COMList", "COMTypedList"),
verbose = FALSE)
id |
a string giving the human-readable name of the DCOM interface in the type library. |
lib |
the type library of class |
defaultClass |
a string giving the name of the R class
that is to be used as the base class for new classes
defined to represent DCOM classes. This is used
if the DCOM class is not a list. See
|
defaultListClass |
either a function
or a character vector. If this is a function,
this is called to determine the class definition
of the new S class to be constructed to represent
references to the DCOM objects of this type.
The function must return an object derived
from Alternatively, if this is given as a character vector, it should give the names of classes that are used for "untyped" and "typed" lists, in that order. By typed lists, we mean where we know the (base) type of the elements in the DCOM list. If these are general VARIANT or IDispatch objects, then it is an untyped list. |
verbose |
a logical value, with |
An object of class
RCOMDispatchInterfaceDefinition-class
Duncan Temple Lang <duncan@wald.ucdavis.edu>
http://msdn.microsoft.com/library http://www.omegahat.org/RWinTypeLibs
generateInterface
generateEventInterface
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.