#include <DummyAgent.h>
Inheritance diagram for DummyAgent:

Public Member Functions | |
| DummyAgent () | |
| YCPValue | Read (const YCPPath &path, const YCPValue &arg=YCPNull(), const YCPValue &opt=YCPNull()) |
| YCPBoolean | Write (const YCPPath &path, const YCPValue &value, const YCPValue &arg=YCPNull()) |
| YCPValue | Execute (const YCPPath &path, const YCPValue &value, const YCPValue &arg=YCPNull()) |
| YCPList | Dir (const YCPPath &path) |
| YCPValue | otherCommand (const YCPTerm &term) |
Private Member Functions | |
| YCPValue | checkPath (const YCPPath &path, const YCPMap &map, const YCPValue &defaultVal) |
Private Attributes | |
| YCPList | readList |
| YCPList | writeList |
| YCPList | execList |
| YCPValue | defaultValue |
| YCPMap | defaultMap |
| int | readCalls |
| int | writeCalls |
| int | execCalls |
| DummyAgent::DummyAgent | ( | ) |
Constructor
| YCPValue DummyAgent::checkPath | ( | const YCPPath & | path, | |
| const YCPMap & | map, | |||
| const YCPValue & | defaultVal | |||
| ) | [private] |
Check if the given path is valid and return the correct value
| YCPValue DummyAgent::Read | ( | const YCPPath & | path, | |
| const YCPValue & | arg = YCPNull(), |
|||
| const YCPValue & | opt = YCPNull() | |||
| ) | [virtual] |
Reads data. Destroy the result after use.
| path | Specifies what part of the subtree should be read. The path is specified _relatively_ to Root()! |
Implements SCRAgent.
| YCPBoolean DummyAgent::Write | ( | const YCPPath & | path, | |
| const YCPValue & | value, | |||
| const YCPValue & | arg = YCPNull() | |||
| ) | [virtual] |
Writes data. Destroy the result after use.
Implements SCRAgent.
| YCPValue DummyAgent::Execute | ( | const YCPPath & | path, | |
| const YCPValue & | value, | |||
| const YCPValue & | arg = YCPNull() | |||
| ) | [virtual] |
Execute a program. Destroy the result after use.
Reimplemented from SCRAgent.
Get a list of all subtrees.
Implements SCRAgent.
Evaluates the DataMap() command
Reimplemented from SCRAgent.
YCPList DummyAgent::readList [private] |
data map from agent initialization
YCPList DummyAgent::writeList [private] |
YCPList DummyAgent::execList [private] |
YCPValue DummyAgent::defaultValue [private] |
default value if path has no match in dataMap
YCPMap DummyAgent::defaultMap [private] |
int DummyAgent::readCalls [private] |
counts of previously done operations
int DummyAgent::writeCalls [private] |
int DummyAgent::execCalls [private] |
1.5.0