File tree Expand file tree Collapse file tree 1 file changed +26
-6
lines changed Expand file tree Collapse file tree 1 file changed +26
-6
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ class IniValue
5858 */
5959 operator bool () const
6060 {
61- return ( bool ) numericValue ();
61+ return boolValue ();
6262 }
6363
6464 /* *
@@ -67,7 +67,7 @@ class IniValue
6767 */
6868 operator std::string () const
6969 {
70- return rawValue ();
70+ return stringValue ();
7171 }
7272
7373 /* *
@@ -84,9 +84,7 @@ class IniValue
8484 * @return double
8585 */
8686 operator double () const ;
87-
88- private:
89-
87+
9088 /* *
9189 * Retrieve the value as number
9290 *
@@ -98,12 +96,34 @@ class IniValue
9896 * @return int64_t
9997 */
10098 int64_t numericValue () const ;
99+
100+ /* *
101+ * Boolean value
102+ * @return bool
103+ */
104+ bool boolValue () const
105+ {
106+ return (bool )numericValue ();
107+ }
108+
109+ /* *
110+ * String value
111+ * @return std::string
112+ */
113+ std::string stringValue () const
114+ {
115+ return std::string (rawValue ());
116+ }
101117
102118 /* *
103- * Get access to the raw buffer for read operationrs .
119+ * Get access to the raw buffer for read operations .
104120 * @return const char *
105121 */
106122 const char *rawValue () const ;
123+
124+
125+ private:
126+
107127
108128 /* *
109129 * ini entry name
You can’t perform that action at this time.
0 commit comments