XPath Class Reference

#include <xpath.h>

Inheritance diagram for XPath:
zmm::Object

Public Member Functions

 XPath (zmm::Ref< mxml::Element > context)
zmm::String getText (zmm::String xpath)
zmm::Ref< mxml::ElementgetElement (zmm::String xpath)
void retain ()
void release ()
int getRefCount ()

Static Public Member Functions

static zmm::String getPathPart (zmm::String xpath)
static zmm::String getAxisPart (zmm::String xpath)
static zmm::String getAxis (zmm::String axisPart)
static zmm::String getSpec (zmm::String axisPart)
static void * operator new (size_t size)
static void operator delete (void *ptr)

Protected Member Functions

zmm::Ref< mxml::ElementelementAtPath (zmm::String path)

Protected Attributes

zmm::Ref< mxml::Elementcontext
mt_atomic_t _ref_count
pthread_mutex_t mutex

Detailed Description

Definition at line 38 of file xpath.h.


Constructor & Destructor Documentation

XPath::XPath ( zmm::Ref< mxml::Element context  ) 

Definition at line 43 of file xpath.cc.


Member Function Documentation

Ref< Element > XPath::elementAtPath ( zmm::String  path  )  [protected]

Definition at line 93 of file xpath.cc.

References context, nil, and split_string().

Referenced by getElement(), and getText().

String XPath::getAxis ( zmm::String  axisPart  )  [static]

Definition at line 120 of file xpath.cc.

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

Referenced by ConfigManager::getOption(), and getText().

String XPath::getAxisPart ( zmm::String  xpath  )  [static]
Ref< Element > XPath::getElement ( zmm::String  xpath  ) 

Definition at line 48 of file xpath.cc.

References _, _Exception, elementAtPath(), getAxisPart(), and nil.

String XPath::getPathPart ( zmm::String  xpath  )  [static]

Definition at line 81 of file xpath.cc.

References zmm::String::c_str(), zmm::String::rindex(), and zmm::String::substring().

Referenced by ConfigManager::getOption(), and getText().

int Object::getRefCount (  )  [inherited]

Definition at line 78 of file object.cc.

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

String XPath::getSpec ( zmm::String  axisPart  )  [static]

Definition at line 126 of file xpath.cc.

References zmm::String::c_str().

Referenced by ConfigManager::getOption(), and getText().

String XPath::getText ( zmm::String  xpath  ) 

Definition at line 58 of file xpath.cc.

References _, _Exception, elementAtPath(), getAxis(), getAxisPart(), getPathPart(), getSpec(), and nil.

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]

Definition at line 41 of file xpath.h.

Referenced by elementAtPath().

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