#include <SCPMAgent.h>

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 |
| SCPMAgent::SCPMAgent | ( | ) |
Default constructor.
Constructor
| SCPMAgent::~SCPMAgent | ( | ) | [virtual] |
Destructor.
Destructor
| void * SCPMAgent::call_enable | ( | SCPMAgent * | ag | ) | [static, private] |
Call SCPM->Enable in the new thread
| void * SCPMAgent::call_recover | ( | SCPMAgent * | ag | ) | [static, private] |
Call SCPM->Recover in the new thread
| void * SCPMAgent::call_rollback | ( | SCPMAgent * | ag | ) | [static, private] |
Call SCPM->Recover (true) in the new thread
| resource_group_t SCPMAgent::frommap_rg | ( | YCPMap | map | ) | [private] |
Converts YCP map to c++ structure of type resource_group_t
converts ycp map to c++ structure of type resource_group_t
| YCPMap SCPMAgent::tomap_rg | ( | resource_group_t | rgroup | ) | [private] |
Converts c++ structure of type resource_group_t to YCP map
converts c++ structure of type resource_group_t to ycp map
| vector< resource_entry_t > SCPMAgent::fromlist_re | ( | YCPList | list | ) | [private] |
Converts YCP list of maps to c++ vector of resource_entry_t structures
converts ycp list of maps to c++ vector of resource_entry_t structures
| resource_entry_t SCPMAgent::frommap_re | ( | YCPMap | map | ) | [private] |
Converts YCP map to c++ structure of type resource_entry_t
converts ycp map to c++ structure of type resource_entry_t
| YCPMap SCPMAgent::tomap_re | ( | resource_entry_t | rentry | ) | [private] |
Converts c++ structure of type resource_entry_t to YCP map
converts c++ structure of type resource_entry_t to ycp map
| YCPBoolean SCPMAgent::Write | ( | const YCPPath & | path, | |
| const YCPValue & | value, | |||
| const YCPValue & | arg = YCPNull() | |||
| ) | [virtual] |
SCPM* SCPMAgent::scpm [private] |
int SCPMAgent::options [private] |
ofstream SCPMAgent::output [private] |
ofstream SCPMAgent::hash [private] |
string SCPMAgent::changesfile [private] |
string SCPMAgent::tmpfile [private] |
string SCPMAgent::hashfile [private] |
pthread_t SCPMAgent::pt [private] |
bool SCPMAgent::initialized [private] |
Forbid any scpm calls, when not initialized (Execute(.scpm)).
1.5.3