yast2-core
Public Member Functions | Private Attributes | List of all members
IniEntry Class Reference

#include <IniFile.h>

Inheritance diagram for IniEntry:
IniBase

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 initReadBy (const int r)
 
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 More...
 
bool getMapInteger (const YCPMap &in, const string &k, int &i)
 helper for setAllDoIt More...
 
- 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 IniBase::getAllDoIt().

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 IniBase::init().

Referenced by IniSection::initValue().

void IniEntry::initReadBy ( const int  r)
inline

changes value only if not dirty

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

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

changes value only if not dirty

References IniBase::dirty.

int IniEntry::setAllDoIt ( const YCPMap in)
inlinevirtual

Reimplemented from IniBase.

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

Referenced by IniSection::setAllDoIt().

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

References IniBase::dirty.

Referenced by IniSection::setMyValue().

Member Data Documentation

string IniEntry::val
private

value


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

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