Deleted Added
sdiff udiff text old ( 11168:f98eb2da15a4 ) new ( 11655:6c21ab852ed2 )
full compact
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 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__