@@ -115,33 +115,38 @@ int ini_browse(INI_CALLBACK Callback, void *UserData, const mTCHAR *Filename);
115
115
#endif
116
116
117
117
#if ! defined INI_READONLY
118
- bool put (const std::string& Section, const std::string& Key, long Value) const
118
+ bool put (const std::string& Section, const std::string& Key, long Value)
119
119
{ return ini_putl (Section.c_str (), Key.c_str (), Value, iniFilename.c_str ()) != 0 ; }
120
120
121
- bool put (const std::string& Section, const std::string& Key, int Value) const
121
+ bool put (const std::string& Section, const std::string& Key, int Value)
122
122
{ return ini_putl (Section.c_str (), Key.c_str (), (long )Value, iniFilename.c_str ()) != 0 ; }
123
123
124
- bool put (const std::string& Section, const std::string& Key, bool Value) const
124
+ bool put (const std::string& Section, const std::string& Key, bool Value)
125
125
{ return ini_putl (Section.c_str (), Key.c_str (), (long )Value, iniFilename.c_str ()) != 0 ; }
126
126
127
- bool put (const std::string& Section, const std::string& Key, const std::string& Value) const
127
+ bool put (const std::string& Section, const std::string& Key, const std::string& Value)
128
128
{ return ini_puts (Section.c_str (), Key.c_str (), Value.c_str (), iniFilename.c_str ()) != 0 ; }
129
129
130
- bool put (const std::string& Section, const std::string& Key, const char * Value) const
130
+ bool put (const std::string& Section, const std::string& Key, const char * Value)
131
131
{ return ini_puts (Section.c_str (), Key.c_str (), Value, iniFilename.c_str ()) != 0 ; }
132
132
133
133
#if defined INI_REAL
134
- bool put (const std::string& Section, const std::string& Key, INI_REAL Value) const
134
+ bool put (const std::string& Section, const std::string& Key, INI_REAL Value)
135
135
{ return ini_putf (Section.c_str (), Key.c_str (), Value, iniFilename.c_str ()) != 0 ; }
136
136
#endif
137
137
138
- bool del (const std::string& Section, const std::string& Key) const
138
+ bool del (const std::string& Section, const std::string& Key)
139
139
{ return ini_puts (Section.c_str (), Key.c_str (), 0 , iniFilename.c_str ()) != 0 ; }
140
140
141
- bool del (const std::string& Section) const
141
+ bool del (const std::string& Section)
142
142
{ return ini_puts (Section.c_str (), 0 , 0 , iniFilename.c_str ()) != 0 ; }
143
143
#endif
144
144
145
+ #if !defined INI_NOBROWSE
146
+ bool browse (INI_CALLBACK Callback, void *UserData) const
147
+ { return ini_browse (Callback, UserData, iniFilename.c_str ()) != 0 ; }
148
+ #endif
149
+
145
150
private:
146
151
std::string iniFilename;
147
152
};
0 commit comments