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 
00025     //
00026     //  CLASS NAME : FileCap
00027     //
00032     class FileCap : public CapabilityImpl
00033     {
00034     public:
00035       typedef FileCap Self;
00036 
00038       FileCap( const Resolvable::Kind & refers_r, const std::string & fname_r )
00039       : CapabilityImpl( refers_r )
00040       , _fname( fname_r )
00041       {}
00042 
00043     public:
00045       virtual const Kind & kind() const;
00046 
00048       virtual CapMatch matches( const constPtr & rhs ) const;
00049 
00051       virtual std::string encode() const;
00052 
00053     private:
00055       std::string _fname;
00056     };
00058 
00060   } // namespace capability
00063 } // namespace zypp
00065 #endif // ZYPP_CAPABILITY_FILECAP_H

Generated on Thu Jul 6 00:07:20 2006 for zypp by  doxygen 1.4.6