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
class  XMLFilesBackend

Functions

std::ostream & operator<< (std::ostream &str, const Backend &obj)
std::ostream & operator<< (std::ostream &str, const PersistentStorage &obj)
std::string xml_escape (const std::string &text)
std::string xml_tag_enclose (const std::string &text, const std::string &tag, bool escape=false)
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 PersistentStorage::SourceData &obj)
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 189 of file PersistentStorage.cc.

std::string zypp::storage::xml_escape const std::string &  text  ) 
 

Definition at line 38 of file serialize.cc.

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

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

std::string zypp::storage::xml_tag_enclose const std::string &  text,
const std::string &  tag,
bool  escape = false
 

Definition at line 44 of file serialize.cc.

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

Referenced by toXML().

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 64 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 84 of file serialize.cc.

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

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

Definition at line 93 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 101 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 111 of file serialize.cc.

References toXML().

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

Definition at line 123 of file serialize.cc.

References zypp::solver::detail::CONFLICTS, zypp::solver::detail::OBSOLETES, zypp::solver::detail::REQUIRES, toXML(), and xml_tag_enclose().

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

Serialize ResObject properties.

Definition at line 152 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 364 of file serialize.cc.

References toXML().

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

lack of instrospection sucks

Definition at line 388 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 393 of file serialize.cc.

Referenced by 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 PersistentStorage::SourceData &  obj  ) 
 

Definition at line 434 of file serialize.cc.

References zypp::storage::PersistentStorage::SourceData::alias, zypp::Url::asCompleteString(), zypp::storage::PersistentStorage::SourceData::autorefresh, zypp::storage::PersistentStorage::SourceData::cache_dir, zypp::storage::PersistentStorage::SourceData::enabled, zypp::storage::PersistentStorage::SourceData::product_dir, zypp::storage::PersistentStorage::SourceData::type, zypp::storage::PersistentStorage::SourceData::url, and xml_escape().

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

Definition at line 1167 of file XMLFilesBackend.cc.


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