Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

XMLStackCDATASection Class Template Reference

CDATA sections are not parsed and thus can contain markup. More...

#include <XMLStack.h>

Inheritance diagram for XMLStackCDATASection::

XMLStackNode List of all members.

Public Types

typedef XMLStackCDATASection<
_E, _Tr, _A> 
_XMLStackCDATASection

Public Methods

 XMLStackCDATASection (_XMLStackDocument *Doc, const _XMLStackString &Data)
 Constructor. More...

virtual ~XMLStackCDATASection ()
 Destructor.

virtual void setValue (const _XMLStackString &Value)
 Replaces the textual data defined in the constructor.

virtual void setValue (unsigned long Value)
virtual void setValue (long Value)
virtual void setValue (unsigned int Value)
virtual void setValue (int Value)
virtual void setValue (unsigned short Value)
virtual void setValue (short Value)
virtual void setValue (signed char Value)
virtual void setValue (char Value)
virtual void setValue (unsigned char Value)
virtual void setValue (double Value, int Scale=6)
virtual void setValue (float Value, int Scale=6)
_XMLStackCDATASectionoperator= (const _XMLStackString &Value)
 Convenience operator for setValue().

_XMLStackCDATASectionoperator= (unsigned long &Value)
 Convenience operator for setValue().

_XMLStackCDATASectionoperator= (long Value)
 Convenience operator for setValue().

_XMLStackCDATASectionoperator= (unsigned int Value)
 Convenience operator for setValue().

_XMLStackCDATASectionoperator= (int Value)
 Convenience operator for setValue().

_XMLStackCDATASectionoperator= (unsigned short Value)
 Convenience operator for setValue().

_XMLStackCDATASectionoperator= (short Value)
 Convenience operator for setValue().

_XMLStackCDATASectionoperator= (signed char Value)
 Convenience operator for setValue().

_XMLStackCDATASectionoperator= (char Value)
 Convenience operator for setValue().

_XMLStackCDATASectionoperator= (unsigned char Value)
 Convenience operator for setValue().

_XMLStackCDATASectionoperator= (double Value)
 Convenience operator for setValue().

_XMLStackCDATASectionoperator= (float Value)
 Convenience operator for setValue().


Protected Methods

virtual void popped (void)
virtual _XMLStackNodeclone (void) const

Protected Attributes

_XMLStackString m_Value

Detailed Description

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>> class XMLStackCDATASection

CDATA sections are not parsed and thus can contain markup.

Like text nodes, CDATA sections contain raw data. However, the special characters '<' and '&' do not need to be escaped. CDATA sections can be used to quote or escape blocks of text to keep that text from being interpreted as markup language. The only delimiter that CDATA recognizes is "]]>", which ends the CDATA section. Unfortunately, if this delimiter can possibly appear in your data, you will need to use a XMLStackText node, at least for part of the data.

Definition at line 1327 of file XMLStack.h.


Member Typedef Documentation

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
typedef XMLStackCDATASection<_E, _Tr, _A> XMLStackCDATASection<_E, _Tr, _A>::_XMLStackCDATASection<_E, _Tr, _A>
 

Definition at line 1330 of file XMLStack.h.

Referenced by clone(), and XMLStackDocument::pushCDATASection().


Constructor & Destructor Documentation

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
XMLStackCDATASection<_E, _Tr, _A>::XMLStackCDATASection<_E, _Tr, _A> ( _XMLStackDocument * Doc,
const _XMLStackString & Data ) [inline]
 

Constructor.

Parameters:
Doc   The XMLStackDocument instance this node belongs to.
Data   The textual data that will be written out to the XML buffer.
Exceptions:
XMLStackException   Thrown if the delimiter "]]>" appears in the text and _DEBUG is defined.

Definition at line 1341 of file XMLStack.h.

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
XMLStackCDATASection<_E, _Tr, _A>::~XMLStackCDATASection<_E, _Tr, _A> ( ) [inline, virtual]
 

Destructor.

Definition at line 1348 of file XMLStack.h.


Member Function Documentation

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
_XMLStackNode * XMLStackCDATASection<_E, _Tr, _A>::clone ( void ) const [inline, protected, virtual]
 

Reimplemented from XMLStackNode.

Definition at line 1476 of file XMLStack.h.

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
_XMLStackCDATASection<_E, _Tr, _A> & XMLStackCDATASection<_E, _Tr, _A>::operator= ( float Value ) [inline]
 

Convenience operator for setValue().

Reimplemented from XMLStackNode.

Definition at line 1448 of file XMLStack.h.

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
_XMLStackCDATASection<_E, _Tr, _A> & XMLStackCDATASection<_E, _Tr, _A>::operator= ( double Value ) [inline]
 

Convenience operator for setValue().

Reimplemented from XMLStackNode.

Definition at line 1441 of file XMLStack.h.

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
_XMLStackCDATASection<_E, _Tr, _A> & XMLStackCDATASection<_E, _Tr, _A>::operator= ( unsigned char Value ) [inline]
 

Convenience operator for setValue().

Reimplemented from XMLStackNode.

Definition at line 1434 of file XMLStack.h.

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
_XMLStackCDATASection<_E, _Tr, _A> & XMLStackCDATASection<_E, _Tr, _A>::operator= ( char Value ) [inline]
 

Convenience operator for setValue().

Reimplemented from XMLStackNode.

Definition at line 1427 of file XMLStack.h.

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
_XMLStackCDATASection<_E, _Tr, _A> & XMLStackCDATASection<_E, _Tr, _A>::operator= ( signed char Value ) [inline]
 

