StdioSCRAgent Class Reference

#include <StdioSCRAgent.h>

Inheritance diagram for StdioSCRAgent:

SCRAgent List of all members.

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)
YCPValue otherCommand (const YCPTerm &term)

Private Attributes

Y2Componentm_handler

Detailed Description

This agent is a proxy, which transforms a direct builtin call into Y2Component::evaluate () call.


Constructor & Destructor Documentation

StdioSCRAgent::StdioSCRAgent ( Y2Component handler  )  [inline]

StdioSCRAgent::~StdioSCRAgent (  )  [inline]


Member Function Documentation

YCPValue StdioSCRAgent::Read ( const YCPPath path,
const YCPValue arg = YCPNull(),
const YCPValue opt = YCPNull() 
) [virtual]

Reads data. Destroy the result after use.

Parameters:
path Specifies what part of the subtree should be read. The path is specified _relatively_ to Root()!

Implements SCRAgent.

YCPBoolean StdioSCRAgent::Write ( const YCPPath path,
const YCPValue value,
const YCPValue arg = YCPNull() 
) [virtual]

Writes data. Destroy the result after use.

Implements SCRAgent.

YCPList StdioSCRAgent::Dir ( const YCPPath path  )  [virtual]

Get a list of all subtrees.

Implements SCRAgent.

YCPValue StdioSCRAgent::Execute ( const YCPPath path,
const YCPValue value = YCPNull(),
const YCPValue arg = YCPNull() 
) [virtual]

Executes a command.

Reimplemented from SCRAgent.

YCPMap StdioSCRAgent::Error ( const YCPPath path  )  [virtual]

Get a detailed error description if a previous command failed

Reimplemented from SCRAgent.

YCPValue StdioSCRAgent::otherCommand ( const YCPTerm term  )  [virtual]

Handle the commands 'UnregisterAgent', 'UnregisterAllAgents', 'MountAgent', 'MountAllAgents', 'UnmountAgent' and 'UnmountAllAgents'.

Reimplemented from SCRAgent.


Member Data Documentation

Y2Component* StdioSCRAgent::m_handler [private]


The documentation for this class was generated from the following files:
Generated on Tue Nov 6 01:20:22 2007 for yast2-core by  doxygen 1.5.0