Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CL_DomNode Class Reference

#include <dom_node.h>

Inheritance diagram for CL_DomNode:

CL_DomAttr CL_DomCharacterData CL_DomDocument CL_DomDocumentFragment CL_DomDocumentType CL_DomElement CL_DomEntity CL_DomEntityReference CL_DomNotation CL_DomProcessingInstruction List of all members.

Public Types

enum  NodeType {
  NULL_NODE = 0, ELEMENT_NODE = 1, ATTRIBUTE_NODE = 2, TEXT_NODE = 3,
  CDATA_SECTION_NODE = 4, ENTITY_REFERENCE_NODE = 5, ENTITY_NODE = 6, PROCESSING_INSTRUCTION_NODE = 7,
  COMMENT_NODE = 8, DOCUMENT_NODE = 9, DOCUMENT_TYPE_NODE = 10, DOCUMENT_FRAGMENT_NODE = 11,
  NOTATION_NODE = 12
}
 Attributes:. More...

Public Member Functions

 CL_DomNode ()
 Construction:.
 CL_DomNode (const CL_DomNode &copy)
 ~CL_DomNode ()
std::string get_node_name () const
std::string get_node_value () const
void set_node_value (const std::string &value)
unsigned short get_node_type () const
CL_DomNode get_parent_node () const
CL_DomNodeList get_child_nodes () const
CL_DomNode get_first_child () const
CL_DomNode get_last_child () const
CL_DomNode get_previous_sibling () const
CL_DomNode get_next_sibling () const
CL_DomNamedNodeMap get_attributes ()
CL_DomDocument get_owner_document ()
bool is_null () const
bool is_element () const
bool is_attr () const
bool is_text () const
bool is_cdata_section () const
bool is_entity_reference () const
bool is_entity () const
bool is_processing_instruction () const
bool is_comment () const
bool is_document () const
bool is_document_type () const
bool is_document_fragment () const
bool is_notation () const
bool has_child_nodes () const
CL_DomNodeoperator= (const CL_DomNode &copy)
 Operations:.
bool operator== (const CL_DomNode &other) const
CL_DomNode insert_before (CL_DomNode &new_child, CL_DomNode &ref_child)
CL_DomNode replace_child (CL_DomNode &new_child, CL_DomNode &old_child)
CL_DomNode remove_child (CL_DomNode &old_child)
CL_DomNode append_child (CL_DomNode new_child)
CL_DomNode clone_node (bool deep) const
CL_DomElement to_element () const
CL_DomAttr to_attr () const
CL_DomText to_text () const
CL_DomCDATASection to_cdata_section () const
CL_DomEntityReference to_entity_reference () const
CL_DomEntity to_entity () const
CL_DomProcessingInstruction to_processing_instruction () const
CL_DomComment to_comment () const
CL_DomDocument to_document () const
CL_DomDocumentType to_document_type () const
CL_DomDocumentFragment to_document_fragment () const
CL_DomNotation to_notation () const
CL_DomNode named_item (const std::string &name) const

Protected Member Functions

 CL_DomNode (CL_DomDocument &doc, unsigned short node_type)
 Implementation:.
 CL_DomNode (const CL_SharedPtr< CL_DomNode_Generic > &impl)

Protected Attributes

CL_SharedPtr< CL_DomNode_Genericimpl

Friends

class CL_DomDocument

Detailed Description

clanCore="XML" header=core.h

Definition at line 73 of file dom_node.h.


Member Enumeration Documentation

enum CL_DomNode::NodeType
 

Attributes:.

Enumeration values:
NULL_NODE 
ELEMENT_NODE 
ATTRIBUTE_NODE 
TEXT_NODE 
CDATA_SECTION_NODE 
ENTITY_REFERENCE_NODE 
ENTITY_NODE 
PROCESSING_INSTRUCTION_NODE 
COMMENT_NODE 
DOCUMENT_NODE 
DOCUMENT_TYPE_NODE 
DOCUMENT_FRAGMENT_NODE 
NOTATION_NODE 

Definition at line 86 of file dom_node.h.


Constructor & Destructor Documentation

CL_DomNode::CL_DomNode  ) 
 

Construction:.

Definition at line 51 of file dom_node.cpp.

Referenced by append_child(), clone_node(), get_first_child(), get_last_child(), get_next_sibling(), get_parent_node(), get_previous_sibling(), insert_before(), named_item(), remove_child(), and replace_child().

CL_DomNode::CL_DomNode const CL_DomNode copy  ) 
 

Definition at line 59 of file dom_node.cpp.

CL_DomNode::~CL_DomNode  ) 
 

Definition at line 70 of file dom_node.cpp.

CL_DomNode::CL_DomNode CL_DomDocument doc,
unsigned short  node_type
[protected]
 

Implementation:.

Definition at line 63 of file dom_node.cpp.

References CL_SharedPtr< T, U >::impl, and impl.

CL_DomNode::CL_DomNode const CL_SharedPtr< CL_DomNode_Generic > &  impl  )  [protected]
 

Definition at line 55 of file dom_node.cpp.


