yast2-core
Public Member Functions | Private Attributes
IniEntry Class Reference

#include <IniFile.h>

Inheritance diagram for IniEntry:
IniBase

List of all members.

Public Member Functions

 IniEntry ()
 IniEntry (const char *u)
const char * getValue () const
void setValue (const string &c)
void initValue (const string &c)
void initReadBy (const int r)
void init (const string &n, const string &c, int rb, const string &v)
YCPMap getAllDoIt ()
int setAllDoIt (const YCPMap &in)
- Public Member Functions inherited from IniBase
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 init (const string &n, const string &c, int rb)

Private Attributes

string val

Additional Inherited Members

- Protected Member Functions inherited from IniBase
 IniBase (int rb)
 IniBase (const string &n)
bool getMapString (const YCPMap &in, const string &k, string &s)
 helper for setAllDoIt
bool getMapInteger (const YCPMap &in, const string &k, int &i)
 helper for setAllDoIt
- Protected Attributes inherited from IniBase
string name
string comment
int read_by
bool dirty

Detailed Description

Only the string value in addition to IniBase


Constructor & Destructor Documentation

IniEntry::IniEntry ( )
inline
IniEntry::IniEntry ( const char *  u)
inline

explicit uninitialized constructor


Member Function Documentation

YCPMap IniEntry::getAllDoIt ( )
inlinevirtual

Constructs a map of the fields, for Read (.all...)

Reimplemented from IniBase.

References YCPMap::add(), and val.

const char* IniEntry::getValue ( ) const
inline
void IniEntry::init ( const string &  n,
const string &  c,
int  rb,
const string &  v 
)
inline

changes values only if not dirty

References IniBase::dirty, and val.

Referenced by IniSection::initValue().

void IniEntry::initReadBy ( const int  r)
inline

changes value only if not dirty

Reimplemented from IniBase.

References IniBase::dirty, and IniBase::read_by.

void IniEntry::initValue ( const string &  c)
inline

changes value only if not dirty

References IniBase::dirty, and val.

int IniEntry::setAllDoIt ( const YCPMap in)
inlinevirtual

Reimplemented from IniBase.

References IniBase::getMapString(), val, and y2error.

Referenced by IniSection::setAllDoIt().

void IniEntry::setValue ( const string &  c)
inline

References IniBase::dirty, and val.

Referenced by IniSection::setMyValue().


Member Data Documentation

string IniEntry::val
private

The documentation for this class was generated from the following file:

Generated on a sunny day for yast2-core by doxygen 1.8.1