#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 | |
YCPMap | tomap_ri (resource_info_t ri) |
resource_info_t | frommap_ri (YCPMap map) |
YCPList | tolist_modified_resources (vector< resource_info_t > l) |
vector< resource_info_t > | fromlist_modified_resources (YCPList list) |
YCPMap | tomap_sw (switch_info_t sw) |
switch_info_t | frommap_sw (YCPMap map) |
vector< resource_group_t > | fromlist_groups (YCPList list) |
YCPList | tolist_groups (vector< resource_group_t > l) |
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 | |
void * | call_prepare (SCPMAgent *) |
void * | call_switch (SCPMAgent *) |
void * | call_save (SCPMAgent *) |
void * | call_add (SCPMAgent *) |
void * | call_copy (SCPMAgent *) |
void * | call_enable (SCPMAgent *) |
Private Attributes | |
SCPM * | scpm |
int | options |
bool | auto_switch |
bool | use_rg |
ofstream | output |
ofstream | hash |
string | changesfile |
string | tmpfile |
string | hashfile |
pthread_t | pt |
switch_info_t | switch_info |
string | profile |
string | dest_profile |
bool | initialized |
|
Default constructor. |
|
Destructor. |
|
|
|
|
|
|
|
Functions to be called in new thread. |
|
|
|
|
|
Provides SCR Dir (). Implements SCRAgent. |
|
Provides SCR Execute (). Reimplemented from SCRAgent. |
|
Converts YCP list of maps to c++ vector of resource_group_t structures |
|
Converts YCP list of maps to c++ vector of resource_info_t structures |
|
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 |
|
Converts YCP map to c++ resource_info_t |
|
Converts YCP map to switch_info_t structure |
|
Used for mounting the agent. Reimplemented from SCRAgent. |
|
Provides SCR Read ().
Implements SCRAgent. |
|
Converts c++ vector of resource_group_t structures to YCP list of maps |
|
Converts c++ vector of resource_info_t structures to YCP list of maps |
|
Converts c++ structure of type resource_entry_t to YCP map |
|
Converts c++ structure of type resource_group_t to YCP map |
|
Converts c++ resource_info_t to YCP map |
|
Converts switch_info_t structure to YCP map |
|
Provides SCR Write (). Implements SCRAgent. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|