MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLInteropManager Class Reference

Detailed Description

TSLInteropManager provides pre-processing and post-processing functionality for TMF data.

This class is typically used before writing TMF data to a native file format or after reading such data. The TSLUtilityFunctions class and appropriate filters provide the read/write functionality. The TSLInteropManager is configured via a separate class TSLInteropConfig.

TSLInteropManager objects should be allocated on the heap using the new operator. They cannot be instantiated on the stack. They should be destroyed by calling the destroy method rather than deleting them since the calls are redirected internally to MapLink.

Public Member Functions

 TSLInteropManager ()
 
void destroy ()
 
bool postImportProcess (const TSLInteropConfig *config, const TSLInteropImportSet *importSet, bool append, TSLStandardDataLayer *processedLayer)
 
bool preExportProcess (const TSLInteropConfig *config, const TSLStandardDataLayer *layer, TSLInteropExportSet **exportSet)
 
void * operator new (size_t size) TSL_NO_THROW
 
void * operator new (size_t size, char *filename, int line)
 

Constructor & Destructor Documentation

◆ TSLInteropManager()

TSLInteropManager::TSLInteropManager ( )

Creates a default TSLInteropManager.

Member Function Documentation

◆ destroy()

void TSLInteropManager::destroy ( )

Destroy method. This should be called rather than deleting the object, since the calls are redirected internally to MapLink.

◆ operator new() [1/2]

void * TSLInteropManager::operator new ( size_t size)

Overridden allocation to redirect to MapLink

◆ operator new() [2/2]

void * TSLInteropManager::operator new ( size_t size,
char * filename,
int line )

When included in an MFC application in debug mode, the debug new expects this to be here. Override it and return the same as the normal one. The library must include it when compiled in release mode, since the user's application may be in debug mode.

◆ postImportProcess()

bool TSLInteropManager::postImportProcess ( const TSLInteropConfig * config,
const TSLInteropImportSet * importSet,
bool append,
TSLStandardDataLayer * processedLayer )

Post-process a set of TSLStandardDataLayers. The processing options are defined by the TSLInteropConfig object; refer to the description of that class for a summary of these options.

Parameters
configConfiguration settings to be used for post-processing.
importSetContainer for the set of TSLStandardDataLayers to be post-processed.
appendFlag to indicate whether the processed data is appended to any existing data in processedLayer or whether the data in processedLayer is removed beforehand.
processedLayerTSLStandarDataLayer that is to hold the processed data. The client owns this layer and must create it before calling this method.
Returns
true on success; false otherwise.

◆ preExportProcess()

bool TSLInteropManager::preExportProcess ( const TSLInteropConfig * config,
const TSLStandardDataLayer * layer,
TSLInteropExportSet ** exportSet )

Pre-process a TSLStandardDataLayer. The processing options are defined by the TSLInteropConfig object; refer to the description of that class for a summary of these options.

Parameters
configConfiguration settings to be used for pre-processing.
layerTSLStandardDataLayer that is to be pre-processed.
exportSetContainer for the set of pre-processed TSLStandardDataLayers. The return manager creates the TSLInteropExportSet object and it to the client via this argument; the client takes ownership of it.
Returns
true on success; false otherwise.