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

Detailed Description

This class defines an interface which allows entities to be added/modified/deleted from a database store during import of seamless layer data.

Public Member Functions

virtual ~TSLSLMEntityStoreHandler ()
 
virtual bool addEntity (const TSLEntity *entity)=0
 
virtual bool modifyEntity (const TSLEntity *entity)=0
 
virtual bool onBeginImport (const TSLDataHandler *dataHandler)=0
 
virtual bool onEndImport (bool importSuccess)=0
 
virtual bool removeEntity (const TSLEntity *entity)=0
 

Constructor & Destructor Documentation

◆ ~TSLSLMEntityStoreHandler()

virtual TSLSLMEntityStoreHandler::~TSLSLMEntityStoreHandler ( )
virtual

Member Function Documentation

◆ addEntity()

virtual bool TSLSLMEntityStoreHandler::addEntity ( const TSLEntity * entity)
pure virtual

Called when an entity should be added to the store.

Parameters
entityThe new entity.

◆ modifyEntity()

virtual bool TSLSLMEntityStoreHandler::modifyEntity ( const TSLEntity * entity)
pure virtual

Called when an entity should be updated in the store.

Parameters
entityThe modified entity.

◆ onBeginImport()

virtual bool TSLSLMEntityStoreHandler::onBeginImport ( const TSLDataHandler * dataHandler)
pure virtual

Called at the start of the data import process.

Parameters
dataHandlerThe data handler associated with the imported entities.

Clients should return a value of true to allow the SeamlessLayer manager to perform the import of data. A return value of false will force the onEndImport() method to be called immediately.

◆ onEndImport()

virtual bool TSLSLMEntityStoreHandler::onEndImport ( bool importSuccess)
pure virtual

Called at the end of the data import process.

Parameters
importSuccessA bool flag which indicates whether the main import process was successful.

A return value of false signifies that the derived-class object has encountered an error in its tidy-up phase.

◆ removeEntity()

virtual bool TSLSLMEntityStoreHandler::removeEntity ( const TSLEntity * entity)
pure virtual

Called when an entity should be removed from the store.

Parameters
entityThe entity to remove.