#include <SCPMAgent.h>
Inheritance diagram for SCPMAgent:

Public Member Functions | |
| SCPMAgent () | |
| virtual | ~SCPMAgent () |
| virtual YCPValue | Read (const YCPPath &path, const YCPValue &arg=YCPNull(), const YCPValue &opt=YCPNull()) |
| virtual YCPBoolean | Write (const YCPPath &path, const YCPValue &value, const YCPValue &arg=YCPNull()) |
| virtual YCPValue | Execute (const YCPPath &path, const YCPValue &value=YCPNull(), const YCPValue &arg=YCPNull()) |
| virtual YCPList | Dir (const YCPPath &path) |
| virtual YCPValue | otherCommand (const YCPTerm &term) |
Private Member Functions | |
| resource_group_t | frommap_rg (YCPMap map) |
| YCPMap | tomap_rg (resource_group_t rgroup) |
| vector< resource_entry_t > | fromlist_re (YCPList list) |
| resource_entry_t | frommap_re (YCPMap map) |
| YCPMap | tomap_re (resource_entry_t rentry) |
Static Private Member Functions | |
| static void * | call_enable (SCPMAgent *) |
| static void * | call_recover (SCPMAgent *) |
| static void * | call_rollback (SCPMAgent *) |
Private Attributes | |
| SCPM * | scpm |
| int | options |
| ofstream | output |
| ofstream | hash |
| string | changesfile |
| string | tmpfile |
| string | hashfile |
| pthread_t | pt |
| bool | initialized |
|
|
Default constructor. |
|
|
Destructor. |
|
|
Call SCPM->Enable in the new thread |
|
|
Call SCPM->Recover in the new thread |
|
|
Call SCPM->Recover (true) in the new thread |
|
|
Provides SCR Dir (). Implements SCRAgent. |
|
||||||||||||||||
|
Provides SCR Execute (). Reimplemented from SCRAgent. |
|
|
Converts YCP list of maps to c++ vector of resource_entry_t structures |
|
|
Converts YCP map to c++ structure of type resource_entry_t |
|
|
Converts YCP map to c++ structure of type resource_group_t |
|
|
Used for mounting the agent. Reimplemented from SCRAgent. |
|
||||||||||||||||
|
Provides SCR Read ().
Implements SCRAgent. |
|
|
Converts c++ structure of type resource_entry_t to YCP map |
|
|
Converts c++ structure of type resource_group_t to YCP map |
|
||||||||||||||||
|
Provides SCR Write (). Implements SCRAgent. |
|
|
|
|
|
|
|
|
|
|
|
Forbid any scpm calls, when not initialized (Execute(.scpm)). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.6