yast2-core
IniAgent.h
Go to the documentation of this file.
1 /*
2  * YaST2: Core system
3  *
4  * Description:
5  * YaST2 SCR: Ini agent implementation
6  *
7  * Authors:
8  * Petr Blahos <pblahos@suse.cz>
9  *
10  * $Id$
11  */
12 
13 #ifndef _IniAgent_h
14 #define _IniAgent_h
15 
16 #include <Y2.h>
17 #include <scr/SCRAgent.h>
18 
19 #include "IniParser.h"
20 
24 class IniAgent : public SCRAgent
25 {
26  private:
31 
33  public:
37  IniAgent();
41  virtual ~IniAgent();
42 
48  virtual YCPValue Read(const YCPPath &path, const YCPValue& arg = YCPNull(), const YCPValue& optarg = YCPNull() );
49 
53  virtual YCPBoolean Write(const YCPPath &path, const YCPValue& value, const YCPValue& arg = YCPNull());
54 
58  virtual YCPList Dir(const YCPPath& path);
59 
63  virtual YCPValue otherCommand(const YCPTerm& term);
64 };
65 
66 #endif /* _IniAgent_h */
virtual YCPValue Read(const YCPPath &path, const YCPValue &arg=YCPNull(), const YCPValue &optarg=YCPNull())
Definition: IniAgent.cc:56
IniAgent()
Definition: IniAgent.cc:21
virtual YCPBoolean Write(const YCPPath &path, const YCPValue &value, const YCPValue &arg=YCPNull())
Definition: IniAgent.cc:75
virtual YCPValue otherCommand(const YCPTerm &term)
Definition: IniAgent.cc:147
An interface class between YaST2 and Ini Agent.
Definition: IniAgent.h:24
YCPTerm generateSysConfigTemplate(string fn)
Definition: IniAgent.cc:183
IniParser parser
Definition: IniAgent.h:32
SuSE Configuration Repository Agent.
Definition: SCRAgent.h:38
Wrapper for YCPListRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPListRep with the arrow operator. See YCPListRep.
Definition: YCPList.h:236
Wrapper for YCPTermRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPTermRep with the arrow operator. See YCPTermRep.
Definition: YCPTerm.h:177
virtual YCPList Dir(const YCPPath &path)
Definition: IniAgent.cc:37
Wrapper for YCPValueRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPValueRep with the arrow operator. See YCPValueRep.
Definition: YCPValue.h:275
Wrapper for YCPPathRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPPathRep with the arrow operator. See YCPPathRep.
Definition: YCPPath.h:175
virtual ~IniAgent()
Definition: IniAgent.cc:28
Wrapper for YCPBooleanRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPBooleanRep with the arrow operator. See YCPBooleanRep.
Definition: YCPBoolean.h:93
Definition: YCPElement.h:125
Definition: IniParser.h:254

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