FileCap.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef ZYPP_CAPABILITY_FILECAP_H
00013 #define ZYPP_CAPABILITY_FILECAP_H
00014 
00015 #include "zypp/capability/CapabilityImpl.h"
00016 
00018 namespace zypp
00019 { 
00020 
00021   namespace capability
00022   { 
00023 
00024     DEFINE_PTR_TYPE(FileCap)
00025 
00026     
00027     //
00028     //  CLASS NAME : FileCap
00029     //
00038     class FileCap : public CapabilityImpl
00039     {
00040     public:
00041       typedef FileCap Self;
00042       typedef FileCap_Ptr Ptr;
00043       typedef FileCap_constPtr constPtr;
00044 
00046       FileCap( const Resolvable::Kind & refers_r, const std::string & fname_r )
00047       : CapabilityImpl( refers_r )
00048       , _fname( fname_r )
00049       {}
00050 
00051     public:
00052       std::string filename() const
00053       { return _fname; }
00054 
00056       virtual const Kind & kind() const;
00057 
00059       virtual CapMatch matches( const CapabilityImpl::constPtr & rhs ) const;
00060 
00062       virtual std::string encode() const;
00063 
00064     private:
00066       std::string _fname;
00067     };
00069 
00071   } // namespace capability
00074 } // namespace zypp
00076 #endif // ZYPP_CAPABILITY_FILECAP_H

Generated on Tue Sep 25 19:23:00 2007 for libzypp by  doxygen 1.5.3