zypp::cache::Attribute Struct Reference

Attribute klass and name definition. More...

#include <Attribute.h>

List of all members.

Public Types

enum  ShareType { UNIQUE, SHARED }

Public Member Functions

 Attribute (const std::string &klass_r, const std::string &name_r, ShareType shareType_r=UNIQUE)

Public Attributes

std::string klass
std::string name
bool evalShared

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &str, const Attribute &obj)
 Stream output.


Detailed Description

Attribute klass and name definition.

Attribute defines the klass and name value CacheStore uses to write an attribute to the database. The same pair is required to query the attributes value.

evalShared tells whether the resolvables :shared_id should be evaluated in queries, in case no attribute value is defined. Some attributes like e.g. Summary can be shared between packages that differ in architecture only. *

Definition at line 40 of file Attribute.h.


Member Enumeration Documentation

enum zypp::cache::Attribute::ShareType

Enumerator:
UNIQUE 
SHARED 

Definition at line 42 of file Attribute.h.


Constructor & Destructor Documentation

zypp::cache::Attribute::Attribute ( const std::string &  klass_r,
const std::string &  name_r,
ShareType  shareType_r = UNIQUE 
) [inline]

Definition at line 44 of file Attribute.h.


Friends And Related Function Documentation

std::ostream & operator<< ( std::ostream &  str,
const Attribute obj 
) [related]

Stream output.

Definition at line 31 of file Attribute.cc.


Member Data Documentation

std::string zypp::cache::Attribute::klass

Definition at line 50 of file Attribute.h.

Referenced by zypp::cache::CacheStore::appendBooleanAttribute(), zypp::cache::CacheStore::appendNumericAttribute(), zypp::cache::CacheStore::appendStringAttribute(), zypp::cache::CacheStore::appendStringAttributeTranslation(), zypp::cache::CacheStore::appendStringContainerAttribute(), zypp::cache::CacheStore::appendTranslatedStringAttribute(), zypp::cache::CacheStore::lookupOrAppendType(), zypp::cache::operator<<(), zypp::cache::ResolvableQuery::queryBooleanAttribute(), zypp::cache::ResolvableQuery::queryNumericAttribute(), zypp::cache::ResolvableQuery::queryStringAttribute(), zypp::cache::ResolvableQuery::queryStringAttributeTranslation(), zypp::cache::ResolvableQuery::queryStringContainerAttribute(), and zypp::cache::ResolvableQuery::queryTranslatedStringAttribute().

std::string zypp::cache::Attribute::name

Definition at line 51 of file Attribute.h.

Referenced by zypp::cache::CacheStore::appendBooleanAttribute(), zypp::cache::CacheStore::appendNumericAttribute(), zypp::cache::CacheStore::appendStringAttribute(), zypp::cache::CacheStore::appendStringAttributeTranslation(), zypp::cache::CacheStore::appendStringContainerAttribute(), zypp::cache::CacheStore::appendTranslatedStringAttribute(), zypp::cache::CacheStore::lookupOrAppendType(), zypp::cache::operator<<(), zypp::cache::ResolvableQuery::queryBooleanAttribute(), zypp::cache::ResolvableQuery::queryNumericAttribute(), zypp::cache::ResolvableQuery::queryStringAttribute(), zypp::cache::ResolvableQuery::queryStringAttributeTranslation(), zypp::cache::ResolvableQuery::queryStringContainerAttribute(), and zypp::cache::ResolvableQuery::queryTranslatedStringAttribute().

bool zypp::cache::Attribute::evalShared

Definition at line 52 of file Attribute.h.


The documentation for this struct was generated from the following file:
Generated on Tue Sep 25 19:23:17 2007 for libzypp by  doxygen 1.5.3