- CONFIG_EXPORT static std::string string(const std::string& theSection, const std::string& theName,
- const std::string& theDefault);
- CONFIG_EXPORT static std::vector<int> color(const std::string& theSection, const std::string& theName,
- const std::string& theDefault);
- CONFIG_EXPORT static int integer(const std::string& theSection, const std::string& theName,
- const std::string& theDefault);
- CONFIG_EXPORT static double real(const std::string& theSection, const std::string& theName,
- const std::string& theDefault);
+ CONFIG_EXPORT static std::string string(const std::string& theSection,
+ const std::string& theName);
+ //! Returns color by given section and name as 3-element vector {r,g,b}.
+ CONFIG_EXPORT static std::vector<int> color(const std::string& theSection,
+ const std::string& theName);
+ //! Returns integer by given section and name
+ CONFIG_EXPORT static int integer(const std::string& theSection,
+ const std::string& theName);
+ //! Returns real by given section and name
+ CONFIG_EXPORT static double real(const std::string& theSection,
+ const std::string& theName);
+ //! Returns boolean by given section and name
+ CONFIG_EXPORT static bool boolean(const std::string& theSection,
+ const std::string& theName);
+
+ //! Returns convertion of the string to double value. Temporary changes locale to process
+ //! values contained "," or "." separator.
+ //! \param theDouble a value to be converted
+ //! \return double result or zero
+ CONFIG_EXPORT static double stringToDouble(const std::string& theDouble);
+
+ //! Returns Auto-color status as a Boolean
+ CONFIG_EXPORT static bool getAutoColorStatus();
+
+ //! Set Auto-color boolean value
+ //! \param theValue a value to use
+ CONFIG_EXPORT static void setAutoColorStatus(const bool theValue);