zypp::storage Namespace Reference


Classes

class  Backend
 This class represents a storage backend implementation. More...
class  PersistentStorage
class  XMLAtomImpl
 Class representing a Atom. More...
struct  XMLMessageImpl
 Class representing the message to be shown during update. More...
struct  XMLPatchImpl
struct  XMLPatternImpl
struct  XMLProductImpl
struct  XMLScriptImpl
 Class representing an update script. More...
struct  XMLSelectionImpl
struct  PRODUCT_TABLE_ENTRY
 the following hardcoded table fixes a bug where Product was serialized to the store using distproduct and distversion in the name/version fields. More...
class  XMLFilesBackend

Functions

std::ostream & operator<< (std::ostream &str, const Backend &obj)
std::ostream & operator<< (std::ostream &str, const PersistentStorage &obj)
static std::string xml_escape (const std::string &text)
static std::string xml_tag_enclose (const std::string &text, const std::string &tag, bool escape=false)
static std::ostream & operator<< (std::ostream &str, const boost::tribool obj)
static std::string translatedTextToXML (const TranslatedText &text, const std::string &tagname)
 helper function that builds <tagname lang="code">text</tagname>
template<class T>
std::string toXML (const T &obj)
template<>
std::string toXML (const Edition &edition)
template<>
std::string toXML (const Arch &arch)
template<>
std::string toXML (const Capability &cap)
template<>
std::string toXML (const CapSet &caps)
template<>
std::string toXML (const Dependencies &dep)
template<>
std::string toXML (const Resolvable::constPtr &obj)
 Serialize ResObject properties.
std::string castedToXML (const Resolvable::constPtr &ret)
 Serialize properties based in the specific kind of the Resolvable.
std::string resolvableTypeToString (const Resolvable::constPtr &resolvable, bool plural=false)
 lack of instrospection sucks
std::string resolvableKindToString (const Resolvable::Kind &kind, bool plural=false)
 lack of instrospection sucks
template<>
std::string toXML (const source::SourceInfo &obj)
PRODUCT_TABLE_ENTRYproducts_table ()
 create the map on demand so we create it once and only when needed
std::ostream & operator<< (std::ostream &str, const XMLFilesBackend &obj)


Function Documentation

std::ostream& zypp::storage::operator<< ( std::ostream &  str,
const Backend &  obj 
)

Definition at line 62 of file Backend.cc.

std::ostream& zypp::storage::operator<< ( std::ostream &  str,
const PersistentStorage &  obj 
)

Definition at line 195 of file PersistentStorage.cc.

static std::string zypp::storage::xml_escape ( const std::string &  text  )  [static]

Definition at line 38 of file serialize.cc.

References iobind::parser::xml_escape_parser::escape().

Referenced by toXML(), translatedTextToXML(), and xml_tag_enclose().

static std::string zypp::storage::xml_tag_enclose ( const std::string &  text,
const std::string &  tag,
bool  escape = false 
) [static]

Definition at line 44 of file serialize.cc.

References zypp::media::escape(), and xml_escape().

Referenced by toXML().

static std::ostream& zypp::storage::operator<< ( std::ostream &  str,
const boost::tribool  obj 
) [static]

Definition at line 58 of file serialize.cc.

static std::string zypp::storage::translatedTextToXML ( const TranslatedText &  text,
const std::string &  tagname 
) [static]

helper function that builds <tagname lang="code">text</tagname>

Definition at line 74 of file serialize.cc.

References zypp::TranslatedText::locales(), zypp::TranslatedText::text(), and xml_escape().

template<class T>
std::string zypp::storage::toXML ( const T &  obj  ) 

Referenced by castedToXML(), zypp::storage::XMLFilesBackend::storeSource(), and toXML().

template<>
std::string zypp::storage::toXML ( const Edition &  edition  ) 

Definition at line 94 of file serialize.cc.

References zypp::Edition::epoch(), zypp::Edition::release(), zypp::Edition::version(), and xml_escape().

template<>
std::string zypp::storage::toXML ( const Arch &  arch  ) 

Definition at line 103 of file serialize.cc.

References zypp::Arch::asString(), xml_escape(), and xml_tag_enclose().

template<>
std::string zypp::storage::toXML ( const Capability &  cap  ) 

Definition at line 111 of file serialize.cc.

References zypp::CapFactory::encode(), zypp::Capability::refers(), and xml_escape().

template<>
std::string zypp::storage::toXML ( const CapSet &  caps  ) 

Definition at line 121 of file serialize.cc.

References toXML().

template<>
std::string zypp::storage::toXML ( const Dependencies &  dep  ) 

Definition at line 133 of file serialize.cc.

References zypp::Dep::CONFLICTS, zypp::Dep::ENHANCES, zypp::Dep::FRESHENS, zypp::Dep::OBSOLETES, zypp::Dep::PREREQUIRES, zypp::Dep::PROVIDES, zypp::Dep::RECOMMENDS, zypp::Dep::REQUIRES, zypp::Dep::SUGGESTS, zypp::Dep::SUPPLEMENTS, toXML(), and xml_tag_enclose().

template<>
std::string zypp::storage::toXML ( const Resolvable::constPtr &  obj  ) 

Serialize ResObject properties.

Definition at line 162 of file serialize.cc.

References toXML(), and xml_escape().

std::string zypp::storage::castedToXML ( const Resolvable::constPtr &  resolvable  ) 

Serialize properties based in the specific kind of the Resolvable.

Definition at line 394 of file serialize.cc.

References toXML().

Referenced by zypp::storage::XMLFilesBackend::storeObject().

std::string zypp::storage::resolvableTypeToString ( const Resolvable::constPtr &  resolvable,
bool  plural = false 
)

lack of instrospection sucks

Definition at line 418 of file serialize.cc.

References resolvableKindToString().

std::string zypp::storage::resolvableKindToString ( const Resolvable::Kind &  kind,
bool  plural = false 
)

lack of instrospection sucks

Definition at line 423 of file serialize.cc.

Referenced by zypp::storage::XMLFilesBackend::deleteObject(), zypp::storage::XMLFilesBackend::dirForResolvableKind(), zypp::storage::XMLFilesBackend::dirForResolvableKindFlags(), zypp::storage::XMLFilesBackend::resolvablesFromFile(), resolvableTypeToString(), zypp::storage::XMLFilesBackend::storedObjects(), and zypp::storage::XMLFilesBackend::storeObject().

template<>
std::string zypp::storage::toXML ( const source::SourceInfo &  obj  ) 

Definition at line 464 of file serialize.cc.

References zypp::source::SourceInfo::alias(), zypp::Url::asCompleteString(), zypp::source::SourceInfo::autorefresh(), zypp::source::SourceInfo::cacheDir(), zypp::source::SourceInfo::enabled(), zypp::source::SourceInfo::path(), SERIALIZER_VERSION, zypp::source::SourceInfo::type(), zypp::source::SourceInfo::url(), and xml_escape().

PRODUCT_TABLE_ENTRY* zypp::storage::products_table (  ) 

create the map on demand so we create it once and only when needed

Definition at line 101 of file XMLFilesBackend.cc.

Referenced by zypp::storage::XMLFilesBackend::createProduct().

std::ostream& zypp::storage::operator<< ( std::ostream &  str,
const XMLFilesBackend &  obj 
)

Definition at line 1381 of file XMLFilesBackend.cc.


Generated on Tue Nov 28 16:49:40 2006 for zypp by  doxygen 1.5.0