10 #ifdef STRINGS_EXPORTS
11 #define STRINGS_API __declspec(dllexport)
13 #define STRINGS_API __declspec(dllimport)
21 #define EDITOR_CONFIG_DEFAULT_NAME "editor_common.cfg"
23 #define CONFIG_DUMMY_SECTION_NAME "#___default"
45 std::string filename =
"";
46 std::string comment_delimeter =
"";
49 std::string value_raw =
"";
51 std::string value =
"";
52 bool value_bool =
false;
53 float value_float = 0.0f;
59 std::string
id =
"unspecified";
91 std::string* AsString();
130 std::string ConvertRawValueToString();
135 void UpdateValue(std::string new_value);
140 std::string* GetRawValue();
157 std::string GetDisplayNameString();
174 std::string GetDescriptionString();
188 std::string CreateConfigFileLine();
200 std::map<std::string, std::string> GetEnumeratorOptions();
212 std::string filename;
215 std::map<std::string, BlamConfigurationSetting*>
settings;
253 bool HasOption(std::string option);
263 std::string* GetString(std::string option);
273 bool* GetBool(std::string option);
283 float* GetFloat(std::string option);
293 int* GetInt(std::string option);
320 std::string GetDisplayNameString();
325 void RestoreDefaultSettings();
336 void ClearSections();
339 std::map<std::string, BlamConfigurationSection*>
sections;
341 std::string filename =
"";
342 std::string defaults_filename =
"";
343 std::string comment_delimeter =
"";
376 BlamResult LoadDefaults(std::string _filename);
427 bool HasConfigurationSection(std::string section_name);
451 std::string GetDisplayNameString();
456 void RestoreDefaultSettings();
464 namespace Settings::Config