Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

SDTSTransfer Class Reference

Master class representing an entire SDTS transfer. More...

#include <sdts_al.h>

List of all members.


Public Members

int Open ( const char * )
Open an SDTS transfer, and establish a list of data layers in the transfer. More...

int FindLayer ( const char * )
Fetch the SDTSTransfer layer number corresponding to a module name. More...

SDTSLayerType GetLayerType ( int )
Fetch type of requested feature layer. More...

int GetLayerCATDEntry ( int )
Fetch the CATD module index for a layer. More...

SDTSRasterReaderGetLayerRasterReader ( int )
Instantiate an SDTSRasterReader for the indicated layer. More...

SDTSIndexedReaderGetLayerIndexedReader ( int )
Returns a pointer to a reader of the appropriate type to the requested layer. More...

SDTS_CATDGetCATD ()
Fetch the catalog object for this transfer. More...

SDTS_XREFGetXREF ()
Fetch the external reference object for this transfer. More...

DDFFieldGetAttr ( SDTSModId * )
Fetch the attribute fields given a particular module/record id. More...


Detailed Description

Master class representing an entire SDTS transfer.

This class is used to open the transfer, to get a list of available feature layers, and to instantiate readers for those layers.


Member Function Documentation

int SDTSTransfer::Open (const char * pszFilename)

Open an SDTS transfer, and establish a list of data layers in the transfer.

Parameters:
pszFilename - The name of the CATD file within the transfer.

Returns:
TRUE if the open success, or FALSE if it fails.

int SDTSTransfer::FindLayer (const char * pszModule)

Fetch the SDTSTransfer layer number corresponding to a module name.

Parameters:
pszModule - the name of the module to search for, such as "PC01".

Returns:
the layer number (between 0 and GetLayerCount()-1 corresponding to the module, or -1 if it doesn't correspond to a layer.

SDTSLayerType SDTSTransfer::GetLayerType (int iEntry)

Fetch type of requested feature layer.

Parameters:
iEntry - the index of the layer to fetch information on. A value from zero to GetLayerCount()-1.

Returns:
the layer type.

int SDTSTransfer::GetLayerCATDEntry (int iEntry)

Fetch the CATD module index for a layer.

This can be used to fetch details about the layer/module from the SDTS_CATD object, such as it's filename, and description.

Parameters:
iEntry - the layer index from 0 to GetLayerCount()-1.

Returns:
the module index suitable for use with the various SDTS_CATD methods.

SDTSRasterReader * SDTSTransfer::GetLayerRasterReader (int iEntry)

Instantiate an SDTSRasterReader for the indicated layer.

Parameters:
iEntry - the index of the layer to instantiate a reader for. A value between 0 and GetLayerCount()-1.

Returns:
a pointer to a new SDTSRasterReader object, or NULL if the method fails.

NOTE: The reader returned from GetLayerRasterReader() becomes the responsibility of the caller to delete, and isn't automatically deleted when the SDTSTransfer is destroyed. This method is different from the GetLayerIndexedReader() method in this regard.

SDTSIndexedReader * SDTSTransfer::GetLayerIndexedReader (int iEntry)

Returns a pointer to a reader of the appropriate type to the requested layer.

Notes:

Parameters:
iEntry - the index of the layer to instantiate a reader for. A value between 0 and GetLayerCount()-1.

Returns:
a pointer to an appropriate reader or NULL if the method fails.

SDTS_CATD * SDTSTransfer::GetCATD ()

Fetch the catalog object for this transfer.

Returns:
pointer to the internally managed SDTS_CATD for the transfer.

SDTS_XREF * SDTSTransfer::GetXREF ()

Fetch the external reference object for this transfer.

Returns:
pointer to the internally managed SDTS_XREF for the transfer.

DDFField * SDTSTransfer::GetAttr (SDTSModId * poModId)

Fetch the attribute fields given a particular module/record id.

Parameters:
poModId - an attribute record identifer, normally taken from the aoATID[] array of an SDTSIndexedFeature.

Returns:
a pointer to the DDFField containing the user attribute values as subfields.

The documentation for this classwas generated from the following files:
Generated at Wed Sep 22 10:32:09 1999 for SDTS_AL by doxygen  written by Dimitri van Heesch, © 1997-1999