yast2-core
Public Member Functions | Private Member Functions | Private Attributes | List of all members
WFMSubAgent Class Reference

#include <WFMSubAgent.h>

Public Member Functions

 WFMSubAgent (const string &, int)
 
 ~WFMSubAgent ()
 
bool start ()
 
string get_name () const
 
int get_handle () const
 
SCRAgentagent ()
 

Private Member Functions

 WFMSubAgent (const WFMSubAgent &)
 
void operator= (const WFMSubAgent &)
 

Private Attributes

const string my_name
 
const int my_handle
 
Y2Componentmy_comp
 
SCRAgentmy_agent
 

Detailed Description

A simple class handling a agent.

Constructor & Destructor Documentation

WFMSubAgent::WFMSubAgent ( const string &  name,
int  handle 
)

Constructor for a subagent. Takes the name and handle as arguments.

References y2internal.

WFMSubAgent::~WFMSubAgent ( )

Destructor for a subagent. Terminates the Y2Component if necessary.

WFMSubAgent::WFMSubAgent ( const WFMSubAgent )
private

Member Function Documentation

SCRAgent* WFMSubAgent::agent ( )
inline

Returns the SCRAgent of the subagent. This does not call start (). Is 0 if start () was not called or failed or the Y2Component does not support the getSCRAgent () function.

References Y2Component::getSCRAgent(), my_agent, and my_comp.

Referenced by Y2WFMComponent::createDefaultSCR(), Y2WFMComponent::Execute(), Y2WFMComponent::Read(), and Y2WFMComponent::Write().

int WFMSubAgent::get_handle ( ) const
inline

Returns the handle of the subagent.

References my_handle.

Referenced by wfmsubagent_less().

string WFMSubAgent::get_name ( ) const
inline

Returns the name of the subagent.

References my_name.

void WFMSubAgent::operator= ( const WFMSubAgent )
private
bool WFMSubAgent::start ( )

Member Data Documentation

SCRAgent* WFMSubAgent::my_agent
private

The agent if component does not provide one

Referenced by agent().

Y2Component* WFMSubAgent::my_comp
private

The component.

Referenced by agent(), and start().

const int WFMSubAgent::my_handle
private

The handle.

Referenced by get_handle(), and start().

const string WFMSubAgent::my_name
private

The name.

Referenced by get_name(), and start().


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

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