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 
40  void setLastRoot();
41 
49  char * last_root;
50  public:
54  IniAgent();
58  virtual ~IniAgent();
59 
65  virtual YCPValue Read(const YCPPath &path, const YCPValue& arg = YCPNull(), const YCPValue& optarg = YCPNull() );
66 
70  virtual YCPBoolean Write(const YCPPath &path, const YCPValue& value, const YCPValue& arg = YCPNull());
71 
75  virtual YCPList Dir(const YCPPath& path);
76 
80  virtual YCPValue otherCommand(const YCPTerm& term);
81 
82  virtual const char * root() const;
83 };
84 
85 #endif /* _IniAgent_h */
virtual YCPValue Read(const YCPPath &path, const YCPValue &arg=YCPNull(), const YCPValue &optarg=YCPNull())
Definition: IniAgent.cc:60
IniAgent()
Definition: IniAgent.cc:21
virtual YCPBoolean Write(const YCPPath &path, const YCPValue &value, const YCPValue &arg=YCPNull())
Definition: IniAgent.cc:80
virtual YCPValue otherCommand(const YCPTerm &term)
Definition: IniAgent.cc:153
An interface class between YaST2 and Ini Agent.
Definition: IniAgent.h:24
void setLastRoot()
Definition: IniAgent.cc:256
YCPTerm generateSysConfigTemplate(string fn)
Definition: IniAgent.cc:190
IniParser parser
Definition: IniAgent.h:32
SuSE Configuration Repository Agent.
Definition: SCRAgent.h:37
virtual const char * root() const
Definition: IniAgent.cc:251
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:39
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
char * last_root
Definition: IniAgent.h:49
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:256

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