An interface class between YaST2 and Ini Agent. More...
#include <IniAgent.h>
Public Member Functions | |
IniAgent () | |
virtual | ~IniAgent () |
virtual YCPValue | Read (const YCPPath &path, const YCPValue &arg=YCPNull(), const YCPValue &optarg=YCPNull()) |
virtual YCPBoolean | Write (const YCPPath &path, const YCPValue &value, const YCPValue &arg=YCPNull()) |
virtual YCPList | Dir (const YCPPath &path) |
virtual YCPValue | otherCommand (const YCPTerm &term) |
Private Member Functions | |
YCPTerm | generateSysConfigTemplate (string fn) |
Private Attributes | |
IniParser | parser |
An interface class between YaST2 and Ini Agent.
IniAgent::IniAgent | ( | ) |
Default constructor.
Constructor
IniAgent::~IniAgent | ( | ) | [virtual] |
Provides SCR Write ().
Dir
Implements SCRAgent.
References IniSection::Dir(), IniParser::inifile, IniParser::isStarted(), parser, IniParser::UpdateIfModif(), and y2warning.
YCPTerm IniAgent::generateSysConfigTemplate | ( | string | fn | ) | [private] |
Agent private members
References YCPMap::add(), YCPList::add(), and YCPTerm::add().
Referenced by otherCommand().
Used for mounting the agent.
otherCommand
Reimplemented from SCRAgent.
References generateSysConfigTemplate(), IniParser::initFiles(), IniParser::initMachine(), YCPTerm::name(), IniParser::parse(), parser, YCPTerm::size(), YCPTerm::value(), and YCPError().
YCPValue IniAgent::Read | ( | const YCPPath & | path, | |
const YCPValue & | arg = YCPNull() , |
|||
const YCPValue & | optarg = YCPNull() | |||
) | [virtual] |
Provides SCR Read ().
path | Path that should be read. | |
arg | Additional parameter. |
Read
Implements SCRAgent.
References IniParser::HaveRewrites(), IniParser::inifile, IniParser::isStarted(), parser, IniSection::Read(), IniParser::UpdateIfModif(), and y2warning.
YCPBoolean IniAgent::Write | ( | const YCPPath & | path, | |
const YCPValue & | value, | |||
const YCPValue & | arg = YCPNull() | |||
) | [virtual] |
Provides SCR Write ().
Write
Implements SCRAgent.
References IniSection::clean(), IniSection::Delete(), IniParser::deleted_sections, IniParser::getFileName(), IniSection::getSubSectionRewriteBy(), IniParser::HaveRewrites(), IniParser::inifile, IniParser::isStarted(), parser, IniParser::repeatNames(), IniBase::setDirty(), IniSection::Write(), IniParser::write(), y2warning, and ycp2error.
IniParser IniAgent::parser [private] |
Referenced by Dir(), otherCommand(), Read(), Write(), and ~IniAgent().