00001
00002
00003
00004
00005
00006
00007
00008
00012 #ifndef ZYPP_CAPABILITY_SPLITCAP_H
00013 #define ZYPP_CAPABILITY_SPLITCAP_H
00014
00015 #include "zypp/capability/CapabilityImpl.h"
00016
00018 namespace zypp
00019 {
00020
00021 namespace capability
00022 {
00023
00024 DEFINE_PTR_TYPE(SplitCap)
00025
00026
00027
00028
00029
00043 class SplitCap : public CapabilityImpl
00044 {
00045 public:
00046 typedef SplitCap Self;
00047 typedef SplitCap_Ptr Ptr;
00048 typedef SplitCap_constPtr constPtr;
00049
00051 SplitCap( const Resolvable::Kind & refers_r,
00052 const std::string & name_r,
00053 const std::string & path_r )
00054 : CapabilityImpl( refers_r )
00055 , _name( name_r )
00056 , _path( path_r )
00057 {}
00058 public:
00060 virtual const Kind & kind() const;
00061
00062 virtual bool relevant() const
00063 { return false; }
00064
00066 virtual CapMatch matches( const CapabilityImpl::constPtr & rhs ) const;
00067
00069 virtual std::string encode() const;
00070
00071 const std::string & name() const
00072 { return _name; }
00073
00074 const std::string & path() const
00075 { return _path; }
00076
00077 private:
00079 std::string _name;
00081 std::string _path;
00082 };
00084
00086 }
00089 }
00091 #endif // ZYPP_CAPABILITY_SPLITCAP_H