Pattern.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef ZYPP_PATTERN_H
00013 #define ZYPP_PATTERN_H
00014 
00015 #include "zypp/ResObject.h"
00016 #include "zypp/detail/PatternImplIf.h"
00017 #include "zypp/Pathname.h"
00018 
00020 namespace zypp
00021 { 
00022 
00023   DEFINE_PTR_TYPE(Pattern);
00024 
00026   //
00027   //    CLASS NAME : Pattern
00028   //
00031   class Pattern : public ResObject
00032   {
00033   public:
00034     typedef detail::PatternImplIf  Impl;
00035     typedef Pattern                Self;
00036     typedef ResTraits<Self>          TraitsType;
00037     typedef TraitsType::PtrType      Ptr;
00038     typedef TraitsType::constPtrType constPtr;
00039 
00040   public:
00042     bool isDefault() const;
00044     bool userVisible() const;
00046     std::string category() const;
00048     Pathname icon() const;
00050     Pathname script() const;
00052     Label order() const;
00053 
00055     std::set<std::string> install_packages( const Locale & lang = Locale("") ) const ZYPP_DEPRECATED;
00056 
00058     const CapSet & includes() const;
00060     const CapSet & extends() const;
00061 
00062   protected:
00064     Pattern( const NVRAD & nvrad_r );
00066     virtual ~Pattern();
00067 
00068   private:
00070     virtual Impl & pimpl() = 0;
00072     virtual const Impl & pimpl() const = 0;
00073   };
00075 
00077 } // namespace zypp
00079 #endif // ZYPP_PATTERN_H

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