FlowEngine 7.530
Photogrammetry Software Development Kit
|
Utility class to work with settings. More...
#include <SettingsManager.h>
Utility class to work with settings.
This class offers utilities to query for valid settings cateogries and values and manipulate strings in the context of settings (i.e. join and split key/category).
|
static |
Get a key default value in string form.
[in] | key | the settings key (category and name combined) to query. |
[out] | outDefaultValue | the settings default value in string form. |
outDefaultValue
was filled with the key default value.key
is not a valid string buffer or is not a valid key.outDefaultValue
is not a valid string buffer.outDefaultValue
is not big enough to store the default value.
|
static |
[in] | key | the settings key (category and name combined) to query. |
|
static |
Get a key valid range (i.e. the minimum and maximum possible value, inclusive)
[in] | key | the settings key (category and name combined) to query. |
[out] | outMin | the settings key minimum allowed value. |
[out] | outMax | the settings key maximum allowed value. |
outMin
and outMax
were filled with the key valid ranges.key
is not a valid string buffer or is not a valid key.
|
static |
Query a key minimum and maximum possible values in string form.
[in] | key | the settings key (category and name combined) to query. |
[out] | outMinValue | the settings key minimum allowed value in string form. |
[out] | outMaxValue | the settings key maximum allowed value in string form. |
outDefaultValue
was filled with the key default value.key
is not a valid string buffer or is not a valid key.outMinValue
is not a valid string buffer.outMaxValue
is not a valid string buffer.outMinValue
is not big enough to store the default value.outMaxValue
is not big enough to store the default value.
|
static |
Returns the length of the key minimum and maximum possible values in string form or 0 if the key is not valid (i.e. isValidKey(key) returns false).
[in] | key | the settings key (category and name combined) to query. |
[out] | outMinLength | the length of the settings key minimum allowed value in string form. |
[out] | outMaxLength | the length of the settings key maximum allowed value in string form. |
|
static |
[in] | phase | a constant string buffer containing a phase name. Must be one of the following:
|
|
static |
Get the name of a category for a specific phase at the specified index.
[in] | phase | a constant string buffer containing a phase name. Must be one of the following:
|
[in] | categoryIndex | The index of the category to query for the name. Must be between 0 and getValidCategoriesCount(). |
[out] | outCategory | a string buffer that receives the category name. The buffer must be big at least getValidCategorySize(). |
outCategory
was filled with the category name.outCategory
is not a valid string buffer.outCategory
is not big enough to receive the category name.
|
static |
[in] | phase | a constant string buffer containing a phase name. Must be one of the following:
|
[in] | categoryIndex | The index of the category to query for the name. Must be between 0 and getValidCategoriesCount(). |
|
static |
Get the Settings valid key for Settings at the specified index.
[in] | idx | the index of the key to query for size. Must be between [0, getValidKeysCount()] |
[in,out] | outKey | mutable string buffer that receives the joined key. Must be at least getValidKeySize() long. |
outKey
was filled with the valid key.outKey
is not a valid string buffer.outKey
is not big enough to receive the key.
|
static |
Get the number of Settings valid keys.
[in] | idx | the index of the key to query for size. Must be between [0, getValidKeysCount()] |
|
static |
Get the preset name for the specified phase and category.
[in] | phase | the phase |
[in] | category | the category |
[in] | presetIndex | the index of the preset to query. Must be between [0, getValidPresetsCount()) |
[out] | outPreset | string buffer that receives the preset name. The buffer must be big at least getValidPresetSize(). |
outPreset
was filled with the preset name.outPreset
is not a valid string buffer.outPreset
is not big enough to receive the preset name.
|
static |
[in] | phase | the phase |
[in] | category | the category |
|
static |
[in] | phase | the phase |
[in] | category | the category |
[in] | presetIndex | the index of the preset to query. Must be between [0, getValidPresetsCount()) |
|
static |
key
is a well-formed key and is a valid Settings key, false otherwise [in] | key | the settings key (category and name combined) to query. |
|
static |
Joins a Settings category and name to form a key entry.
[in] | category | string buffer containing the category. |
[in] | name | string buffer containing the name. |
[in,out] | outKey | mutable string buffer that receives the joined key. Must be at least joinCategoryNameSize() long. |
outKey
is filled with the joined category/name pair.category
, name
or outKey
is not a valid string buffer.outKey
is not big enough to receive all the data.
|
static |
[in] | category | string buffer containing the category. |
[in] | name | string buffer containing the name. |
|
static |
Splits a key into category and name.
[in] | key | string buffer containing the key. |
[out] | outCategory | mutable string buffer that will receive the category portion of the key. |
[out] | outName | mutable string buffer that will receive the name portion of the key. |
outCategory
and outName
are filled with the relative parts of the key.key
, outCategory
or outName
is not a valid string buffer.key
is not a valid slash separated combination of category and name.outCategory
or outName
is not big enough to receive all the data.
|
static |
[in] | key | string buffer containing the key. |
|
static |
[in] | key | string buffer containing the key. |