OW_NAMESPACE::XMLNodeImpl Class Reference

#include <OW_XMLNode.hpp>

Inheritance diagram for OW_NAMESPACE::XMLNodeImpl:

Inheritance graph
[legend]
Collaboration diagram for OW_NAMESPACE::XMLNodeImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 XMLNodeImpl (const String &name, const XMLAttributeArray &attrArray)
 XMLNodeImpl (const String &name)
 XMLNodeImpl ()
String getNodeName () const
void assignText (const String &text)
void appendText (const String &text)
String getAttribute (const String &name, bool throwException=false) const
void addAttribute (const XMLAttribute &attr)
XMLAttributeArray getAttrs () const
String getText () const
String getName () const
void mustElement (const char *elementName) const
XMLNodeImplRef findElement (const char *elementName, bool throwException=false) const
XMLNodeImplRef nextElement (const char *elementName, bool throwException=false) const
XMLNodeImplRef findElementChild (const char *elementName, bool throwException=false) const
XMLNodeImplRef mustNextElement (const char *elementName) const
XMLNodeImplRef mustElementChild (const char *elementName) const
XMLNodeImplRef mustChildElement (const char *elementName) const
XMLNodeImplRef mustChildElementChild (const char *elementName) const
XMLNodeImplRef mustChildFindElement (const char *elementName) const
XMLNodeImplRef mustChildFindElementChild (const char *elementName) const
void setNext (const XMLNodeImplRef &node)
XMLNodeImplRef getNext () const
void addChild (const XMLNodeImplRef &node)
XMLNodeImplRef mustGetChild () const
XMLNodeImplRef getChild () const
XMLNodeArray getChildren () const
void printNode (std::ostream &ostr) const
String toString () const

Protected Attributes

XMLNodeImplRef m_nextNode
XMLNodeImplRef m_childNode
XMLNodeImplRef m_lastChildNode
XMLAttributeArray m_XMLAttributeArray
String m_strName
String m_strText

Detailed Description

Definition at line 437 of file OW_XMLNode.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::XMLNodeImpl::XMLNodeImpl const String name,
const XMLAttributeArray attrArray
 

Definition at line 55 of file OW_XMLNode.cpp.

OW_NAMESPACE::XMLNodeImpl::XMLNodeImpl const String name  ) 
 

Definition at line 63 of file OW_XMLNode.cpp.

OW_NAMESPACE::XMLNodeImpl::XMLNodeImpl  ) 
 

Definition at line 70 of file OW_XMLNode.cpp.

Referenced by findElement().


Member Function Documentation

void OW_NAMESPACE::XMLNodeImpl::addAttribute const XMLAttribute attr  ) 
 

Definition at line 118 of file OW_XMLNode.cpp.

References m_XMLAttributeArray, and OW_NAMESPACE::Array< T >::push_back().

void OW_NAMESPACE::XMLNodeImpl::addChild const XMLNodeImplRef node  ) 
 

Definition at line 336 of file OW_XMLNode.cpp.

References m_childNode, and m_lastChildNode.

void OW_NAMESPACE::XMLNodeImpl::appendText const String text  ) 
 

Definition at line 85 of file OW_XMLNode.cpp.

References m_strText.

void OW_NAMESPACE::XMLNodeImpl::assignText const String text  ) 
 

Definition at line 78 of file OW_XMLNode.cpp.

References m_strText.

XMLNodeImplRef OW_NAMESPACE::XMLNodeImpl::findElement const char *  elementName,
bool  throwException = false
const
 

Definition at line 146 of file OW_XMLNode.cpp.

References XMLNodeImpl().

Referenced by findElementChild().

XMLNodeImplRef OW_NAMESPACE::XMLNodeImpl::findElementChild const char *  elementName,
bool  throwException = false
const
 

Definition at line 299 of file OW_XMLNode.cpp.

References findElement().

String OW_NAMESPACE::XMLNodeImpl::getAttribute const String name,
bool  throwException = false
const
 

Definition at line 92 of file OW_XMLNode.cpp.

References i, m_XMLAttributeArray, name, and OW_NAMESPACE::Array< T >::size().

XMLAttributeArray OW_NAMESPACE::XMLNodeImpl::getAttrs  )  const
 

Definition at line 125 of file OW_XMLNode.cpp.

References m_XMLAttributeArray.

Referenced by printNode().

XMLNodeImplRef OW_NAMESPACE::XMLNodeImpl::getChild  )  const
 

Definition at line 365 of file OW_XMLNode.cpp.

References m_childNode.

XMLNodeArray OW_NAMESPACE::XMLNodeImpl::getChildren  )  const
 

Definition at line 372 of file OW_XMLNode.cpp.

References m_childNode, and OW_NAMESPACE::Array< T >::push_back().

String OW_NAMESPACE::XMLNodeImpl::getName  )  const
 

Definition at line 139 of file OW_XMLNode.cpp.

References m_strName.

Referenced by mustElement(), and printNode().

XMLNodeImplRef OW_NAMESPACE::XMLNodeImpl::getNext  )  const
 

