Thread portable class


Gate portable class


Timer class


Pool class


Terimber 2.0


About C++


Downloads Products & Services Support Clients Open Source About



Home / Open source / Terimber 2.0

xml_value_node Class Reference

class for all value contained nodes like comment, pi, CDATA and text More...

#include <sxml.h>

Inheritance diagram for xml_value_node:

xml_tree_node xml_node

List of all members.

Public Member Functions

 xml_value_node (const namedNodeDecl *decl, xml_tree_node *parent)
 constructor
 ~xml_value_node ()
 destructor
const char * persist (byte_allocator &allocator) const
 persists value to the string
void clear ()
 clears

Static Public Member Functions

static xml_forceinline const
xml_value_node
cast_to_node_value (const xml_tree_node *x)
 type cast to const value node
static xml_forceinline
xml_value_node
cast_to_node_value (xml_tree_node *x)
 type cast to value node

Public Attributes

terimber_xml_value _value
 value uninon

Protected Member Functions

 xml_value_node (const xml_value_node &x)
 private copy constructor and assign operator
xml_value_nodeoperator= (const xml_value_node &x)


Detailed Description

class for all value contained nodes like comment, pi, CDATA and text

Definition at line 94 of file sxml.h.


Constructor & Destructor Documentation

xml_value_node::xml_value_node ( const xml_value_node x  )  [protected]

private copy constructor and assign operator

prevents direct copying

xml_value_node::xml_value_node ( const namedNodeDecl decl,
xml_tree_node parent 
)

constructor

Parameters:
decl  pointer to the node declaration
parent  pointer to the parent node

Definition at line 86 of file sxml.cpp.

References _value, and _terimber_xml_value_::strVal.

xml_value_node::~xml_value_node (  ) 

destructor

Definition at line 82 of file sxml.cpp.


Member Function Documentation

xml_value_node& xml_value_node::operator= ( const xml_value_node x  )  [protected]

const char * xml_value_node::persist ( byte_allocator allocator  )  const

persists value to the string

Parameters:
allocator  external allocator

Definition at line 93 of file sxml.cpp.

References xml_node::_decl, _value, ATTRIBUTE_NODE, xml_node::cast_to_attribute(), nodeDecl::get_type(), attributeDecl::persist_attribute(), and _terimber_xml_value_::strVal.

xml_forceinline xml_value_node * xml_value_node::cast_to_node_value ( xml_tree_node x  )  [static]

type cast to value node

Parameters:
x  pointer to the tree node

Definition at line 74 of file sxml.hpp.

References xml_node::_decl, ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, nodeDecl::get_type(), PROCESSING_INSTRUCTION_NODE, and TEXT_NODE.

void xml_value_node::clear (  ) 

clears

Reimplemented from xml_tree_node.

Definition at line 105 of file sxml.cpp.

References _value, xml_node::clear(), and _terimber_xml_value_::strVal.


Member Data Documentation


The documentation for this class was generated from the following files:


© Copyright Terimber 2003-.