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 =
"";
50 bool value_bool =
false;
51 float value_float = 0.0f;
57 std::string
id =
"unspecified";
89 std::string* AsString();
128 std::string ConvertRawValueToString();
133 void UpdateValue(std::string new_value);
138 std::string* GetRawValue();
155 std::string GetDisplayNameString();
172 std::string GetDescriptionString();
186 std::string CreateConfigFileLine();
198 std::map<std::string, std::string> GetEnumeratorOptions();
210 std::string filename;
213 std::map<std::string, BlamConfigurationSetting*>
settings;
251 bool HasOption(std::string option);
261 std::string* GetString(std::string option);
271 bool* GetBool(std::string option);
281 float* GetFloat(std::string option);
291 int* GetInt(std::string option);
318 std::string GetDisplayNameString();
323 void RestoreDefaultSettings();
334 void ClearSections();
337 std::map<std::string, BlamConfigurationSection*>
sections;
339 std::string filename =
"";
340 std::string defaults_filename =
"";
341 std::string comment_delimeter =
"";
363 BlamResult LoadDefaults(std::string _filename);
414 bool HasConfigurationSection(std::string section_name);
438 std::string GetDisplayNameString();
443 void RestoreDefaultSettings();
451 namespace Settings::Config