FlowEngine 7.530
Photogrammetry Software Development Kit
Loading...
Searching...
No Matches
SettingsManager.h
Go to the documentation of this file.
1/*
2 *
3 * C@@o ____ _____ __ _
4 * oC8@@@@@@@o |___ \| __ \ / _| |
5 * o@@@@@@@@@@@@O __) | | | | |_| | _____ __
6 * O@O 8@@@@@@@@@O |__ <| | | | _| |/ _ \ \ /\ / /
7 * o@@@@@@@O OOOOOCo ___) | |__| | | | | (_) \ V V /
8 * C@@@@@@@@@@@@Oo |____/|_____/|_| |_|\___/ \_/\_/
9 * o8@@@@@@@@@@@@@@@@8OOCCCC
10 * oO@@@@@@@@@@@@@@@@@@@o 3Dflow s.r.l. - www.3dflow.net
11 * oO8@@@@@@@@@@@@o Copyright 2022
12 * oO88@@@@@@@@8OCo All Rights Reserved
13 * O@@@@@@@@@@@@@@@@@@@@@@@@@8OCCoooooooCCo
14 * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@O
15 * @@@Oo oO8@@@@@@@@@@@@@@@@8
16 *
17 */
18
19#ifndef FLOWENGINESETTINGSMANAGERINTERFACE_H
20#define FLOWENGINESETTINGSMANAGERINTERFACE_H
21
22#pragma once
23
24#include "CommonDef.h"
25
26namespace FlowEngine
27{
32 class SettingsManager final
33 {
34 public:
35
43 static FLE_DLL Index getValidCategoriesCount( ConstStringBuffer phase );
44
54 static FLE_DLL Size getValidCategorySize( ConstStringBuffer phase, Index categoryIndex );
55
71 static FLE_DLL Result getValidCategory( ConstStringBuffer phase, Index categoryIndex, StringBuffer outCategory );
72
76 static FLE_DLL Index getValidPresetsCount( ConstStringBuffer phase, ConstStringBuffer category );
77
82 static FLE_DLL Size getValidPresetSize( ConstStringBuffer phase, ConstStringBuffer category, Index presetIndex );
83
94 static FLE_DLL Result getValidPreset( ConstStringBuffer phase, ConstStringBuffer category, Index presetIndex, StringBuffer outPreset );
95
96 public:
97
99 static FLE_DLL Index getValidKeyCount();
100
103 static FLE_DLL Size getValidKeySize( Index idx );
104
112 static FLE_DLL Result getValidKey( Index idx, StringBuffer outKey );
113
116 static FLE_DLL bool isValidKey( ConstStringBuffer key );
117
127 static FLE_DLL Result getKeyMinMax( ConstStringBuffer key, double &outMin, double &outMax );
128
139 static FLE_DLL Result getKeyDefaultValue( ConstStringBuffer key, StringBuffer outDefaultValue );
140
143 static FLE_DLL Size getKeyDefaultValueLength( ConstStringBuffer key );
144
162 static FLE_DLL Result getKeyMinMaxValue( ConstStringBuffer key, StringBuffer outMinValue, StringBuffer outMaxValue );
163
168 static FLE_DLL void getKeyMinMaxValueLength( ConstStringBuffer key, Size &outMinLength, Size &outMaxLength );
169
170 public:
171
175 static FLE_DLL Size joinCategoryNameSize( ConstStringBuffer category, ConstStringBuffer name );
176
185 static FLE_DLL Result joinCategoryName( ConstStringBuffer category, ConstStringBuffer name, StringBuffer outKey );
186
187 public:
188
191 static FLE_DLL Size splitKeyCategorySize( ConstStringBuffer key );
192
195 static FLE_DLL Size splitKeyNameSize( ConstStringBuffer key );
196
207 static FLE_DLL Result splitKey( ConstStringBuffer key, StringBuffer outCategory, StringBuffer outName );
208 };
209}
210
211#endif
Utility class to work with settings.
Definition: SettingsManager.h:33
static FLE_DLL Index getValidPresetsCount(ConstStringBuffer phase, ConstStringBuffer category)
Definition: SettingsManager.cpp:146
static FLE_DLL Size splitKeyNameSize(ConstStringBuffer key)
Definition: SettingsManager.cpp:446
static FLE_DLL Size splitKeyCategorySize(ConstStringBuffer key)
Definition: SettingsManager.cpp:432
static FLE_DLL Result getKeyMinMaxValue(ConstStringBuffer key, StringBuffer outMinValue, StringBuffer outMaxValue)
Definition: SettingsManager.cpp:368
static FLE_DLL Result getKeyMinMax(ConstStringBuffer key, double &outMin, double &outMax)
Definition: SettingsManager.cpp:306
static FLE_DLL Result getValidPreset(ConstStringBuffer phase, ConstStringBuffer category, Index presetIndex, StringBuffer outPreset)
Definition: SettingsManager.cpp:172
static FLE_DLL Size getKeyDefaultValueLength(ConstStringBuffer key)
Definition: SettingsManager.cpp:352
static FLE_DLL Result splitKey(ConstStringBuffer key, StringBuffer outCategory, StringBuffer outName)
Definition: SettingsManager.cpp:457
static FLE_DLL Index getValidKeyCount()
Get the number of Settings valid keys.
Definition: SettingsManager.cpp:191
static FLE_DLL void getKeyMinMaxValueLength(ConstStringBuffer key, Size &outMinLength, Size &outMaxLength)
Definition: SettingsManager.cpp:399
static FLE_DLL Result getValidCategory(ConstStringBuffer phase, Index categoryIndex, StringBuffer outCategory)
Definition: SettingsManager.cpp:122
static FLE_DLL Result getKeyDefaultValue(ConstStringBuffer key, StringBuffer outDefaultValue)
Definition: SettingsManager.cpp:330
static FLE_DLL Size getValidCategorySize(ConstStringBuffer phase, Index categoryIndex)
Definition: SettingsManager.cpp:105
static FLE_DLL Size getValidPresetSize(ConstStringBuffer phase, ConstStringBuffer category, Index presetIndex)
Definition: SettingsManager.cpp:159
static FLE_DLL bool isValidKey(ConstStringBuffer key)
Definition: SettingsManager.cpp:285
static FLE_DLL Index getValidCategoriesCount(ConstStringBuffer phase)
Definition: SettingsManager.cpp:94
static FLE_DLL Result joinCategoryName(ConstStringBuffer category, ConstStringBuffer name, StringBuffer outKey)
Definition: SettingsManager.cpp:424
static FLE_DLL Result getValidKey(Index idx, StringBuffer outKey)
Definition: SettingsManager.cpp:247
static FLE_DLL Size getValidKeySize(Index idx)
Definition: SettingsManager.cpp:214
static FLE_DLL Size joinCategoryNameSize(ConstStringBuffer category, ConstStringBuffer name)
Definition: SettingsManager.cpp:298
Definition: BoundingBoxInterface.cpp:26
std::ptrdiff_t Index
Index type.
Definition: CommonDef.h:100
std::size_t Size
Size type.
Definition: CommonDef.h:103
Result
Enumerates possible results generated by FlowEngine.
Definition: CommonDef.h:45
Specialization for a Buffer of characters.
Definition: CommonDef.h:255
Specialization for a const buffer characters.
Definition: CommonDef.h:296