- static std::string value(const std::string& theOwnerId,
- const std::string& theSection,
- const std::string& theName,
- const std::string& theDefault);
-
-private:
-
- /**
- * Registers property parameters
- * \param theOwnerId - name of owner (name of plugin for example)
- * \param theProp - the Property object.
- * Returns True if the property succesfully registered
- */
- static bool registerProp(const std::string& theOwnerId,
- Config_Prop* theProp);
-
- static std::map<std::string, Config_Properties> myPropMap;
+ 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);
+
+ private:
+
+ CONFIG_EXPORT static bool autoColorStatus; // Auto-color status
+
+ CONFIG_EXPORT static Config_Properties& props(); ///< List of all stored properties