mxml::Document Class Reference

#include <document.h>

Inheritance diagram for mxml::Document:
mxml::Node zmm::Object

Public Member Functions

 Document ()
zmm::Ref< ElementgetRoot ()
void setRoot (zmm::Ref< Element > root)
void appendChild (zmm::Ref< Node > child)
enum mxml_node_types getType ()
virtual zmm::String print ()
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

virtual void print_internal (zmm::Ref< zmm::StringBuffer > buf, int indent)

Static Protected Member Functions

static zmm::String escape (zmm::String str)

Protected Attributes

zmm::Ref< Elementroot
zmm::Ref< zmm::Array< Node > > children
zmm::Ref< Contextcontext
enum mxml_node_types type
mt_atomic_t _ref_count
pthread_mutex_t mutex

Detailed Description

Definition at line 44 of file document.h.


Constructor & Destructor Documentation

Document::Document (  ) 

Definition at line 42 of file document.cc.

References mxml::mxml_node_document, nil, root, and mxml::Node::type.


Member Function Documentation

void Document::appendChild ( zmm::Ref< Node child  ) 

Definition at line 59 of file document.cc.

References mxml::Node::children, and nil.

Referenced by setRoot().

String Node::escape ( zmm::String  str  )  [static, protected, inherited]
int Object::getRefCount (  )  [inherited]

Definition at line 78 of file object.cc.

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

Ref< Element > Document::getRoot (  ) 

Definition at line 54 of file document.cc.

References root.

enum mxml_node_types mxml::Node::getType (  )  [inline, inherited]

Definition at line 60 of file node.h.

References mxml::Node::type.

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.

String Node::print (  )  [virtual, inherited]

Definition at line 43 of file node.cc.

References mxml::Node::print_internal().

void Document::print_internal ( zmm::Ref< zmm::StringBuffer buf,
int  indent 
) [protected, virtual]

Implements mxml::Node.

Definition at line 66 of file document.cc.

References mxml::Node::children, and nil.

void Object::release (  )  [inherited]
void Object::retain (  )  [inherited]
void Document::setRoot ( zmm::Ref< Element root  ) 

Definition at line 48 of file document.cc.

References appendChild(), and RefCast.


Field Documentation

mt_atomic_t zmm::Object::_ref_count [protected, inherited]
zmm::Ref<zmm::Array<Node> > mxml::Node::children [protected, inherited]
zmm::Ref<Context> mxml::Node::context [protected, inherited]

Definition at line 56 of file node.h.

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

Definition at line 47 of file document.h.

Referenced by Document(), and getRoot().

enum mxml_node_types mxml::Node::type [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