Member Function Documentation

CL_DomNode CL_DomNode::append_child CL_DomNode  new_child  ) 
 

Definition at line 321 of file dom_node.cpp.

References CL_DomNode(), and impl.

CL_DomNode CL_DomNode::clone_node bool  deep  )  const
 

Definition at line 348 of file dom_node.cpp.

References CL_DomNode().

CL_DomNamedNodeMap CL_DomNode::get_attributes  ) 
 

Definition at line 178 of file dom_node.cpp.

References ELEMENT_NODE, and impl.

CL_DomNodeList CL_DomNode::get_child_nodes  )  const
 

Definition at line 149 of file dom_node.cpp.

CL_DomNode CL_DomNode::get_first_child  )  const
 

Definition at line 154 of file dom_node.cpp.

References CL_DomNode(), and impl.

Referenced by CL_DomDocument::clear_all(), CL_DomElement::get_text(), and named_item().

CL_DomNode CL_DomNode::get_last_child  )  const
 

Definition at line 160 of file dom_node.cpp.

References CL_DomNode(), and impl.

CL_DomNode CL_DomNode::get_next_sibling  )  const
 

Definition at line 172 of file dom_node.cpp.

References CL_DomNode(), and impl.

Referenced by CL_DomNodeList::CL_DomNodeList(), CL_DomDocument::get_document_element(), CL_DomElement::get_text(), and named_item().

std::string CL_DomNode::get_node_name  )  const
 

Definition at line 77 of file dom_node.cpp.

References ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, impl, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, and TEXT_NODE.

Referenced by CL_DomNodeList::CL_DomNodeList(), and named_item().

unsigned short CL_DomNode::get_node_type  )  const
 

Definition at line 137 of file dom_node.cpp.

References impl, and NULL_NODE.

Referenced by is_attr(), is_cdata_section(), is_comment(), is_document(), is_document_fragment(), is_document_type(), is_element(), is_entity(), is_entity_reference(), is_notation(), is_null(), is_processing_instruction(), and is_text().

std::string CL_DomNode::get_node_value  )  const
 

Definition at line 107 of file dom_node.cpp.

References ATTRIBUTE_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, impl, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, and TEXT_NODE.

Referenced by CL_DomElement::get_text().

CL_DomDocument CL_DomNode::get_owner_document  ) 
 

Definition at line 185 of file dom_node.cpp.

References CL_DomDocument, and impl.

Referenced by CL_DomElement::set_attribute().

CL_DomNode CL_DomNode::get_parent_node  )  const
 

Definition at line 143 of file dom_node.cpp.

References CL_DomNode(), and impl.

CL_DomNode CL_DomNode::get_previous_sibling  )  const
 

Definition at line 166 of file dom_node.cpp.

References CL_DomNode(), and impl.

bool CL_DomNode::has_child_nodes  )  const
 

Definition at line 342 of file dom_node.cpp.

References impl.

Referenced by CL_DomElement::get_text().

CL_DomNode CL_DomNode::insert_before CL_DomNode new_child,
CL_DomNode ref_child
 

Definition at line 270 of file dom_node.cpp.

References CL_DomNode(), CL_SharedPtr< T, U >::impl, and impl.

bool CL_DomNode::is_attr  )  const
 

Definition at line 201 of file dom_node.cpp.

References ATTRIBUTE_NODE, and get_node_type().

Referenced by to_attr().

bool CL_DomNode::is_cdata_section  )  const
 

Definition at line 211 of file dom_node.cpp.

References CDATA_SECTION_NODE, and get_node_type().

Referenced by to_cdata_section().

bool CL_DomNode::is_comment  )  const
 

Definition at line 231 of file dom_node.cpp.

References COMMENT_NODE, and get_node_type().

Referenced by to_comment().

bool CL_DomNode::is_document  )  const
 

Definition at line 236 of file dom_node.cpp.

References DOCUMENT_NODE, and get_node_type().

Referenced by to_document().

bool CL_DomNode::is_document_fragment  )  const
 

Definition at line 246 of file dom_node.cpp.

References DOCUMENT_FRAGMENT_NODE, and get_node_type().

Referenced by to_document_fragment().

bool CL_DomNode::is_document_type  )  const
 

Definition at line 241 of file dom_node.cpp.

References DOCUMENT_TYPE_NODE, and get_node_type().

Referenced by to_document_type().

bool CL_DomNode::is_element  )  const
 

Definition at line 196 of file dom_node.cpp.

References ELEMENT_NODE, and get_node_type().

Referenced by to_element().

bool CL_DomNode::is_entity  )  const
 

Definition at line 221 of file dom_node.cpp.

References ENTITY_NODE, and get_node_type().

Referenced by to_entity().

bool CL_DomNode::is_entity_reference  )  const
 

Definition at line 216 of file dom_node.cpp.

References ENTITY_REFERENCE_NODE, and get_node_type().

Referenced by to_entity_reference().

bool CL_DomNode::is_notation  )  const
 

Definition at line 251 of file dom_node.cpp.

