mxml::XML2JSON Class Reference

#include <xml_to_json.h>

Inheritance diagram for mxml::XML2JSON:
zmm::Object

Public Member Functions

void retain ()
void release ()
int getRefCount ()

Static Public Member Functions

static zmm::String getJSON (zmm::Ref< Element > root)
static void * operator new (size_t size)
static void operator delete (void *ptr)

Static Protected Member Functions

static void handleElement (zmm::Ref< zmm::StringBuffer > buf, zmm::Ref< Element > el)
static zmm::String getValue (zmm::String text, enum mxml_value_type type)

Protected Attributes

mt_atomic_t _ref_count
pthread_mutex_t mutex

Detailed Description

Definition at line 42 of file xml_to_json.h.


Member Function Documentation

String XML2JSON::getJSON ( zmm::Ref< Element root  )  [static]

Definition at line 42 of file xml_to_json.cc.

References handleElement().

int Object::getRefCount (  )  [inherited]

Definition at line 78 of file object.cc.

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

String XML2JSON::getValue ( zmm::String  text,
enum mxml_value_type  type 
) [static, protected]

Todo:
should we check if really int?

Definition at line 174 of file xml_to_json.cc.

References _, escape(), mxml::mxml_bool_type, mxml::mxml_int_type, mxml::mxml_null_type, mxml::mxml_string_type, nil, and string_ok().

Referenced by handleElement().

void XML2JSON::handleElement ( zmm::Ref< zmm::StringBuffer buf,
zmm::Ref< Element el 
) [static, protected]

Definition at line 52 of file xml_to_json.cc.

References _, _Exception, escape(), getValue(), mxml::mxml_node_element, mxml::mxml_node_text, nil, RefCast, and string_ok().

Referenced by getJSON().

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

Definition at line 87 of file object.cc.

References FREE.

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

Definition at line 83 of file object.cc.

References MALLOC.

void Object::release (  )  [inherited]
void Object::retain (  )  [inherited]

Field Documentation

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

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

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