![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
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) |
TSLWPSPluginDataSource * | operator[] (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) |
TSLWPSDataSourceSet::TSLWPSDataSourceSet | ( | ) |
Default constructor.
Creates an empty TSLWPSDataSourceSet.
Use the destroy method to destroy an instance of this class, rather than the delete operator.
bool TSLWPSDataSourceSet::add | ( | TSLWPSPluginDataSource * | dataSource | ) |
Adds a TSLWPSPluginDataSource pointer to the Data Source Set.
dataSource | TSLWPSPluginDataSource* to be appended to the Data Source Set |
void TSLWPSDataSourceSet::clear | ( | ) |
Clears the TSLDataSourceSet of all items
void TSLWPSDataSourceSet::destroy | ( | ) |
Destroy a TSLWPSDataSourceSet
void TSLWPSDataSourceSet::destroyAndChildren | ( | ) |
Internal - this destroys this object and will also destroy all child TSLWPSDataSource instances as if they were owned by this object.
void * TSLWPSDataSourceSet::operator new | ( | size_t | size | ) |
These are here to avoid being documented Allocation redirection for API.
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.
TSLWPSPluginDataSource * TSLWPSDataSourceSet::operator[] | ( | int | index | ) | const |
Access the TSLWPSPluginDataSource at the specified index.
index | Index into Data Source Set |
int TSLWPSDataSourceSet::size | ( | ) |
Counts the number of available items in the TSLDataSourceSet
Returns the number of TSLWPSPluginDataSource pointers stored.