Xmlcode Class Reference

*.ybc I/O More...

#include <Xmlcode.h>

List of all members.

Classes

class  Invalid
struct  namespaceentry_t
 references to namespaces More...

Static Public Member Functions

static string spaces (int count)
static string xmlify (const string &s)
static std::ostream & writeBytep (std::ostream &streamref, const unsigned char *bytep, unsigned int len)
static unsigned char * readBytep (xmlcodeistream &streamref)
static std::ostream & writeType (std::ostream &str, constTypePtr type)
static TypePtr readType (xmlcodeistream &str)
static std::ostream & writeYCodelist (std::ostream &str, const ycodelist_t *codelist)
static bool readYCodelist (xmlcodeistream &str, ycodelist_t **anchor)
static void namespaceInit ()
static int namespaceId (const Y2Namespace *name_space)
static const Y2NamespacenamespacePtr (int namespace_id)
static int pushNamespace (const Y2Namespace *name_space, bool with_xrefs=false)
static int popNamespace (const Y2Namespace *name_space)
static void popUptoNamespace (const Y2Namespace *name_space)
static int tareStack ()
static void untareStack (int tare_id)
static std::ostream & writeEntry (std::ostream &str, const SymbolEntryPtr entry)
static SymbolEntryPtr readEntry (xmlcodeistream &str)
static YCodePtr readCode (xmlcodeistream &str)
static YBlockPtr readModule (const string &mname)
static YCodePtr readFile (const string &filename)
static bool writeFile (const YCodePtr code, const string &filename)

Static Private Attributes

static int m_namespace_nesting_level = -1
static int m_namespace_nesting_array_size = 0
static int m_namespace_tare_level = 0
static namespaceentry_tm_namespace_nesting_array = 0
static map< string, YBlockPtr > * m_xmlcodeCache = NULL


Detailed Description

*.ybc I/O

Member Function Documentation

int Xmlcode::namespaceId ( const Y2Namespace name_space  )  [static]

void Xmlcode::namespaceInit (  )  [static]

const Y2Namespace * Xmlcode::namespacePtr ( int  namespace_id  )  [static]

int Xmlcode::popNamespace ( const Y2Namespace name_space  )  [static]

void Xmlcode::popUptoNamespace ( const Y2Namespace name_space  )  [static]

int Xmlcode::pushNamespace ( const Y2Namespace name_space,
bool  with_xrefs = false 
) [static]

unsigned char * Xmlcode::readBytep ( xmlcodeistream streamref  )  [static]

YCodePtr Xmlcode::readCode ( xmlcodeistream str  )  [static]

SymbolEntryPtr Xmlcode::readEntry ( xmlcodeistream str  )  [static]

YCodePtr Xmlcode::readFile ( const string &  filename  )  [static]

YBlockPtr Xmlcode::readModule ( const string &  mname  )  [static]

TypePtr Xmlcode::readType ( xmlcodeistream str  )  [static]

bool Xmlcode::readYCodelist ( xmlcodeistream str,
ycodelist_t **  anchor 
) [static]

string Xmlcode::spaces ( int  count  )  [static]

int Xmlcode::tareStack (  )  [static]

void Xmlcode::untareStack ( int  tare_id  )  [static]

References m_namespace_tare_level.

Referenced by readModule().

std::ostream & Xmlcode::writeBytep ( std::ostream &  streamref,
const unsigned char *  bytep,
unsigned int  len 
) [static]

References to_hexc().

Referenced by YCPByteblockRep::toXml().

std::ostream & Xmlcode::writeEntry ( std::ostream &  str,
const SymbolEntryPtr  entry 
) [static]

bool Xmlcode::writeFile ( const YCodePtr  code,
const string &  filename 
) [static]

References y2error.

Referenced by compilefile().

std::ostream & Xmlcode::writeType ( std::ostream &  str,
constTypePtr  type 
) [static]

std::ostream & Xmlcode::writeYCodelist ( std::ostream &  str,
const ycodelist_t codelist 
) [static]

string Xmlcode::xmlify ( const string &  s  )  [static]


Member Data Documentation

int Xmlcode::m_namespace_nesting_array_size = 0 [static, private]

int Xmlcode::m_namespace_nesting_level = -1 [static, private]

int Xmlcode::m_namespace_tare_level = 0 [static, private]

map< string, YBlockPtr > * Xmlcode::m_xmlcodeCache = NULL [static, private]

Referenced by readModule().


The documentation for this class was generated from the following files:

Generated on a sunny day for yast2-core by doxygen 1.5.9