FlowEngine 7.530
Photogrammetry Software Development Kit
|
Stores the processing settings. More...
#include <SettingsInterface.h>
Public Member Functions | |
virtual FLE_DLL | ~SettingsInterface ()=default |
Default virtual destructor. | |
virtual FLE_DLL Result | setValue (ConstStringBuffer category, ConstStringBuffer name, ConstStringBuffer value)=0 |
virtual FLE_DLL Result | getValue (ConstStringBuffer category, ConstStringBuffer name, StringBuffer outValue) const =0 |
virtual FLE_DLL Size | getValueLength (ConstStringBuffer category, ConstStringBuffer name) const =0 |
virtual FLE_DLL Index | getKeyCount (ConstStringBuffer category) const =0 |
virtual FLE_DLL Size | getKeyLength (ConstStringBuffer category, Index key) const =0 |
virtual FLE_DLL Result | getKey (ConstStringBuffer category, Index key, StringBuffer outKey) const =0 |
virtual FLE_DLL Result | save (ConstStringBuffer filePath) const =0 |
virtual FLE_DLL Result | load (ConstStringBuffer filePath)=0 |
Stores the processing settings.
On construction, the object is filled with the default settings.
|
virtualdefault |
Default virtual destructor.
|
pure virtual |
[in] | category | the settings category |
[in] | key | the index of the key. Must be between [ 0, getKeyCount() ) |
[out] | outKey | the retrieved key |
|
pure virtual |
[in] | category | the settings category |
|
pure virtual |
[in] | category | the settings category |
[in] | key | the index of the key. Must be between [ 0, getKeyCount() ) |
|
pure virtual |
Returns the value of the category/name entry in the settings.
[in] | category | string buffer that contains the value category. |
[in] | name | string buffer that contains the value name. |
[out] | outValue | string buffer that receives the category/name entry value. |
category
, name
or value
is not a valid string buffer.value
is not big enough to receive the settings value. outValue
receives an empty string.
|
pure virtual |
Get the length of a category/name entry value.
[in] | category | string buffer that contains the value category. |
[in] | name | string buffer that contains the value name. |
|
pure virtual |
Loads settings from an xml file.
[in] | filePath | an UTF-8 encoded string containing the path to the file. |
filePath
is not a valid string buffer.filePath
does not point to a valid XML file.filePath
does not point to an existing file.
|
pure virtual |
Saves settings to an xml file. Overwrites existing files
[in] | filePath | an UTF-8 encoded string containing the target file path |
|
pure virtual |
Change the value of a category/name entry in the settings. If category/name is already present its value is overwritten, otherwise a new entry is created.
[in] | category | string buffer that contains the value category. |
[in] | name | string buffer that contains the value name. |
[in] | value | string buffer that contains the value. |
category
, name
or value
is not a valid string buffer.