12 #ifndef ZYPP_TARGET_SYSTEMCHECK_H
13 #define ZYPP_TARGET_SYSTEMCHECK_H
39 const Pathname &
file();
42 const Pathname &
dir();
47 bool setFile(
const Pathname & file)
const;
53 bool setDir(
const Pathname & dir)
const;
66 bool loadFile(Pathname &file,
bool reset_caps =
true)
const;
77 #endif // ZYPP_TARGET_SYSTEMCHECK_H
bool setDir(const Pathname &dir) const
Set configuration directory for files of system requirements.
String related utilities and Regular expression matching.
SystemCheck()
Ctor taking the file to read.
std::tr1::unordered_set< Capability > CapabilitySet
const Pathname & dir()
Return the directory path.
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
std::ostream & operator<<(std::ostream &str, const Exception &obj)
bool loadFile(Pathname &file, bool reset_caps=true) const
bool setFile(const Pathname &file) const
Set configuration file of system requirements Should be used for testcase only.
static const SystemCheck & instance()
Singleton.
friend std::ostream & operator<<(std::ostream &str, const SystemCheck &obj)
const CapabilitySet & conflictSystemCap() const
Returns a list of conflicting system capabilities.
Save and restore locale set from file.
const CapabilitySet & requiredSystemCap() const
Returns a list of required system capabilities.
const Pathname & file()
Return the file path.
Easy-to use interface to the ZYPP dependency resolver.