Attribute.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef ZYPP_CACHE_ATTRIBUTE_H
00013 #define ZYPP_CACHE_ATTRIBUTE_H
00014 
00015 #include <iosfwd>
00016 #include <string>
00017 
00019 namespace zypp
00020 { 
00021 
00022   namespace cache
00023   { 
00024 
00026     //
00027     //  CLASS NAME : Attribute
00028     //
00040     struct Attribute
00041     {
00042       enum ShareType { UNIQUE, SHARED };
00043 
00044       Attribute( const std::string & klass_r, const std::string & name_r,
00045                  ShareType shareType_r = UNIQUE )
00046         : klass     (klass_r)
00047         , name      (name_r)
00048         , evalShared( shareType_r == SHARED )
00049       {}
00050       std::string klass;
00051       std::string name;
00052       bool        evalShared;
00053     };
00055 
00057     std::ostream & operator<<( std::ostream & str, const Attribute & obj );
00058 
00060   } // namespace cache
00063 } // namespace zypp
00065 #endif // ZYPP_CACHE_ATTRIBUTE_H

Generated on Tue Sep 25 19:22:59 2007 for libzypp by  doxygen 1.5.3