mxml::Parser Class Reference

#include <parser.h>

Inheritance diagram for mxml::Parser:

Public Member Functions

 Parser ()
zmm::Ref< DocumentparseFile (zmm::String)
zmm::Ref< DocumentparseString (zmm::String)
void retain ()
void release ()
int getRefCount ()

Static Public Member Functions

static void * operator new (size_t size)
static void operator delete (void *ptr)

Protected Member Functions

zmm::Ref< Documentparse (zmm::Ref< Context > ctx, zmm::String input)

Static Protected Member Functions

static void XMLCALL element_start (void *userdata, const char *name, const char **attrs)
static void XMLCALL element_end (void *userdata, const char *name)
static void XMLCALL character_data (void *userdata, const XML_Char *s, int len)
static void XMLCALL comment_callback (void *userdata, const XML_Char *s)
static void XMLCALL default_callback (void *userdata, const XML_Char *s, int len)

Protected Attributes

zmm::Ref< zmm::ObjectStack
< Element > > 
zmm::Ref< Documentdocument
zmm::Ref< ElementcurEl
bool ignoreNextDefaultNewline
mt_atomic_t _ref_count
pthread_mutex_t mutex

Detailed Description

Definition at line 53 of file parser.h.

Constructor & Destructor Documentation

mxml::Parser::Parser (  ) 

Member Function Documentation

static void XMLCALL mxml::Parser::character_data ( void *  userdata,
const XML_Char *  s,
int  len 
) [static, protected]
static void XMLCALL mxml::Parser::comment_callback ( void *  userdata,
const XML_Char *  s 
) [static, protected]
static void XMLCALL mxml::Parser::default_callback ( void *  userdata,
const XML_Char *  s,
int  len 
) [static, protected]
static void XMLCALL mxml::Parser::element_end ( void *  userdata,
const char *  name 
) [static, protected]
static void XMLCALL mxml::Parser::element_start ( void *  userdata,
const char *  name,
const char **  attrs 
) [static, protected]
int Object::getRefCount (  )  [inherited]

Definition at line 78 of file

References zmm::Object::_ref_count, and atomic_get().

void Object::operator delete ( void *  ptr  )  [static, inherited]

Definition at line 87 of file

References FREE.

void * Object::operator new ( size_t  size  )  [static, inherited]

Definition at line 83 of file

References MALLOC.

zmm::Ref<Document> mxml::Parser::parse ( zmm::Ref< Context ctx,
zmm::String  input 
) [protected]
zmm::Ref<Document> mxml::Parser::parseFile ( zmm::String   ) 
zmm::Ref<Document> mxml::Parser::parseString ( zmm::String   ) 
void Object::release (  )  [inherited]
void Object::retain (  )  [inherited]

Field Documentation

mt_atomic_t zmm::Object::_ref_count [protected, inherited]

Definition at line 66 of file parser.h.

Definition at line 65 of file parser.h.

Definition at line 64 of file parser.h.

Definition at line 67 of file parser.h.

pthread_mutex_t zmm::Object::mutex [protected, inherited]

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

Generated on Fri Mar 26 20:16:58 2010 for MediaTomb by  doxygen 1.6.1