yast2-core
Public Member Functions | Private Attributes

Y2AgentComp< Agent > Class Template Reference

#include <Y2AgentComponent.h>

Inheritance diagram for Y2AgentComp< Agent >:
Y2Component

List of all members.

Public Member Functions

 Y2AgentComp (const char *)
 ~Y2AgentComp ()
string name () const
YCPValue evaluate (const YCPValue &command)
SCRAgentgetSCRAgent ()
YCPValue Read (const YCPPath &path)

Private 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 ( )

Clean up.

References agent.


Member Function Documentation

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

Evaluates a command to the agent.

Reimplemented from Y2Component.

References agent, 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.

References agent.

template<class Agent >
string Y2AgentComp< Agent >::name ( ) const [inline, virtual]

Returns the name of the component.

Implements Y2Component.

References Y2AgentComp< Agent >::my_name.

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

References y2error.


Member Data Documentation

template<class Agent >
Agent* Y2AgentComp< Agent >::agent [private]

Pointer to my agent.

template<class Agent >
const char* Y2AgentComp< Agent >::my_name [private]

Name of my agent.

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


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

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