mxml::Text Class Reference

#include <xml_text.h>

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

Public Member Functions

 Text (zmm::String text)
 Text (zmm::String text, enum mxml_value_type vtype)
zmm::String getText ()
void setText (zmm::String text)
enum mxml_value_type getVType ()
void setVType (enum mxml_value_type vtype)
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::String text
enum mxml_value_type vtype
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 xml_text.h.


Constructor & Destructor Documentation

Text::Text ( zmm::String  text  ) 

Definition at line 42 of file xml_text.cc.

References mxml::mxml_node_text, mxml::mxml_string_type, mxml::Node::type, and vtype.

Text::Text ( zmm::String  text,
enum mxml_value_type  vtype 
)

Definition at line 49 of file xml_text.cc.

References mxml::mxml_node_text, and mxml::Node::type.


Member Function Documentation

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

Definition at line 50 of file node.cc.

References zmm::String::c_str(), and zmm::String::length().

Referenced by print_internal(), and mxml::Element::print_internal().

int Object::getRefCount (  )  [inherited]

Definition at line 78 of file object.cc.

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

zmm::String mxml::Text::getText (  )  [inline]

Definition at line 53 of file xml_text.h.

References text.

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

Definition at line 60 of file node.h.

References mxml::Node::type.

enum mxml_value_type mxml::Text::getVType (  )  [inline]

Definition at line 55 of file xml_text.h.

References vtype.

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 Text::print_internal ( zmm::Ref< zmm::StringBuffer buf,
int  indent 
) [protected, virtual]

Implements mxml::Node.

Definition at line 56 of file xml_text.cc.

References mxml::Node::escape(), and text.

void Object::release (  )  [inherited]
void Object::retain (  )  [inherited]
void mxml::Text::setText ( zmm::String  text  )  [inline]

Definition at line 54 of file xml_text.h.

void mxml::Text::setVType ( enum mxml_value_type  vtype  )  [inline]

Definition at line 56 of file xml_text.h.


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 xml_text.h.

Referenced by getText(), and print_internal().

enum mxml_node_types mxml::Node::type [protected, inherited]

Definition at line 48 of file xml_text.h.

Referenced by getVType(), and Text().


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