#include <SCRSubAgent.h>
Public Member Functions | |
SCRSubAgent (YCPPath, YCPValue) | |
~SCRSubAgent () | |
YCPValue | mount (SCRAgent *parent) |
void | unmount () |
YCPPath | get_path () const |
Y2Component * | get_comp () const |
Private Member Functions | |
SCRSubAgent (const SCRSubAgent &) | |
void | operator= (const SCRSubAgent &) |
Private Attributes | |
YCPPath | my_path |
YCPValue | my_value |
Y2Component * | my_comp |
Friends | |
int | operator< (const SCRSubAgent *, const YCPPath &) |
SCRSubAgent::~SCRSubAgent | ( | ) |
Destructor. Does also unmount the subagent.
References unmount().
SCRSubAgent::SCRSubAgent | ( | const SCRSubAgent & | ) | [private] |
Y2Component* SCRSubAgent::get_comp | ( | ) | const [inline] |
Returns the component of the subagent. This does not call mount (). Is 0 if mount () was not called of failed.
References my_comp.
YCPPath SCRSubAgent::get_path | ( | ) | const [inline] |
Returns the path of the subagent.
References my_path.
Mount the subagent, that is create the component. Does nothing if the subagent is already mounted.
References Y2ComponentBroker::createServer(), Y2Component::evaluate(), Y2Component::getSCRAgent(), YCPElement::isNull(), SCRAgent::mainscragent, my_comp, my_path, my_value, SCRAgent::readconf(), y2debug, and ycp2error.
void SCRSubAgent::operator= | ( | const SCRSubAgent & | ) | [private] |
void SCRSubAgent::unmount | ( | ) |
Unmount the subagent, that is delete the component. Does nothing if the subagent is not mounted.
References my_comp, my_path, Y2Component::result(), and y2debug.
Referenced by ~SCRSubAgent().
int operator< | ( | const SCRSubAgent * | a, | |
const YCPPath & | p | |||
) | [friend] |
Used for finding subagents.
Y2Component* SCRSubAgent::my_comp [private] |
The component. 0 means not created (mounted).
Referenced by get_comp(), mount(), and unmount().
YCPPath SCRSubAgent::my_path [private] |
The scr path.
Referenced by get_path(), mount(), operator<(), and unmount().
YCPValue SCRSubAgent::my_value [private] |
The value is either a string with the filename of the definition or the term of the definition.
Referenced by mount().