getDefaultSArgs {RGtkBindingGenerator}R Documentation

Code/Variable generators for parameters in generated S functions

Description

These functions relate to generating the parameters in S functions that interface to the C routines in the .defs objects. getSArgs returns the names of the S parameters. getDefaultSArgs returns the code for default values for each of the arguments (in the form = value).

Usage

getDefaultSArgs(params, defs)
getSArgs(params)

Arguments

params the parameters from the description of the C routine
defs the top-level description of all of elements described in the .defs file, i.e. classes, enums, flags, etc. These are used to determine the type of the parameter and the appropriate default values and code to coerce S values to the appropriate type.

Value

A character vector whose length is equal to the number of parameters in the C routine (given by params).
For getSArgs, this elements of the vector are the names of the parameters.
For getDefaultSArgs, the elements are the S code defining the default value or simply the empty string (""). The names of the elements are the names of the parameters.

Author(s)

Duncan Temple Lang <duncan@research.bell-labs.com>

References

http://www.omegahat.org/RGtk, http://www.omegahat.org/RGtkBindingGenerator, http://www.gtk.org http://www.pygtk.org(?)

See Also

collapseConstructors genRCode

Examples



[Package RGtkBindingGenerator version 0.3 Index]