- 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,
+ const std::string& theDefault);
+ //! 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,
+ const std::string& theDefault);
+ //! Returns integer by given section and name
+ CONFIG_EXPORT static int integer(const std::string& theSection,
+ const std::string& theName,
+ const std::string& theDefault);
+ //! Returns real by given section and name
+ CONFIG_EXPORT static double real(const std::string& theSection,
+ const std::string& theName,
+ const std::string& theDefault);
+ //! Returns boolean by given section and name
+ CONFIG_EXPORT static bool boolean(const std::string& theSection,
+ const std::string& theName,
+ const std::string& theDefault);
+
+ private:
+ CONFIG_EXPORT static Config_Properties myProps; ///< List of all stored properties