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 void copyFileToStream (const Pathname &file_r, std::ostream &out_r)
static string xml_escape (const string &text)
static string xml_tag_enclose (const string &text, const string &tag, bool escape=false)
static ostream & operator<< (ostream &str, const boost::tribool obj)
static string translatedTextToXML (const TranslatedText &text, const string &tagname)
 helper function that builds <tagname lang="code">text</tagname>
template<class T>
string toXML (const T &obj)
template<>
string toXML (const Edition &edition)
template<>
string toXML (const Arch &arch)
template<>
string toXML (const Capability &cap)
template<>
string toXML (const CapSet &caps)
template<>
string toXML (const Dependencies &dep)
template<>
string toXML (const Resolvable::constPtr &obj)
 Serialize Resolvable properties NOTE: This wont serialize child classes properties Use castedToXML for that.
string castedToXML (const Resolvable::constPtr &ret)
 Serialize properties based in the specific kind of the Resolvable.
string resolvableTypeToString (const Resolvable::constPtr &resolvable, bool plural=false)
 lack of instrospection sucks
string resolvableKindToString (const Resolvable::Kind &kind, bool plural=false)
 lack of instrospection sucks
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 173 of file PersistentStorage.cc.

static void zypp::storage::copyFileToStream ( const Pathname &  file_r,
std::ostream &  out_r 
) [static]

Definition at line 41 of file serialize.cc.

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

Definition at line 53 of file serialize.cc.

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

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

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

Definition at line 59 of file serialize.cc.

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

Referenced by toXML().

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

Definition at line 73 of file serialize.cc.

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

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

Definition at line 89 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  )  [inline]

Referenced by castedToXML(), and toXML().

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

Definition at line 109 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  )  [inline]

Definition at line 118 of file serialize.cc.

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

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

Definition at line 126 of file serialize.cc.

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

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

Definition at line 136 of file serialize.cc.

References toXML().

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

Definition at line 148 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  )  [inline]

Serialize Resolvable properties NOTE: This wont serialize child classes properties Use castedToXML for that.

Serialize ResObject properties.

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

References toXML().

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

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

lack of instrospection sucks

Definition at line 413 of file serialize.cc.

References resolvableKindToString().

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

lack of instrospection sucks

Definition at line 418 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().

PRODUCT_TABLE_ENTRY* zypp::storage::products_table (  ) 

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

Definition at line 93 of file XMLFilesBackend.cc.

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

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

Definition at line 1337 of file XMLFilesBackend.cc.


Generated on Tue Sep 25 19:23:27 2007 for libzypp by  doxygen 1.5.3