#include <inifile.h>
Inheritance diagram for rs::ini::Section:
Public Methods | |
Section (const std::string &name_, unsigned long line_number) | |
create an empty section named name_ . More... | |
virtual | ~Section () |
const Inifile * | myInifile () const |
get pointer to my Section. More... | |
const std::string & | getName () const |
get name of the Section. More... | |
void | insertEntry (EntryPtr entry, ChangesState mode=MINOR_CHANGES) |
insert an entry into Section. More... | |
const EntryPtr | findEntry (const std::string &name_) const |
search for an entry. More... | |
EntryPtr | findEntry (const std::string &name_) |
EntryPtr | findOrCreateEntry (const std::string &name_, const std::string &content, ChangesState mode=MINOR_CHANGES, const char *add_comment=0) |
search for or create an Entry. More... | |
EntryPtr | findOrCreateEntry (const std::string &name_, long default_value, ChangesState mode=MINOR_CHANGES, const char *add_comment=0) |
EntryPtr | findOrCreateEntry (const std::string &name_, std::string(*get_content)(), ChangesState mode=MINOR_CHANGES, const char *add_comment=0) |
search for or create an Entry. More... | |
const std::string & | findStringEntry (const std::string &name_) const |
Searches section for an existing Entry. More... | |
double | findNumericEntry (const std::string &name_) const |
Searches section for an existing Entry. More... | |
long | findIntegerEntry (const std::string &name_) const |
Searches section for an existing Entry. More... | |
Entries::const_iterator | begin () const |
first section. More... | |
Entries::const_iterator | end () const |
behind last section. More... | |
void | clearEntries () |
delete all entries from section. More... | |
void | dump (std::ostream &out) const |
write Section to stream. More... | |
ChangesState | changesMade () const |
test if changes were made in this section. More... | |
void | fixState () |
reset ChangesState to NO_CHANGES. More... | |
void | throw_Error (const std::string &message) const |
throws an error referring the section. More... | |
Private Methods | |
void | set_changes_made (ChangesState mode) |
Update chages-state of Section. More... | |
EntryPtr | expectEntry (const std::string &name_) const |
Private Attributes | |
std::string | name |
Entries | entries |
ChangesState | changes_made |
Inifile * | my_inifile |
Friends | |
class | Inifile |
Definition at line 267 of file inifile.h.
|
create an empty section named
|
|
|
|
Update chages-state of Section.
|
|
Definition at line 214 of file inifile.cpp. Referenced by Section::findIntegerEntry(), Section::findNumericEntry(), and Section::findStringEntry(). |
|
get pointer to my Section.
Definition at line 297 of file inifile.h. Referenced by Section::throw_Error(). |
|
get name of the Section.
Definition at line 300 of file inifile.h. Referenced by Section::throw_Error(). |
|
insert an entry into Section.
Definition at line 306 of file inifile.h. Referenced by Section::findOrCreateEntry(). |
|
search for an entry.
Definition at line 319 of file inifile.h. Referenced by Section::expectEntry(), and Section::findOrCreateEntry(). |
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. |
|
search for or create an Entry.
Definition at line 155 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. Definition at line 127 of file inifile.cpp. |
|
search for or create an Entry. 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 169 of file inifile.cpp. |
|
Searches section for an existing Entry.
Definition at line 183 of file inifile.cpp. |
|
Searches section for an existing Entry.
Definition at line 191 of file inifile.cpp. |
|
Searches section for an existing Entry.
Definition at line 199 of file inifile.cpp. |
|
first section.
Definition at line 374 of file inifile.h. Referenced by Section::changesMade(). |
|
behind last section.
Definition at line 376 of file inifile.h. Referenced by Section::changesMade(). |
|
delete all entries from section.
|
|
write Section to stream.
Reimplemented from Commentable. |
|
test if changes were made in this section.
Definition at line 142 of file inifile.cpp. |
|
reset ChangesState to NO_CHANGES.
|
|
throws an error referring the section.
Definition at line 206 of file inifile.cpp. Referenced by Section::expectEntry(). |
|
|
|
|
|
|
|
Definition at line 271 of file inifile.h. Referenced by Section::changesMade(). |
|
|
Contact me in case of errors or questions. This documentation is powered by . |
(C) 2000-2002 |