yast2-core
Public Member Functions | Private Attributes | List of all members
Y2CCAgentComp< AgentComp > Class Template Reference

#include <Y2CCAgentComponent.h>

Inheritance diagram for Y2CCAgentComp< AgentComp >:
Y2ComponentCreator

Public Member Functions

 Y2CCAgentComp (const char *)
 
 ~Y2CCAgentComp ()
 
bool isServerCreator () const
 
Y2Componentcreate (const char *) const
 
Y2ComponentprovideNamespace (const char *)
 
- Public Member Functions inherited from Y2ComponentCreator
 Y2ComponentCreator (Y2ComponentBroker::order_t order)
 
 Y2ComponentCreator (Y2ComponentBroker::order_t order, bool force_register)
 
virtual ~Y2ComponentCreator ()
 
virtual Y2ComponentcreateInLevel (const char *name, int level, int current_level) const
 
bool isClientCreator () const
 

Private Attributes

const char * my_name
 
std::vector< AgentComp * > agent_instances
 

Detailed Description

template<class AgentComp>
class Y2CCAgentComp< AgentComp >

Template class for a Y2ComponentCreator of an Y2AgentComp.

Constructor & Destructor Documentation

template<class AgentComp >
Y2CCAgentComp< AgentComp >::Y2CCAgentComp ( const char *  my_name)

Constructor of a Y2CCAgentComp object.

template<class AgentComp>
Y2CCAgentComp< AgentComp >::~Y2CCAgentComp ( )
inline

Destructor of a Y2CCAgentComp object.

References Y2CCAgentComp< AgentComp >::agent_instances.

Member Function Documentation

template<class AgentComp >
Y2Component * Y2CCAgentComp< AgentComp >::create ( const char *  name) const
virtual

Creates a new Y2Component if the name matches the one provided in the constructor.

Reimplemented from Y2ComponentCreator.

References Y2CCAgentComp< AgentComp >::agent_instances, instance, and Y2CCAgentComp< AgentComp >::my_name.

Referenced by Y2CCAgentComp< AgentComp >::isServerCreator().

template<class AgentComp>
bool Y2CCAgentComp< AgentComp >::isServerCreator ( ) const
inlinevirtual

Returns true since all agents are server components.

Implements Y2ComponentCreator.

References Y2CCAgentComp< AgentComp >::create().

template<class AgentComp>
Y2Component* Y2CCAgentComp< AgentComp >::provideNamespace ( const char *  )
inlinevirtual

Agent components do not provide any namespaces.

Reimplemented from Y2ComponentCreator.

Member Data Documentation

template<class AgentComp>
std::vector<AgentComp*> Y2CCAgentComp< AgentComp >::agent_instances
mutableprivate
template<class AgentComp>
const char* Y2CCAgentComp< AgentComp >::my_name
private

Name of my agent.

Referenced by Y2CCAgentComp< AgentComp >::create().


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

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