yast2-core
DummyAgent.h
Go to the documentation of this file.
1 /*
2  * DummyAgent.h
3  *
4  * A dummy agent, only for testing purposes
5  *
6  * Author: Klaus Kaempf <kkaempf@suse.de>
7  * Michal Svec <msvec@suse.cz>
8  * Petr Blahos <pblahos@suse.cz>
9  * Gabriele Strattner <gs@suse.de>
10  *
11  * $Id$
12  *
13  */
14 
15 #ifndef DummyAgent_h
16 #define DummyAgent_h
17 
18 #include <scr/SCRAgent.h>
19 #include <Y2.h>
20 
25 class DummyAgent : public SCRAgent
26 {
27 private:
34 
40 
44  int readCalls;
46  int execCalls;
47 
48  YCPValue checkPath (const YCPPath& path, const YCPMap& map, const YCPValue& defaultVal);
49 
50 public:
51  DummyAgent ();
52 
58  YCPValue Read(const YCPPath& path, const YCPValue& arg = YCPNull(), const YCPValue& opt = YCPNull());
59 
64  YCPBoolean Write(const YCPPath& path, const YCPValue& value, const YCPValue& arg = YCPNull());
65 
70  YCPValue Execute(const YCPPath& path, const YCPValue& value, const YCPValue& arg = YCPNull());
71 
75  YCPList Dir(const YCPPath& path);
76 
80  YCPValue otherCommand(const YCPTerm& term);
81 };
82 
83 
84 #endif // DummyAgent_h
int writeCalls
Definition: DummyAgent.h:45
SCR Agent for testing.
Definition: DummyAgent.h:25
int readCalls
Definition: DummyAgent.h:44
YCPValue otherCommand(const YCPTerm &term)
Definition: DummyAgent.cc:148
DummyAgent()
Definition: DummyAgent.cc:28
YCPValue Read(const YCPPath &path, const YCPValue &arg=YCPNull(), const YCPValue &opt=YCPNull())
Definition: DummyAgent.cc:38
YCPList Dir(const YCPPath &path)
Definition: DummyAgent.cc:122
YCPValue checkPath(const YCPPath &path, const YCPMap &map, const YCPValue &defaultVal)
Definition: DummyAgent.cc:223
YCPBoolean Write(const YCPPath &path, const YCPValue &value, const YCPValue &arg=YCPNull())
Definition: DummyAgent.cc:65
int execCalls
Definition: DummyAgent.h:46
Wrapper for YCPMapRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPMapRep with the arrow operator. See YCPMapRep.
Definition: YCPMap.h:184
YCPMap defaultMap
Definition: DummyAgent.h:39
YCPList writeList
Definition: DummyAgent.h:32
SuSE Configuration Repository Agent.
Definition: SCRAgent.h:37
YCPList readList
Definition: DummyAgent.h:31
YCPList execList
Definition: DummyAgent.h:33
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
YCPValue Execute(const YCPPath &path, const YCPValue &value, const YCPValue &arg=YCPNull())
Definition: DummyAgent.cc:94
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
YCPValue defaultValue
Definition: DummyAgent.h:38
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
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

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