mxml::Comment Class Reference

#include <comment.h>

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

Public Member Functions

 Comment (zmm::String text, bool indentWithLFbefore=false)
zmm::String getText ()
void setText (zmm::String text)
bool getIndentWithLFbefore ()
void setIndentWithLFbefore (bool indentWithLFbefore)
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 name
zmm::String text
zmm::Ref< zmm::Array< Attribute > > attributes
bool indentWithLFbefore
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 comment.h.


Constructor & Destructor Documentation

Comment::Comment ( zmm::String  text,
bool  indentWithLFbefore = false 
)

Definition at line 42 of file comment.cc.

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


Member Function Documentation

String Node::escape ( zmm::String  str  )  [static, protected, inherited]
bool mxml::Comment::getIndentWithLFbefore (  )  [inline]

Definition at line 56 of file comment.h.

References indentWithLFbefore.

int Object::getRefCount (  )  [inherited]

Definition at line 78 of file object.cc.

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

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

Definition at line 54 of file comment.h.

References text.

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

Implements mxml::Node.

Definition at line 49 of file comment.cc.

References text.

void Object::release (  )  [inherited]
void Object::retain (  )  [inherited]
void mxml::Comment::setIndentWithLFbefore ( bool  indentWithLFbefore  )  [inline]

Definition at line 57 of file comment.h.

void mxml::Comment::setText ( zmm::String  text  )  [inline]

Definition at line 55 of file comment.h.


Field Documentation

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

Definition at line 49 of file comment.h.

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.

Definition at line 50 of file comment.h.

Referenced by getIndentWithLFbefore().

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

Definition at line 47 of file comment.h.

Definition at line 48 of file comment.h.

Referenced by getText(), and print_internal().

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