1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/target/SystemCheck.h
12 #ifndef ZYPP_TARGET_SYSTEMCHECK_H
13 #define ZYPP_TARGET_SYSTEMCHECK_H
17 #include "zypp/base/NonCopyable.h"
18 #include "zypp/Capability.h"
20 ///////////////////////////////////////////////////////////////////
22 { /////////////////////////////////////////////////////////////////
23 ///////////////////////////////////////////////////////////////////
25 // CLASS NAME : SystemCheck
27 /** Save and restore locale set from file.
29 class SystemCheck : private base::NonCopyable
31 friend std::ostream & operator<<( std::ostream & str, const SystemCheck & obj );
36 static const SystemCheck & instance();
38 /** Return the file path. */
39 const Pathname & file();
41 /** Set configuration file of system requirements
42 * Should be used for testcase only
44 bool setFile(const Pathname & file) const;
46 /** Returns a list of required system capabilities.
48 const CapabilitySet & requiredSystemCap() const;
50 /** Returns a list of conflicting system capabilities.
52 const CapabilitySet & conflictSystemCap() const;
55 /** Ctor taking the file to read. */
57 bool loadFile() const;
60 ///////////////////////////////////////////////////////////////////
62 /** \relates SystemCheck Stream output */
63 std::ostream & operator<<( std::ostream & str, const SystemCheck & obj );
65 /////////////////////////////////////////////////////////////////
67 ///////////////////////////////////////////////////////////////////
68 #endif // ZYPP_TARGET_SYSTEMCHECK_H