00001 // -*- c++ -*- 00002 // Maintainer: fehr@suse.de 00003 00004 #ifndef EvmsAgent_h 00005 #define EvmsAgent_h 00006 00007 #include <scr/SCRAgent.h> 00008 #include <Y2.h> 00009 #include <EvmsAccess.h> 00010 00015 class EvmsAgent : public SCRAgent 00016 { 00017 public: 00018 EvmsAgent(); 00019 00020 ~EvmsAgent(); 00021 00027 YCPValue Read( const YCPPath& path, const YCPValue& arg = YCPNull(), 00028 const YCPValue& opt = YCPNull()); 00029 00033 YCPBoolean Write( const YCPPath& path, const YCPValue& value, const YCPValue& arg = YCPNull()); 00034 00038 YCPList Dir(const YCPPath& path); 00039 protected: 00040 YCPMap CreateVolumeMap( const EvmsVolumeObject& Vol_Cv ); 00041 YCPMap CreateContainerMap( const EvmsContainerObject& Vol_Cv ); 00042 00043 YCPMap Err_C; 00044 EvmsAccess *Evms_pC; 00045 }; 00046 00047 00048 #endif // EvmsAgent_h