#include <StdioSCRAgent.h>

Public Member Functions | |
| StdioSCRAgent (Y2Component *handler) | |
| ~StdioSCRAgent () | |
| virtual YCPValue | Read (const YCPPath &path, const YCPValue &arg=YCPNull(), const YCPValue &opt=YCPNull()) |
| virtual YCPBoolean | Write (const YCPPath &path, const YCPValue &value, const YCPValue &arg=YCPNull()) |
| virtual YCPList | Dir (const YCPPath &path) |
| virtual YCPValue | Execute (const YCPPath &path, const YCPValue &value=YCPNull(), const YCPValue &arg=YCPNull()) |
| virtual YCPMap | Error (const YCPPath &path) |
| virtual YCPBoolean | RegisterAgent (const YCPPath &path, const YCPValue &value) |
| virtual YCPBoolean | UnregisterAgent (const YCPPath &path) |
| YCPValue | otherCommand (const YCPTerm &term) |
Private Attributes | |
| Y2Component * | m_handler |
| StdioSCRAgent::StdioSCRAgent | ( | Y2Component * | handler | ) | [inline] |
| StdioSCRAgent::~StdioSCRAgent | ( | ) | [inline] |
Get a list of all subtrees.
Implements SCRAgent.
References YCPTerm::add(), Y2Component::evaluate(), YCPElement::isNull(), m_handler, y2debug, and ycp2error.
Get a detailed error description if a previous command failed
Reimplemented from SCRAgent.
References YCPTerm::add(), Y2Component::evaluate(), YCPElement::isNull(), m_handler, y2debug, and ycp2error.
| YCPValue StdioSCRAgent::Execute | ( | const YCPPath & | path, | |
| const YCPValue & | value = YCPNull (), |
|||
| const YCPValue & | arg = YCPNull () | |||
| ) | [virtual] |
Executes a command.
Reimplemented from SCRAgent.
References YCPTerm::add(), Y2Component::evaluate(), YCPElement::isNull(), m_handler, and y2debug.
| YCPValue StdioSCRAgent::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.
References YCPTerm::add(), Y2Component::evaluate(), YCPElement::isNull(), m_handler, and y2debug.
| YCPBoolean StdioSCRAgent::RegisterAgent | ( | const YCPPath & | path, | |
| const YCPValue & | value | |||
| ) | [virtual] |
Register an agent
Reimplemented from SCRAgent.
References YCPTerm::add(), Y2Component::evaluate(), YCPElement::isNull(), m_handler, y2debug, and ycp2error.
| YCPBoolean StdioSCRAgent::UnregisterAgent | ( | const YCPPath & | path | ) | [virtual] |
Unregister an agent
Reimplemented from SCRAgent.
References YCPTerm::add(), Y2Component::evaluate(), YCPElement::isNull(), m_handler, y2debug, and ycp2error.
| YCPBoolean StdioSCRAgent::Write | ( | const YCPPath & | path, | |
| const YCPValue & | value, | |||
| const YCPValue & | arg = YCPNull () | |||
| ) | [virtual] |
Writes data. Destroy the result after use.
Implements SCRAgent.
References YCPTerm::add(), Y2Component::evaluate(), YCPElement::isNull(), m_handler, y2debug, and ycp2error.
Y2Component* StdioSCRAgent::m_handler [private] |
Referenced by Dir(), Error(), Execute(), otherCommand(), Read(), RegisterAgent(), UnregisterAgent(), and Write().
1.5.9