yast2-core
|
#include <IniFile.h>
Public Member Functions | |
virtual | ~IniBase () |
const char * | getName () const |
const char * | getComment () const |
int | getReadBy () const |
virtual void | clean () |
void | setName (const string &c) |
void | setComment (const string &c) |
void | setReadBy (int r) |
void | setDirty () |
void | initName (const string &c) |
void | initComment (const string &c) |
void | initReadBy (const int r) |
void | init (const string &n, const string &c, int rb) |
Protected Member Functions | |
IniBase (int rb) | |
IniBase (const string &n) | |
virtual YCPMap | getAllDoIt () |
bool | getMapString (const YCPMap &in, const string &k, string &s) |
helper for setAllDoIt More... | |
bool | getMapInteger (const YCPMap &in, const string &k, int &i) |
helper for setAllDoIt More... | |
virtual int | setAllDoIt (const YCPMap &in) |
Protected Attributes | |
string | name |
string | comment |
int | read_by |
bool | dirty |
Base class of IniEntry and IniSection. This keeps name, its comment and index of rule it was read by. set* functions are used from ycp code to change values. init* functions are set when reading file from disk
|
inlineprotected |
IniSection default ctor sets to -1. Why?
|
inlineprotected |
Used by another IniSection ctor
|
inlinevirtual |
|
inlinevirtual |
set dirty flag to false
Reimplemented in IniSection.
References dirty.
Referenced by IniParser::write_helper().
|
inlineprotectedvirtual |
Constructs a map of the fields, for Read (.all...)
Reimplemented in IniSection, and IniEntry.
References YCPMap::add(), comment, name, and read_by.
Referenced by IniEntry::getAllDoIt(), and IniSection::getAllDoIt().
|
inline |
References comment.
Referenced by IniSection::Dump(), IniSection::getMyValue(), and IniParser::write_helper().
|
inlineprotected |
helper for setAllDoIt
References YCPElement::isNull(), YCPMap::value(), and y2error.
Referenced by setAllDoIt(), and IniSection::setAllDoIt().
|
inlineprotected |
helper for setAllDoIt
References YCPElement::isNull(), YCPMap::value(), and y2error.
Referenced by setAllDoIt(), IniEntry::setAllDoIt(), and IniSection::setAllDoIt().
|
inline |
References name.
Referenced by IniSection::Dump(), IniParser::parse_helper(), IniParser::write(), and IniParser::write_helper().
|
inline |
References read_by.
Referenced by IniSection::getMyValue(), IniParser::parse_helper(), and IniParser::write_helper().
|
inline |
changes values only if not dirty
References comment, dirty, name, and read_by.
Referenced by IniEntry::init().
|
inline |
|
inline |
|
inline |
|
inlineprotectedvirtual |
Reimplemented in IniSection, and IniEntry.
References comment, dirty, getMapInteger(), getMapString(), name, and read_by.
Referenced by IniEntry::setAllDoIt(), and IniSection::setAllDoIt().
|
inline |
changes and sets dirty flag
References comment, and dirty.
Referenced by IniSection::setMyValue(), and IniSection::setSectionProp().
|
inline |
|
inline |
|
inline |
changes and sets dirty flag
References dirty, and read_by.
Referenced by IniSection::setMyValue(), and IniSection::setSectionProp().
|
protected |
comment
Referenced by IniSection::Dump(), getAllDoIt(), getComment(), IniSection::getSectionProp(), init(), initComment(), IniSection::initSection(), setAllDoIt(), setComment(), and IniSection::setEndComment().
|
protected |
changed?
Referenced by clean(), IniSection::clean(), IniSection::delSection1(), IniSection::delValue1(), init(), IniEntry::init(), initComment(), initName(), initReadBy(), IniEntry::initReadBy(), IniSection::initSection(), IniEntry::initValue(), IniSection::isDirty(), setAllDoIt(), setComment(), setDirty(), IniSection::setMyValue(), setName(), setReadBy(), IniSection::setRewriteBy(), and IniEntry::setValue().
|
protected |
name
Referenced by IniSection::Dump(), getAllDoIt(), getName(), IniSection::getSection(), init(), initName(), IniSection::initSection(), setAllDoIt(), and setName().
|
protected |
index to params/sections in IniParser using which this item was read
Referenced by IniSection::findEndFromUp(), getAllDoIt(), getReadBy(), IniSection::getSectionProp(), init(), initReadBy(), IniEntry::initReadBy(), IniSection::initReadBy(), IniSection::initSection(), setAllDoIt(), and setReadBy().