00001
00002
00003
00004
00005
00006
00007
00008
00012 #ifndef ZYPP_CAPABILITY_FILESYSTEMCAP_H
00013 #define ZYPP_CAPABILITY_FILESYSTEMCAP_H
00014
00015 #include "zypp/capability/CapabilityImpl.h"
00016
00018 namespace zypp
00019 {
00020
00021 class SerialNumber;
00022
00024 namespace capability
00025 {
00026
00027 DEFINE_PTR_TYPE(FilesystemCap)
00028
00029
00030
00031
00032
00046 class FilesystemCap : public CapabilityImpl
00047 {
00048 public:
00049 typedef FilesystemCap Self;
00050 typedef FilesystemCap_Ptr Ptr;
00051 typedef FilesystemCap_constPtr constPtr;
00052
00053 public:
00055 FilesystemCap( const Resolvable::Kind & refers_r, const std::string & name_r );
00056
00057 public:
00059 virtual const Kind & kind() const;
00060
00062 virtual CapMatch matches( const CapabilityImpl::constPtr & rhs ) const;
00063
00065 virtual std::string encode() const;
00066
00068 virtual std::string index() const;
00069
00070 public:
00071 const std::string & name() const
00072 { return _name; }
00073
00074 private:
00076 bool isEvalCmd() const;
00077
00079 bool evaluate() const;
00080
00081 private:
00083 std::string _name;
00084
00085 public:
00087 static const SerialNumber & sysconfigStorageSerial();
00088 };
00090
00092 }
00095 }
00097 #endif // ZYPP_CAPABILITY_FILESYSTEMCAP_H