#include <element.h>
Definition at line 44 of file element.h.
| Element::Element | ( | zmm::String | name | ) |
Definition at line 44 of file element.cc.
References arrayName, arrayType, mxml::mxml_node_element, nil, textKey, and mxml::Node::type.
Referenced by appendTextChild().
| Element::Element | ( | zmm::String | name, | |
| zmm::Ref< Context > | context | |||
| ) |
Definition at line 52 of file element.cc.
References arrayName, arrayType, mxml::mxml_node_element, nil, textKey, and mxml::Node::type.
| void Element::addAttribute | ( | zmm::String | name, | |
| zmm::String | value, | |||
| enum mxml_value_type | type = mxml_string_type | |||
| ) | [protected] |
Definition at line 74 of file element.cc.
References addAttribute().
Definition at line 80 of file element.cc.
References attributes, and nil.
Referenced by addAttribute(), and setAttribute().
Definition at line 174 of file element.cc.
References mxml::Node::children, and nil.
Referenced by appendElementChild(), indent(), and setText().
Definition at line 88 of file element.h.
References appendChild(), and RefCast.
Referenced by appendTextChild().
| void Element::appendTextChild | ( | zmm::String | name, | |
| zmm::String | text, | |||
| enum mxml_value_type | type = mxml_string_type | |||
| ) |
Definition at line 360 of file element.cc.
References appendElementChild(), and Element().
| int Element::attributeCount | ( | ) |
Definition at line 324 of file element.cc.
References attributes, and nil.
| int Element::childCount | ( | enum mxml_node_types | type = mxml_node_all |
) |
Definition at line 105 of file element.cc.
References mxml::Node::children, mxml::mxml_node_all, and nil.
Referenced by elementChildCount(), indent(), removeWhitespace(), and setText().
| int mxml::Element::elementChildCount | ( | ) | [inline] |
Definition at line 83 of file element.h.
References childCount(), and mxml::mxml_node_element.
| 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 mxml::Text::print_internal(), and print_internal().
| zmm::String mxml::Element::getArrayName | ( | ) | [inline] |
Definition at line 331 of file element.cc.
References attributes, and nil.
| String Element::getAttribute | ( | zmm::String | name | ) |
Definition at line 61 of file element.cc.
References attributes, and nil.
| Ref< Node > Element::getChild | ( | int | index, | |
| enum mxml_node_types | type = mxml_node_all, |
|||
| bool | remove = false | |||
| ) |
Definition at line 125 of file element.cc.
References mxml::Node::children, mxml::mxml_node_all, and nil.
Referenced by getChildByName(), getElementChild(), getFirstChild(), getText(), getVTypeText(), indent(), removeChild(), removeElementChild(), removeWhitespace(), and setText().
| Ref< Element > Element::getChildByName | ( | zmm::String | name | ) |
Definition at line 386 of file element.cc.
References getChild(), getChildIdByName(), nil, and RefCast.
Referenced by getChildText().
| int Element::getChildIdByName | ( | zmm::String | name | ) |
Definition at line 369 of file element.cc.
References mxml::Node::children, mxml::mxml_node_element, nil, and RefCast.
Referenced by getChildByName(), and removeElementChild().
| String Element::getChildText | ( | zmm::String | name | ) |
Definition at line 394 of file element.cc.
References getChildByName(), and nil.
Definition at line 82 of file element.h.
References getChild(), mxml::mxml_node_element, and RefCast.
Referenced by getFirstElementChild().
| zmm::Ref<Node> mxml::Element::getFirstChild | ( | enum mxml_node_types | type = mxml_node_all |
) | [inline] |
Definition at line 73 of file element.h.
References getChild(), and mxml::Node::type.
Definition at line 81 of file element.h.
References getElementChild().
| zmm::String mxml::Element::getName | ( | ) | [inline] |
| int Object::getRefCount | ( | ) | [inherited] |
Definition at line 78 of file object.cc.
References zmm::Object::_ref_count, and atomic_get().
| String Element::getText | ( | ) |
Definition at line 285 of file element.cc.
References getChild(), mxml::mxml_node_text, nil, and RefCast.
| zmm::String mxml::Element::getTextKey | ( | ) | [inline] |
| 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 Element::getVTypeText | ( | ) |
Definition at line 302 of file element.cc.
References getChild(), mxml::mxml_node_text, mxml::mxml_string_type, nil, and RefCast.
| void Element::indent | ( | int | level = 0 |
) |
Definition at line 229 of file element.cc.
References _, appendChild(), childCount(), getChild(), insertChild(), mxml::mxml_node_comment, mxml::mxml_node_element, mxml::mxml_node_text, RefCast, and removeWhitespace().
Definition at line 181 of file element.cc.
References mxml::Node::children, and nil.
Referenced by indent().
| bool mxml::Element::isArrayType | ( | ) | [inline] |
| void Object::operator delete | ( | void * | ptr | ) | [static, inherited] |
| void * Object::operator new | ( | size_t | size | ) | [static, inherited] |
| String Node::print | ( | ) | [virtual, inherited] |
Definition at line 43 of file node.cc.
References mxml::Node::print_internal().
| void Element::print_internal | ( | zmm::Ref< zmm::StringBuffer > | buf, | |
| int | indent | |||
| ) | [protected, virtual] |
Implements mxml::Node.
Definition at line 402 of file element.cc.
References attributes, mxml::Node::children, mxml::Node::escape(), name, and nil.
| void Object::release | ( | ) | [inherited] |
Definition at line 66 of file object.cc.
References zmm::Object::_ref_count, atomic_dec(), and zmm::Object::mutex.
Referenced by zmm::ArrayBase::clear(), zmm::String::operator=(), DSOHash< zmm::Array< CacheObject > >::releaseData(), DSBHash< VT >::releaseData(), DSOHash< zmm::Array< CacheObject > >::remove(), zmm::ArrayBase::remove(), zmm::ArrayBase::removeUnordered(), zmm::ArrayBase::set(), zmm::ArrayBase::~ArrayBase(), DSOHash< zmm::Array< CacheObject > >::~DSOHash(), zmm::ObjectQueue< AutoscanDirectory >::~ObjectQueue(), zmm::ObjectStack< Element >::~ObjectStack(), and zmm::String::~String().
| void Element::removeChild | ( | int | index, | |
| enum mxml_node_types | type = mxml_node_all | |||
| ) |
Definition at line 188 of file element.cc.
References mxml::Node::children, getChild(), and mxml::mxml_node_all.
Referenced by removeElementChild(), and removeWhitespace().
| bool Element::removeElementChild | ( | zmm::String | name, | |
| bool | removeAll | |||
| ) |
Definition at line 160 of file element.cc.
References getChild(), getChildIdByName(), mxml::mxml_node_all, nil, and removeElementChild().
| void mxml::Element::removeElementChild | ( | int | index | ) | [inline] |
Definition at line 85 of file element.h.
References mxml::mxml_node_element, and removeChild().
Referenced by removeElementChild().
| void Element::removeWhitespace | ( | ) |
Definition at line 198 of file element.cc.
References childCount(), getChild(), mxml::mxml_node_element, mxml::mxml_node_text, RefCast, removeChild(), string_ok(), and trim_string().
Referenced by indent().
| void Object::retain | ( | ) | [inherited] |
Definition at line 58 of file object.cc.
References zmm::Object::_ref_count, atomic_inc(), and zmm::Object::mutex.
Referenced by zmm::ArrayBase::append(), zmm::ObjectQueue< AutoscanDirectory >::enqueue(), zmm::ArrayBase::insert(), zmm::String::operator=(), zmm::ObjectStack< Element >::push(), DSOHash< zmm::Array< CacheObject > >::put(), DSBHash< VT >::put(), zmm::ArrayBase::set(), and zmm::String::String().
| void mxml::Element::setArrayName | ( | zmm::String | arrayName | ) | [inline] |
| void Element::setAttribute | ( | zmm::String | name, | |
| zmm::String | value, | |||
| enum mxml_value_type | type = mxml_string_type | |||
| ) |
Definition at line 87 of file element.cc.
References addAttribute(), attributes, and nil.
| void mxml::Element::setName | ( | zmm::String | name | ) | [inline] |
| void Element::setText | ( | zmm::String | text, | |
| enum mxml_value_type | type = mxml_string_type | |||
| ) |
Definition at line 340 of file element.cc.
References _, _Exception, appendChild(), childCount(), getChild(), mxml::mxml_node_text, nil, and RefCast.
| void mxml::Element::setTextKey | ( | zmm::String | textKey | ) | [inline] |
mt_atomic_t zmm::Object::_ref_count [protected, inherited] |
Definition at line 54 of file object.h.
Referenced by zmm::Object::getRefCount(), zmm::Object::Object(), zmm::Object::release(), and zmm::Object::retain().
zmm::String mxml::Element::arrayName [protected] |
Definition at line 52 of file element.h.
Referenced by Element(), and getArrayName().
bool mxml::Element::arrayType [protected] |
Definition at line 51 of file element.h.
Referenced by Element(), isArrayType(), and setArrayName().
zmm::Ref<zmm::Array<Attribute> > mxml::Element::attributes [protected] |
Definition at line 48 of file element.h.
Referenced by addAttribute(), attributeCount(), getAttribute(), print_internal(), and setAttribute().
zmm::Ref<zmm::Array<Node> > mxml::Node::children [protected, inherited] |
Definition at line 55 of file node.h.
Referenced by appendChild(), mxml::Document::appendChild(), childCount(), getChild(), getChildIdByName(), insertChild(), print_internal(), mxml::Document::print_internal(), and removeChild().
zmm::Ref<Context> mxml::Node::context [protected, inherited] |
pthread_mutex_t zmm::Object::mutex [protected, inherited] |
Reimplemented in AutoscanList, AutoscanInotify, CachedURL, Dictionary_r, DVDNavReader, IOHandlerBufferHelper, ReentrantArray< T >, SingletonManager, Singleton< T >, StorageCache, MutexAutolock, Cond, ThreadExecutor, Singleton< UpdateManager >, Singleton< Timer >, Singleton< ContentDirectoryService >, Singleton< ConfigManager >, Singleton< Server >, Singleton< Runtime >, Singleton< ContentManager >, Singleton< ConnectionManagerService >, Singleton< PlayHook >, Singleton< Storage >, and Singleton< SessionManager >.
Definition at line 56 of file object.h.
Referenced by zmm::Object::Object(), zmm::Object::release(), zmm::Object::retain(), and zmm::Object::~Object().
zmm::String mxml::Element::name [protected] |
Definition at line 47 of file element.h.
Referenced by getName(), and print_internal().
zmm::String mxml::Element::textKey [protected] |
Definition at line 53 of file element.h.
Referenced by Element(), and getTextKey().
enum mxml_node_types mxml::Node::type [protected, inherited] |
Definition at line 57 of file node.h.
Referenced by mxml::Comment::Comment(), mxml::Document::Document(), Element(), getFirstChild(), mxml::Node::getType(), and mxml::Text::Text().
1.6.1