void tsmSet ( TsmConnection connect, TsmSetting setting, ... )

Set a connection variable

Documentation

Set a connection variable.

The tsmSet function lets you change various characteristics of a connection. These can be use to control things such as the format of data to write tiles to, the JPEG compression quality, etc.

This function uses varargs for the actual parameter value so that you can pass in values of any time. This does mean however that you should be careful to supply a value of the correct type for the parameter code that you specify, e.g. tsmSet( c, TSM_JPEG_QUALITY, 50 ) because TSM_JPEG_QUALITY is expecting an int.

The following settings can be modified for a connection. The type of the third parameter specifying the value is given in square parentheses.

Returns:
Nothing (void)
Parameters:
connect - a dataset connection, as returned by tsmConnect
setting - the connection option to update, e.g. TSM_JPEG_QUALITY
value - the new value for the option, e.g. TRUE, FALSE, 70, etc.
Author:
Martin Reddy
Version:
12 January 1998
See Also:
tsmGet, TsmSetting


TSMAPI_RELEASE 2.1 - Release Date: 2001/01/10 19:01:12

Back to tsmApi Home Page