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

Detailed Description

This class is used to store a set of TSLWPSPluginDataSource pointers. This class does not own the data sources themselves. To destroy a TSLWPSData SourceSet, call the public destroy method, rather than the delete operator, although please note it will not delete the TSLWPSPluginDataSource items contained, the TSLWPSDataSourceSet class simply will not reference the items.

Public Member Functions

 TSLWPSDataSourceSet ()
 
int size ()
 
void clear ()
 
bool add (TSLWPSPluginDataSource *dataSource)
 
TSLWPSPluginDataSourceoperator[] (int index) const
 
void destroy ()
 
void destroyAndChildren ()
 
void * operator new (size_t size) TSL_NO_THROW
 
void * operator new (size_t size, char *filename, int line)
 

Constructor & Destructor Documentation

◆ TSLWPSDataSourceSet()

TSLWPSDataSourceSet::TSLWPSDataSourceSet ( )

Default constructor.

Creates an empty TSLWPSDataSourceSet.

Use the destroy method to destroy an instance of this class, rather than the delete operator.

Member Function Documentation

◆ add()

bool TSLWPSDataSourceSet::add ( TSLWPSPluginDataSource * dataSource)

Adds a TSLWPSPluginDataSource pointer to the Data Source Set.

Parameters
dataSourceTSLWPSPluginDataSource* to be appended to the Data Source Set
Returns
true on success, false otherwise.

◆ clear()

void TSLWPSDataSourceSet::clear ( )

Clears the TSLDataSourceSet of all items

◆ destroy()

void TSLWPSDataSourceSet::destroy ( )

◆ destroyAndChildren()

void TSLWPSDataSourceSet::destroyAndChildren ( )

Internal - this destroys this object and will also destroy all child TSLWPSDataSource instances as if they were owned by this object.

◆ operator new() [1/2]

void * TSLWPSDataSourceSet::operator new ( size_t size)

These are here to avoid being documented Allocation redirection for API.

◆ operator new() [2/2]

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

When included in an MFC applicaton 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 users application may be in debug mode.

◆ operator[]()

TSLWPSPluginDataSource * TSLWPSDataSourceSet::operator[] ( int index) const

Access the TSLWPSPluginDataSource at the specified index.

Parameters
indexIndex into Data Source Set
Returns
a pointer to the specified TSLWPSPluginDataSource.

◆ size()

int TSLWPSDataSourceSet::size ( )

Counts the number of available items in the TSLDataSourceSet

Returns the number of TSLWPSPluginDataSource pointers stored.