yast2-core
|
#include <Y2AgentComponent.h>
Public Member Functions | |
Y2AgentComp (const char *) | |
virtual | ~Y2AgentComp () |
virtual string | name () const |
virtual YCPValue | evaluate (const YCPValue &command) |
virtual SCRAgent * | getSCRAgent () |
virtual YCPValue | Read (const YCPPath &path) |
![]() | |
Y2Component () | |
virtual | ~Y2Component () |
virtual void | result (const YCPValue &result) |
virtual void | setServerOptions (int argc, char **argv) |
virtual Y2Namespace * | import (const char *name_space) |
virtual YCPValue | doActualWork (const YCPList &arglist, Y2Component *user_interface) |
virtual bool | remote () const |
Protected Attributes | |
const char * | my_name |
Agent * | agent |
Template class for a Y2AgentComp of an Agent.
Y2AgentComp< Agent >::Y2AgentComp | ( | const char * | my_name | ) |
Constructor for a Y2AgentComp.
|
virtual |
Clean up.
References Y2AgentComp< Agent >::agent.
|
virtual |
Evaluates a command to the agent.
Reimplemented from Y2Component.
References Y2AgentComp< Agent >::agent, YCPTerm::args(), Execute(), Y2AgentComp< Agent >::getSCRAgent(), YCPTerm::name(), Y2AgentComp< Agent >::Read(), YCPList::size(), YCPList::value(), Write(), y2debug, y2error, y2milestone, and YCode::yeTerm.
Referenced by Y2AgentComp< ScriptingAgent >::name().
|
virtual |
Returns the SCRAgent of the Y2Component.
Reimplemented from Y2Component.
References Y2AgentComp< Agent >::agent.
Referenced by Y2AgentComp< Agent >::evaluate(), Y2AgentComp< ScriptingAgent >::name(), and Y2AgentComp< Agent >::Read().
|
inlinevirtual |
Returns the name of the component.
Implements Y2Component.
|
virtual |
References Y2AgentComp< Agent >::getSCRAgent(), SCRAgent::Read(), and y2error.
Referenced by Y2AgentComp< Agent >::evaluate(), and Y2AgentComp< ScriptingAgent >::name().
|
protected |
Pointer to my agent.
Referenced by Y2AgentComp< Agent >::evaluate(), Y2AgentComp< Agent >::getSCRAgent(), and Y2AgentComp< Agent >::~Y2AgentComp().
|
protected |
Name of my agent.
Referenced by Y2AgentComp< ScriptingAgent >::name().