void tsmParseConnectArgs ( int argc, char **argv, TsmConnection connect )

Updates a connection's settings from command line options

Documentation

Updates a connection's settings from command line options.

This function can be used to allow your programs to support a number of standard command line arguments for specifying the settings of a connection once it has been opened.

The function will scan the provided command line looking for any supported arguments. It will build update the passed TsmConnection structure based upon the options that it finds, effectively by doing a number of tsmSet() calls based upon the available parameters.

For example, if this function finds an option called "-jpegquality 50" on the command line, it will do a tsmSet(connect, TSM_JPEG_QUALITY, 50) for the passed connection, thus setting the output JPEG quality for any tiles.

The currently supported options that this function recognises are:

Parameters:
argc - the number of arguments passed to main()
argv - the array of command line strings passed to main()
Author:
Martin Reddy
Version:
13 March 1998
See Also:
tsmParseReadArgs, tsmParseWriteArgs, tsmParseInitArgs, tsmDescribeArgs, tsmGetArg


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

Back to tsmApi Home Page