libzypp  17.28.0
MetaLinkParser.cc File Reference
#include <zypp/media/MetaLinkParser.h>
#include <zypp/base/Logger.h>
#include <zypp/ByteArray.h>
#include <zypp/AutoDispose.h>
#include <stack>
#include <vector>
#include <algorithm>
#include <libxml2/libxml/SAX2.h>
Include dependency graph for MetaLinkParser.cc:

Go to the source code of this file.

Classes

struct  zypp::media::transition
 
struct  zypp::media::ml_parsedata
 

Namespaces

 zypp
 Easy-to use interface to the ZYPP dependency resolver.
 
 zypp::media
 

Enumerations

enum  zypp::media::ParserState {
  zypp::media::STATE_START, zypp::media::STATE_METALINK, zypp::media::STATE_FILES, zypp::media::STATE_FILE,
  zypp::media::STATE_M4FILE, zypp::media::STATE_SIZE, zypp::media::STATE_M4SIZE, zypp::media::STATE_VERIFICATION,
  zypp::media::STATE_HASH, zypp::media::STATE_M4HASH, zypp::media::STATE_PIECES, zypp::media::STATE_M4PIECES,
  zypp::media::STATE_PHASH, zypp::media::STATE_M4PHASH, zypp::media::STATE_RESOURCES, zypp::media::STATE_URL,
  zypp::media::STATE_M4URL, zypp::media::NUMSTATES
}
 

Functions

const std::unordered_map< ParserState, std::vector< transition > > & zypp::media::transitions ()
 
static void XMLCALL zypp::media::startElement (void *userData, const xmlChar *name, const xmlChar **atts)
 
static void XMLCALL zypp::media::endElement (void *userData, const xmlChar *name)
 
static void XMLCALL zypp::media::characterData (void *userData, const xmlChar *s, int len)
 
static const char * zypp::media::find_attr (const char *txt, const xmlChar **atts)
 Look up a xml attribute in the passed array atts. More...
 
UByteArray zypp::media::hexstr2bytes (std::string str)