libzypp  11.13.5
SystemCheck.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef ZYPP_TARGET_SYSTEMCHECK_H
13 #define ZYPP_TARGET_SYSTEMCHECK_H
14 
15 #include <iosfwd>
16 
17 #include "zypp/base/NonCopyable.h"
18 #include "zypp/Capability.h"
19 
21 namespace zypp
22 {
23 
24  //
25  // CLASS NAME : SystemCheck
26  //
30  {
31  friend std::ostream & operator<<( std::ostream & str, const SystemCheck & obj );
32 
33  public:
34 
36  static const SystemCheck & instance();
37 
39  const Pathname & file();
40 
44  bool setFile(const Pathname & file) const;
45 
48  const CapabilitySet & requiredSystemCap() const;
49 
52  const CapabilitySet & conflictSystemCap() const;
53 
54  private:
56  SystemCheck();
57  bool loadFile() const;
58 
59  };
61 
63  std::ostream & operator<<( std::ostream & str, const SystemCheck & obj );
64 
66 } // namespace zypp
68 #endif // ZYPP_TARGET_SYSTEMCHECK_H