yast2-core
Public Member Functions | Protected Attributes | List of all members
Y2AgentComp< Agent > Class Template Reference

#include <Y2AgentComponent.h>

Inheritance diagram for Y2AgentComp< Agent >:
Y2Component

Public Member Functions

 Y2AgentComp (const char *)
 
virtual ~Y2AgentComp ()
 
virtual string name () const
 
virtual YCPValue evaluate (const YCPValue &command)
 
virtual SCRAgentgetSCRAgent ()
 
virtual YCPValue Read (const YCPPath &path)
 
- Public Member Functions inherited from Y2Component
 Y2Component ()
 
virtual ~Y2Component ()
 
virtual void result (const YCPValue &result)
 
virtual void setServerOptions (int argc, char **argv)
 
virtual Y2Namespaceimport (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
 

Detailed Description

template<class Agent>
class Y2AgentComp< Agent >

Template class for a Y2AgentComp of an Agent.

Constructor & Destructor Documentation

template<class Agent >
Y2AgentComp< Agent >::Y2AgentComp ( const char *  my_name)

Constructor for a Y2AgentComp.

template<class Agent >
Y2AgentComp< Agent >::~Y2AgentComp ( )
virtual

Clean up.

Member Function Documentation

template<class Agent >
YCPValue Y2AgentComp< Agent >::evaluate ( const YCPValue command)
virtual

Evaluates a command to the agent.

Reimplemented from Y2Component.

References YCPTerm::args(), YCPTerm::name(), YCPList::size(), YCPList::value(), y2debug, y2error, y2milestone, and YCode::yeTerm.

template<class Agent >
SCRAgent * Y2AgentComp< Agent >::getSCRAgent ( )
virtual

Returns the SCRAgent of the Y2Component.

Reimplemented from Y2Component.

template<class Agent>
virtual string Y2AgentComp< Agent >::name ( ) const
inlinevirtual

Returns the name of the component.

Implements Y2Component.

template<class Agent >
YCPValue Y2AgentComp< Agent >::Read ( const YCPPath path)
virtual

References y2error.

Member Data Documentation

template<class Agent>
Agent* Y2AgentComp< Agent >::agent
protected

Pointer to my agent.

template<class Agent>
const char* Y2AgentComp< Agent >::my_name
protected

Name of my agent.

Referenced by Y2AgentComp< ScriptingAgent >::name().


The documentation for this class was generated from the following file:

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