]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Config/Config_PropManager.h
Salome HOME
Issue #1834: Fix length of lines
[modules/shaper.git] / src / Config / Config_PropManager.h
index 2d2facf5836e709e8ef2a603b84933ada6d62fa0..bb7854b10fe675eb14be99a650c6ede6027a0160 100644 (file)
@@ -14,7 +14,7 @@
 #include <string>
 #include <vector>
 
-/*
+/**
  * \class Config_PropManager
  * \ingroup Config
  * \brief Class which let to register properties
@@ -27,12 +27,15 @@ class Config_PropManager
    * Registers property parameters
    * \param theSection - name of section (domain of using) of the property.
    * \param theName - name (title) of the value.
+   * \param theTitle - title of the value.
    * \param theType - type of the value.
    * \param theDefValue - default and initial value of the property
    * Returns True if the property succesfully registered
    */
-  CONFIG_EXPORT static Config_Prop* registerProp(const std::string& theSection, const std::string& theName,
-    const std::string& theTitle, Config_Prop::PropType theType, const std::string& theDefValue = "");
+  CONFIG_EXPORT static Config_Prop* registerProp(const std::string& theSection,
+    const std::string& theName,
+    const std::string& theTitle, Config_Prop::PropType theType,
+    const std::string& theDefValue = "");
   //! Finds property in the given section by the given name, if property not found returns NULL
   CONFIG_EXPORT static Config_Prop* findProp(
     const std::string& theSection, const std::string& theName);
@@ -59,6 +62,10 @@ class Config_PropManager
   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