SCOMFunctionClass | R Documentation |
This is the constructor function for defining a COM class in S that consists of a simple list of functions and properties that do not share state.
Unlike the SCOMIDispatch
constructor,
this definition does not have a generator function
but instead re-uses the list of functions for each
COM object that is created for this class.
In this way, they cannot share state.
The properties are currently accessed as variables in the global environment and are specified simply as variable names. A variant of this class will allow them to be local to the object and specified as a list.
SCOMFunctionClass(functions, properties = character(0), name, help = "", def = new("SCOMFunctionClass"), where = "")
functions |
a named list of functions. The names are the externally accessible method names by which clients access functionality of objects of these classes. |
properties |
currently a character vector giving the names of S variables in the search path that can be accessed by clients. |
name |
the human-usable name of the COM class |
help |
a character vector giving description strings for each of the methods (and properties). Currently not used but will be in the future. |
def |
an instance of the target S class that is used to represent this definition. This is available as an argument to allow constructors for sub-classes to call this and supply their own instance to be populated with values. |
where |
currently unused but here for automatic registration. |
The def
object with slots filled in.
Duncan Temple Lang <duncan@wald.ucdavis.edu>
http://www.omegahat.org/RDCOMServer http://www.omegahat.org/SWinRegistry
SCOMIDispatch
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.