libzypp
10.5.0
|
00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #ifndef ZYPP_TARGET_SYSTEMCHECK_H 00013 #define ZYPP_TARGET_SYSTEMCHECK_H 00014 00015 #include <iosfwd> 00016 00017 #include "zypp/base/NonCopyable.h" 00018 #include "zypp/Capability.h" 00019 00021 namespace zypp 00022 { 00023 00024 // 00025 // CLASS NAME : SystemCheck 00026 // 00029 class SystemCheck : private base::NonCopyable 00030 { 00031 friend std::ostream & operator<<( std::ostream & str, const SystemCheck & obj ); 00032 00033 public: 00034 00036 static const SystemCheck & instance(); 00037 00039 const Pathname & file(); 00040 00044 bool setFile(const Pathname & file) const; 00045 00048 const CapabilitySet & requiredSystemCap() const; 00049 00052 const CapabilitySet & conflictSystemCap() const; 00053 00054 private: 00056 SystemCheck(); 00057 bool loadFile() const; 00058 00059 }; 00061 00063 std::ostream & operator<<( std::ostream & str, const SystemCheck & obj ); 00064 00066 } // namespace zypp 00068 #endif // ZYPP_TARGET_SYSTEMCHECK_H