00001
00002
00003
00004
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
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 }
00063 }
00065 #endif // ZYPP_CACHE_ATTRIBUTE_H