#include <SPAIOptions.h>


Public Member Functions | |
| SPAIResult | Add (const SPAIOptionName &iOptionName, const SPAIValue &iOptionValue) |
| Adds an option to the option list. | |
| void * | GetData () const |
| For Spatial Corp. | |
| SPAIResult | GetOptionAt (int iIndex, SPAIOptionName &oOptionName, SPAIValue &oOptionValue) |
| Get the option name and value. | |
| int | GetOptionsCount () |
| Return the number of options. | |
| virtual bool | IsValid () const |
| SPAIResult | Load (const SPAIFile &iOptionFile) |
| Loads options from an option file. | |
| void | SetData (void *ipData) |
| For Spatial Corp. | |
| SPAIOptions () | |
| Constructor. | |
| virtual | ~SPAIOptions () |
| Destructor. | |
Protected Member Functions | |
| int | Ref () |
| int | Unref () |
Protected Attributes | |
| SPAIObjectType | _type |
SPAIOptions stores a list of options with associated values. A SPAIOptions object can be passed to a SPAIConverter object in order to customize the translation. Options can be loaded from an option file or added one by one. The list of available options is provided in the Interop documentation.
| SPAIOptions::SPAIOptions | ( | ) |
Constructor.
| virtual SPAIOptions::~SPAIOptions | ( | ) | [virtual] |
Destructor.
| SPAIResult SPAIOptions::Add | ( | const SPAIOptionName & | iOptionName, | |
| const SPAIValue & | iOptionValue | |||
| ) |
Adds an option to the option list.
| iOptionName,: | Name of the option to add | |
| iOptionValue,: | Value of the option to add |
| void* SPAIObject::GetData | ( | ) | const [inherited] |
For Spatial Corp.
internal use only.
| SPAIResult SPAIOptions::GetOptionAt | ( | int | iIndex, | |
| SPAIOptionName & | oOptionName, | |||
| SPAIValue & | oOptionValue | |||
| ) |
Get the option name and value.
| iIndex,: | Index between 0 included and the options count excluded of the option. | |
| iOptionName,: | The returned option name | |
| iOptionValue,: | The returned option value |
| int SPAIOptions::GetOptionsCount | ( | ) |
Return the number of options.
| virtual bool SPAIObject::IsValid | ( | ) | const [virtual, inherited] |
| SPAIResult SPAIOptions::Load | ( | const SPAIFile & | iOptionFile | ) |
Loads options from an option file.
| iOptionFile,: | the file object to the option file |
| int SPAIObject::Ref | ( | ) | [protected, inherited] |
| void SPAIObject::SetData | ( | void * | ipData | ) | [inherited] |
For Spatial Corp.
internal use only.
| int SPAIObject::Unref | ( | ) | [protected, inherited] |
SPAIObjectType SPAIObject::_type [protected, inherited] |