00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #include "zypp/capability/FileCap.h" 00013 00014 using namespace std; 00015 00017 namespace zypp 00018 { 00019 00020 namespace capability 00021 { 00022 00023 IMPL_PTR_TYPE(FileCap) 00024 00025 const CapabilityImpl::Kind & FileCap::kind() const 00026 { return CapTraits<Self>::kind; } 00027 00028 CapMatch FileCap::matches( const CapabilityImpl::constPtr & rhs ) const 00029 { 00030 return ( sameKindAndRefers( rhs ) 00031 && _fname == asKind<Self>(rhs)->_fname ); 00032 } 00033 00034 std::string FileCap::encode() const 00035 { return _fname; } 00036 00038 } // namespace capability 00041 } // namespace zypp
1.5.3