#include <inifile.h>
Collaboration diagram for Inifile:

Public Methods | |
| Inifile (const std::string &loaded_from_file_) | |
| create an empty inifile. More... | |
| virtual | ~Inifile () |
| Sections::const_iterator | begin () const |
| start-iterator over all sections of the inifile. More... | |
| Sections::const_iterator | end () const |
| end-iterator over all sections of the inifile. More... | |
| const std::string & | loadedFrom () const |
| returns the filename the inifile was loaded from. More... | |
| void | insertSection (SectionPtr section, ChangesState mode=MINOR_CHANGES) |
| insert a new Section to Inifile. More... | |
| const SectionPtr | findSection (const std::string &name_) const |
| search a Section. More... | |
| SectionPtr | findSection (const std::string &name_) |
| SectionPtr | expectSection (const std::string &name_) const |
| find an existing Section. More... | |
| SectionPtr | findOrCreateSection (const std::string &name_, ChangesState mode=MINOR_CHANGES) |
| search for or create a Section. More... | |
| const EntryPtr | findEntry (const std::string §ion, const std::string &entry) const |
| search an entry. More... | |
| EntryPtr | findEntry (const std::string §ion, const std::string &entry) |
| const std::string & | findStringEntry (const std::string §ion, const std::string &entry) const |
| search a string entry. More... | |
| double | findNumericEntry (const std::string §ion, const std::string &entry) const |
| search a numeric entry. More... | |
| long | findIntegerEntry (const std::string §ion, const std::string &entry) const |
| search a numeric entry. More... | |
| void | dump (std::ostream &out) const |
| write Inifile to stream. More... | |
| ChangesState | changesMade () const |
| test if changes were made. More... | |
| void | fixState () |
| set everything to unchanged. More... | |
Private Methods | |
| void | set_changes_made (ChangesState mode) |
| update ChangesState of Inifile. More... | |
Private Attributes | |
| Sections | sections |
| contains all Section's of the Inifile. More... | |
| ChangesState | changes_made |
| records if changes were made to the Inifile. More... | |
| std::string | loaded_from_file |
Definition at line 417 of file inifile.h.
|
|
create an empty inifile.
|
|
|
|
|
|
update ChangesState of Inifile.
|
|
|
start-iterator over all sections of the inifile.
|
|
|
end-iterator over all sections of the inifile.
|
|
|
returns the filename the inifile was loaded from.
Definition at line 449 of file inifile.h. Referenced by Inifile::expectSection(). |
|
||||||||||||
|
insert a new Section to Inifile.
Definition at line 455 of file inifile.h. Referenced by Inifile::findOrCreateSection(). |
|
|
search a Section.
Definition at line 468 of file inifile.h. Referenced by Inifile::expectSection(), and Inifile::findOrCreateSection(). |
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Definition at line 303 of file inifile.cpp. |
|
|
find an existing Section.
Definition at line 293 of file inifile.cpp. Referenced by Inifile::findEntry(), Inifile::findIntegerEntry(), Inifile::findNumericEntry(), and Inifile::findStringEntry(). |
|
||||||||||||
|
search for or create a Section. if Section does not exist, it is created.
Definition at line 228 of file inifile.cpp. |
|
||||||||||||
|
search an entry.
Definition at line 285 of file inifile.cpp. |
|
||||||||||||
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. |
|
||||||||||||
|
search a string entry.
Definition at line 262 of file inifile.cpp. |
|
||||||||||||
|
search a numeric entry.
Definition at line 270 of file inifile.cpp. |
|
||||||||||||
|
search a numeric entry.
Definition at line 277 of file inifile.cpp. |
|
|
write Inifile to stream.
|
|
|
test if changes were made.
Definition at line 242 of file inifile.cpp. |
|
|
set everything to unchanged.
Definition at line 252 of file inifile.cpp. |
|
|
contains all Section's of the Inifile.
Definition at line 421 of file inifile.h. Referenced by Inifile::changesMade(), Inifile::findSection(), and Inifile::fixState(). |
|
|
records if changes were made to the Inifile.
Definition at line 424 of file inifile.h. Referenced by Inifile::changesMade(), and Inifile::fixState(). |
|
|
|
|
Contact me in case of errors or questions. This documentation is powered by |
(C) 2000-2002 |