![]() |
MapLink Pro 11.2
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
A configuration object for a direct import driver.
Public Member Functions | |
| Configuration () | |
| Constructor. | |
| Configuration (const Configuration &obj) | |
| Copy Constructor. | |
| virtual | ~Configuration () |
| Destructor. | |
| bool | load (const char *file) |
| bool | save (const char *file) |
| const char * | getValue (const char *key) |
| void | setValue (const char *key, const char *val) |
| void | clearValue (const char *key) |
| unsigned int | numEntries () const |
| bool | getEntry (unsigned int index, TSLSimpleString &key, TSLSimpleString &value) const |
| bool | operator== (const TSLDirectImportDriver::Configuration &obj) |
| Equality operator. | |
| void | operator= (const TSLDirectImportDriver::Configuration &obj) |
| Assignment operator. | |
| TSLDirectImportDriver::Configuration::Configuration | ( | ) |
Constructor.
| TSLDirectImportDriver::Configuration::Configuration | ( | const Configuration & | obj | ) |
Copy Constructor.
|
virtual |
Destructor.
| void TSLDirectImportDriver::Configuration::clearValue | ( | const char * | key | ) |
Clear a configuration value
| key | The key of the configuration value |
| bool TSLDirectImportDriver::Configuration::getEntry | ( | unsigned int | index, |
| TSLSimpleString & | key, | ||
| TSLSimpleString & | value ) const |
Query a configuration entry
| index | The index of the entry to query |
| key | Will be set to the key of the requested entry |
| value | Will be set to the value of the requested entry |
| const char * TSLDirectImportDriver::Configuration::getValue | ( | const char * | key | ) |
Query a configuration value
| key | The key of the configuration value |
| bool TSLDirectImportDriver::Configuration::load | ( | const char * | file | ) |
Load the configuration from a file
Example format:
a.b.c.property=value anotherproperty=anothervalue
This configuration is provided to the driver in order to specify settings for the data import process.
| file | The configuration file to load from |
| unsigned int TSLDirectImportDriver::Configuration::numEntries | ( | ) | const |
Query the number of configuration entries
| void TSLDirectImportDriver::Configuration::operator= | ( | const TSLDirectImportDriver::Configuration & | obj | ) |
Assignment operator.
| bool TSLDirectImportDriver::Configuration::operator== | ( | const TSLDirectImportDriver::Configuration & | obj | ) |
Equality operator.
| bool TSLDirectImportDriver::Configuration::save | ( | const char * | file | ) |
Save the configuration to a file
| file | The configuration file to save to |
| void TSLDirectImportDriver::Configuration::setValue | ( | const char * | key, |
| const char * | val ) |
Set a configuration value
| key | The key of the configuration value |
| val | The configuration value to store |