References get_node_type(), and NOTATION_NODE.

Referenced by to_notation().

bool CL_DomNode::is_null  )  const
 

Definition at line 191 of file dom_node.cpp.

References get_node_type(), and NULL_NODE.

Referenced by CL_DomNodeList::CL_DomNodeList(), CL_DomDocument::clear_all(), CL_DomElement::get_text(), and named_item().

bool CL_DomNode::is_processing_instruction  )  const
 

Definition at line 226 of file dom_node.cpp.

References get_node_type(), and PROCESSING_INSTRUCTION_NODE.

Referenced by to_processing_instruction().

bool CL_DomNode::is_text  )  const
 

Definition at line 206 of file dom_node.cpp.

References get_node_type(), and TEXT_NODE.

Referenced by CL_DomElement::get_text(), and to_text().

CL_DomNode CL_DomNode::named_item const std::string &  name  )  const
 

Definition at line 425 of file dom_node.cpp.

References CL_DomNode(), get_first_child(), get_next_sibling(), get_node_name(), and is_null().

CL_DomNode & CL_DomNode::operator= const CL_DomNode copy  ) 
 

Operations:.

Definition at line 259 of file dom_node.cpp.

References CL_SharedPtr< T, U >::impl, and impl.

bool CL_DomNode::operator== const CL_DomNode other  )  const
 

Definition at line 265 of file dom_node.cpp.

References CL_SharedPtr< T, U >::impl, and impl.

CL_DomNode CL_DomNode::remove_child CL_DomNode old_child  ) 
 

Definition at line 304 of file dom_node.cpp.

References CL_DomNode(), CL_SharedPtr< T, U >::impl, and impl.

Referenced by CL_DomDocument::clear_all().

CL_DomNode CL_DomNode::replace_child CL_DomNode new_child,
CL_DomNode old_child
 

Definition at line 287 of file dom_node.cpp.

References CL_DomNode(), CL_SharedPtr< T, U >::impl, and impl.

void CL_DomNode::set_node_value const std::string &  value  ) 
 

Definition at line 132 of file dom_node.cpp.

References impl.

CL_DomAttr CL_DomNode::to_attr  )  const
 

Definition at line 359 of file dom_node.cpp.

References impl, and is_attr().

CL_DomCDATASection CL_DomNode::to_cdata_section  )  const
 

Definition at line 371 of file dom_node.cpp.

References impl, and is_cdata_section().

CL_DomComment CL_DomNode::to_comment  )  const
 

Definition at line 395 of file dom_node.cpp.

References impl, and is_comment().

CL_DomDocument CL_DomNode::to_document  )  const
 

Definition at line 401 of file dom_node.cpp.

References CL_DomDocument, impl, and is_document().

CL_DomDocumentFragment CL_DomNode::to_document_fragment  )  const
 

Definition at line 413 of file dom_node.cpp.

References impl, and is_document_fragment().

CL_DomDocumentType CL_DomNode::to_document_type  )  const
 

Definition at line 407 of file dom_node.cpp.

References impl, and is_document_type().

CL_DomElement CL_DomNode::to_element  )  const
 

Definition at line 353 of file dom_node.cpp.

References impl, and is_element().

Referenced by CL_DomDocument::get_document_element().

CL_DomEntity CL_DomNode::to_entity  )  const
 

Definition at line 383 of file dom_node.cpp.

References impl, and is_entity().

CL_DomEntityReference CL_DomNode::to_entity_reference  )  const
 

Definition at line 377 of file dom_node.cpp.

References impl, and is_entity_reference().

CL_DomNotation CL_DomNode::to_notation  )  const
 

Definition at line 419 of file dom_node.cpp.

References impl, and is_notation().

CL_DomProcessingInstruction CL_DomNode::to_processing_instruction  )  const
 

Definition at line 389 of file dom_node.cpp.

References impl, and is_processing_instruction().

CL_DomText CL_DomNode::to_text  )  const
 

Definition at line 365 of file dom_node.cpp.

References impl, and is_text().


Friends And Related Function Documentation

friend class CL_DomDocument [friend]
 

Definition at line 329 of file dom_node.h.

Referenced by get_owner_document(), and to_document().


Member Data Documentation

CL_SharedPtr<CL_DomNode_Generic> CL_DomNode::impl [protected]
 

Definition at line 327 of file dom_node.h.

Referenced by append_child(), CL_DomNode(), get_attributes(), get_first_child(), get_last_child(), get_next_sibling(), get_node_name(), get_node_type(), get_node_value(), get_owner_document(), get_parent_node(), get_previous_sibling(), has_child_nodes(), insert_before(), operator=(), operator==(), remove_child(), replace_child(), CL_DomElement::set_attribute(), set_node_value(), to_attr(), to_cdata_section(), to_comment(), to_document(), to_document_fragment(), to_document_type(), to_element(), to_entity(), to_entity_reference(), to_notation(), to_processing_instruction(), and to_text().


The documentation for this class was generated from the following files:
Generated on Sat Feb 19 22:51:17 2005 for npcore by  doxygen 1.4.1