inifile.hh (11168:f98eb2da15a4) inifile.hh (11655:6c21ab852ed2)
1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 170 unchanged lines hidden (view full) ---

179 bool add(const std::string &s);
180
181 /// Find value corresponding to given section and entry names.
182 /// Value is returned by reference in 'value' param.
183 /// @retval True if found, false if not.
184 bool find(const std::string &section, const std::string &entry,
185 std::string &value) const;
186
1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 170 unchanged lines hidden (view full) ---

179 bool add(const std::string &s);
180
181 /// Find value corresponding to given section and entry names.
182 /// Value is returned by reference in 'value' param.
183 /// @retval True if found, false if not.
184 bool find(const std::string &section, const std::string &entry,
185 std::string &value) const;
186
187 /// Determine whether the entry exists within named section exists
188 /// in the .ini file.
189 /// @return True if the section exists.
190 bool entryExists(const std::string &section,
191 const std::string &entry) const;
192
187 /// Determine whether the named section exists in the .ini file.
188 /// Note that the 'Section' class is (intentionally) not public,
189 /// so all clients can do is get a bool that says whether there
190 /// are any values in that section or not.
191 /// @return True if the section exists.
192 bool sectionExists(const std::string &section) const;
193
194 /// Push all section names into the given vector
195 void getSectionNames(std::vector<std::string> &list) const;
196
197 /// Print unreferenced entries in object. Iteratively calls
198 /// printUnreferend() on all the constituent sections.
199 bool printUnreferenced();
200
201 /// Dump contents to cout. For debugging.
202 void dump();
203};
204
205#endif // __INIFILE_HH__
193 /// Determine whether the named section exists in the .ini file.
194 /// Note that the 'Section' class is (intentionally) not public,
195 /// so all clients can do is get a bool that says whether there
196 /// are any values in that section or not.
197 /// @return True if the section exists.
198 bool sectionExists(const std::string &section) const;
199
200 /// Push all section names into the given vector
201 void getSectionNames(std::vector<std::string> &list) const;
202
203 /// Print unreferenced entries in object. Iteratively calls
204 /// printUnreferend() on all the constituent sections.
205 bool printUnreferenced();
206
207 /// Dump contents to cout. For debugging.
208 void dump();
209};
210
211#endif // __INIFILE_HH__