Definition at line 329 of file OW_XMLNode.cpp.

References m_nextNode.

String OW_NAMESPACE::XMLNodeImpl::getNodeName  )  const
 

String OW_NAMESPACE::XMLNodeImpl::getText  )  const
 

Definition at line 132 of file OW_XMLNode.cpp.

References m_strText.

XMLNodeImplRef OW_NAMESPACE::XMLNodeImpl::mustChildElement const char *  elementName  )  const
 

Definition at line 228 of file OW_XMLNode.cpp.

References OW_NAMESPACE::CIMException::FAILED, m_childNode, and OW_THROWCIMMSG.

XMLNodeImplRef OW_NAMESPACE::XMLNodeImpl::mustChildElementChild const char *  elementName  )  const
 

Definition at line 251 of file OW_XMLNode.cpp.

References OW_NAMESPACE::CIMException::FAILED, m_childNode, and OW_THROWCIMMSG.

XMLNodeImplRef OW_NAMESPACE::XMLNodeImpl::mustChildFindElement const char *  elementName  )  const
 

Definition at line 284 of file OW_XMLNode.cpp.

References OW_NAMESPACE::CIMException::FAILED, m_childNode, and OW_THROWCIMMSG.

XMLNodeImplRef OW_NAMESPACE::XMLNodeImpl::mustChildFindElementChild const char *  elementName  )  const
 

Definition at line 315 of file OW_XMLNode.cpp.

References m_childNode.

void OW_NAMESPACE::XMLNodeImpl::mustElement const char *  elementName  )  const
 

Definition at line 199 of file OW_XMLNode.cpp.

References OW_NAMESPACE::CIMException::FAILED, getName(), and OW_THROWCIMMSG.

Referenced by mustElementChild().

XMLNodeImplRef OW_NAMESPACE::XMLNodeImpl::mustElementChild const char *  elementName  )  const
 

Definition at line 211 of file OW_XMLNode.cpp.

References OW_NAMESPACE::CIMException::FAILED, m_childNode, mustElement(), and OW_THROWCIMMSG.

XMLNodeImplRef OW_NAMESPACE::XMLNodeImpl::mustGetChild  )  const
 

Definition at line 352 of file OW_XMLNode.cpp.

References OW_NAMESPACE::CIMException::FAILED, m_childNode, and OW_THROWCIMMSG.

XMLNodeImplRef OW_NAMESPACE::XMLNodeImpl::mustNextElement const char *  elementName  )  const
 

XMLNodeImplRef OW_NAMESPACE::XMLNodeImpl::nextElement const char *  elementName,
bool  throwException = false
const
 

Definition at line 168 of file OW_XMLNode.cpp.

References OW_NAMESPACE::CIMException::FAILED, m_nextNode, and OW_THROWCIMMSG.

void OW_NAMESPACE::XMLNodeImpl::printNode std::ostream &  ostr  )  const
 

Definition at line 391 of file OW_XMLNode.cpp.

References OW_NAMESPACE::Array< T >::begin(), OW_NAMESPACE::Array< T >::end(), getAttrs(), getName(), name, and OW_NAMESPACE::XMLEscape().

Referenced by toString().

void OW_NAMESPACE::XMLNodeImpl::setNext const XMLNodeImplRef node  ) 
 

Definition at line 322 of file OW_XMLNode.cpp.

References m_nextNode.

String OW_NAMESPACE::XMLNodeImpl::toString  )  const
 

Definition at line 423 of file OW_XMLNode.cpp.

References printNode(), and OW_NAMESPACE::OStringStream::releaseString().


Member Data Documentation

XMLNodeImplRef OW_NAMESPACE::XMLNodeImpl::m_childNode [protected]
 

Definition at line 476 of file OW_XMLNode.hpp.

Referenced by addChild(), getChild(), getChildren(), mustChildElement(), mustChildElementChild(), mustChildFindElement(), mustChildFindElementChild(), mustElementChild(), and mustGetChild().

XMLNodeImplRef OW_NAMESPACE::XMLNodeImpl::m_lastChildNode [protected]
 

Definition at line 477 of file OW_XMLNode.hpp.

Referenced by addChild().

XMLNodeImplRef OW_NAMESPACE::XMLNodeImpl::m_nextNode [protected]
 

Definition at line 475 of file OW_XMLNode.hpp.

Referenced by getNext(), nextElement(), and setNext().

String OW_NAMESPACE::XMLNodeImpl::m_strName [protected]
 

Definition at line 480 of file OW_XMLNode.hpp.

Referenced by getName().

String OW_NAMESPACE::XMLNodeImpl::m_strText [protected]
 

Definition at line 481 of file OW_XMLNode.hpp.

Referenced by appendText(), assignText(), and getText().

XMLAttributeArray OW_NAMESPACE::XMLNodeImpl::m_XMLAttributeArray [protected]
 

Definition at line 479 of file OW_XMLNode.hpp.

Referenced by addAttribute(), getAttribute(), and getAttrs().


The documentation for this class was generated from the following files:
Generated on Thu Feb 9 09:17:09 2006 for openwbem by  doxygen 1.4.6