Modalias.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef ZYPP_TARGET_MODALIAS_MODALIAS_H
00013 #define ZYPP_TARGET_MODALIAS_MODALIAS_H
00014 
00015 #include <iosfwd>
00016 #include <string>
00017 
00018 #include "zypp/base/PtrTypes.h"
00019 #include "zypp/Rel.h"
00020 
00022 namespace zypp
00023 { 
00024 
00025   namespace target
00026   { 
00027 
00028     namespace modalias
00029     { 
00030 
00032       //
00033       //        CLASS NAME : Modalias
00034       //
00038       class Modalias
00039       {
00040         friend std::ostream & operator<<( std::ostream & str, const Modalias & obj );
00041 
00042       public:
00044         class Impl;
00045 
00046       public:
00048         static Modalias & instance();
00049 
00051         ~Modalias();
00052 
00053       public:
00054 
00056         bool query( const std::string & cap_r ) const;
00057 
00059         bool query( const std::string & cap_r,
00060                     Rel op_r,
00061                     const std::string & val_r ) const;
00062 
00063       private:
00065         Modalias();
00066 
00068         RW_pointer<Impl> _pimpl;
00069       };
00071 
00073       std::ostream & operator<<( std::ostream & str, const Modalias & obj );
00074 
00076     } // namespace modalias
00079   } // namespace target
00082 } // namespace zypp
00084 #endif // ZYPP_TARGET_MODALIAS_MODALIAS_H

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