00001 // -*- c++ -*- 00002 // Maintainer: fehr@suse.de 00003 00004 #ifndef MdAgent_h 00005 #define MdAgent_h 00006 00007 #include <scr/SCRAgent.h> 00008 #include <Y2.h> 00009 #include <MdAccess.h> 00010 00015 class MdAgent : public SCRAgent 00016 { 00017 public: 00018 MdAgent(); 00019 00020 ~MdAgent(); 00021 00027 YCPValue Read( const YCPPath& path, const YCPValue& arg = YCPNull(), 00028 const YCPValue& opt = YCPNull()); 00029 00030 00034 YCPBoolean Write(const YCPPath& path, const YCPValue& value, const YCPValue& arg = YCPNull()); 00035 00039 YCPList Dir(const YCPPath& path); 00040 protected: 00041 YCPMap CreateMdMap( const MdInfo& Md_Cv ); 00042 MdAccess *Md_pC; 00043 }; 00044 00045 00046 #endif // MdAgent_h