Convenience operator for setValue().

Reimplemented from XMLStackNode.

Definition at line 1420 of file XMLStack.h.

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
_XMLStackCDATASection<_E, _Tr, _A> & XMLStackCDATASection<_E, _Tr, _A>::operator= ( short Value ) [inline]
 

Convenience operator for setValue().

Reimplemented from XMLStackNode.

Definition at line 1413 of file XMLStack.h.

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
_XMLStackCDATASection<_E, _Tr, _A> & XMLStackCDATASection<_E, _Tr, _A>::operator= ( unsigned short Value ) [inline]
 

Convenience operator for setValue().

Reimplemented from XMLStackNode.

Definition at line 1406 of file XMLStack.h.

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
_XMLStackCDATASection<_E, _Tr, _A> & XMLStackCDATASection<_E, _Tr, _A>::operator= ( int Value ) [inline]
 

Convenience operator for setValue().

Reimplemented from XMLStackNode.

Definition at line 1399 of file XMLStack.h.

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
_XMLStackCDATASection<_E, _Tr, _A> & XMLStackCDATASection<_E, _Tr, _A>::operator= ( unsigned int Value ) [inline]
 

Convenience operator for setValue().

Reimplemented from XMLStackNode.

Definition at line 1392 of file XMLStack.h.

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
_XMLStackCDATASection<_E, _Tr, _A> & XMLStackCDATASection<_E, _Tr, _A>::operator= ( long Value ) [inline]
 

Convenience operator for setValue().

Reimplemented from XMLStackNode.

Definition at line 1385 of file XMLStack.h.

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
_XMLStackCDATASection<_E, _Tr, _A> & XMLStackCDATASection<_E, _Tr, _A>::operator= ( unsigned long & Value ) [inline]
 

Convenience operator for setValue().

Reimplemented from XMLStackNode.

Definition at line 1378 of file XMLStack.h.

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
_XMLStackCDATASection<_E, _Tr, _A> & XMLStackCDATASection<_E, _Tr, _A>::operator= ( const _XMLStackString & Value ) [inline]
 

Convenience operator for setValue().

Reimplemented from XMLStackNode.

Definition at line 1371 of file XMLStack.h.

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
void XMLStackCDATASection<_E, _Tr, _A>::popped ( void ) [inline, protected, virtual]
 

Reimplemented from XMLStackNode.

Definition at line 1457 of file XMLStack.h.

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
void XMLStackCDATASection<_E, _Tr, _A>::setValue ( float Value,
int Scale = 6 ) [inline, virtual]
 

Reimplemented from XMLStackNode.

Definition at line 1365 of file XMLStack.h.

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
void XMLStackCDATASection<_E, _Tr, _A>::setValue ( double Value,
int Scale = 6 ) [inline, virtual]
 

Reimplemented from XMLStackNode.

Definition at line 1361 of file XMLStack.h.

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
void XMLStackCDATASection<_E, _Tr, _A>::setValue ( unsigned char Value ) [inline, virtual]
 

Reimplemented from XMLStackNode.

Definition at line 1360 of file XMLStack.h.

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
void XMLStackCDATASection<_E, _Tr, _A>::setValue ( char Value ) [inline, virtual]
 

Reimplemented from XMLStackNode.

Definition at line 1359 of file XMLStack.h.

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
void XMLStackCDATASection<_E, _Tr, _A>::setValue ( signed char Value ) [inline, virtual]
 

Reimplemented from XMLStackNode.

Definition at line 1358 of file XMLStack.h.

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
void XMLStackCDATASection<_E, _Tr, _A>::setValue ( short Value ) [inline, virtual]
 

Reimplemented from XMLStackNode.

Definition at line 1357 of file XMLStack.h.

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
void XMLStackCDATASection<_E, _Tr, _A>::setValue ( unsigned short Value ) [inline, virtual]
 

Reimplemented from XMLStackNode.

Definition at line 1356 of file XMLStack.h.

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
void XMLStackCDATASection<_E, _Tr, _A>::setValue ( int Value ) [inline, virtual]
 

Reimplemented from XMLStackNode.

Definition at line 1355 of file XMLStack.h.

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
void XMLStackCDATASection<_E, _Tr, _A>::setValue ( unsigned int Value ) [inline, virtual]
 

Reimplemented from XMLStackNode.

Definition at line 1354 of file XMLStack.h.

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
void XMLStackCDATASection<_E, _Tr, _A>::setValue ( long Value ) [inline, virtual]
 

Reimplemented from XMLStackNode.

Definition at line 1353 of file XMLStack.h.

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
void XMLStackCDATASection<_E, _Tr, _A>::setValue ( unsigned long Value ) [inline, virtual]
 

Reimplemented from XMLStackNode.

Definition at line 1352 of file XMLStack.h.

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
void XMLStackCDATASection<_E, _Tr, _A>::setValue ( const _XMLStackString & Value ) [inline, virtual]
 

Replaces the textual data defined in the constructor.

Reimplemented from XMLStackNode.

Definition at line 1351 of file XMLStack.h.


Member Data Documentation

template<class _E, class _Tr = std::char_traits<_E>, class _A = std::allocator<_E>>
_XMLStackString XMLStackCDATASection<_E, _Tr, _A>::m_Value [protected]
 

Definition at line 1455 of file XMLStack.h.


The documentation for this class was generated from the following file:
Generated at Mon Aug 6 11:54:21 2001 for XMLStack by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001