int tsmCopyTspecField ( TsmConnection connect_in, TsmConnection connect_out )

Takes a copy of a tspec structure

Documentation

Takes a copy of a tspec structure.

If you have a connection with a tspec structure, and you want to associate this same tspec structure with another connection, then you can use this function. For example, if you are creating a copy of a dataset, then you should open a read connection to the dataset and a write connection. Then you can create the new dataset tspec file by calling this function, followed by tsmWriteTspec().

This function effectively does a tsmSetTspecField for the output connection, from the input connection's tspec field. N.B. it does not write out any data to disk. See tsmCopyTspec to do this.

Returns:
TRUE if all went well, FALSE if something went wrong
Parameters:
connect_in - the input connection to read the tspec structure from
connect_out - the output connection to be updated
Author:
Martin Reddy
Version:
4 February 1998
See Also:
tsmCopyTspec, tsmSetTspecField, tsmWriteTspec, tsmCopyTile, tsmCopyAllTiles


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

Back to tsmApi Home Page