mimas::xml_strx< To, From > Class Template Reference
[XML parser]

Conversion to and from unicode. More...

#include <xml_strx.h>

Collaboration diagram for mimas::xml_strx< To, From >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 xml_strx (const From *_buffer)
 Constructor.
 xml_strx (const xml_strx< To, From > &_strX)
 Copy-constructor.
virtual ~xml_strx (void)
 Destructor.
int getLength (void) const
 Length of buffer.
int getSize (void) const
 Size of buffer.
const To * getBuffer () const
 Get pointer to buffer.

Protected Attributes

To * buffer
 Buffer for storing the string.

Detailed Description

template<class To, class From>
class mimas::xml_strx< To, From >

Conversion to and from unicode.

Mainly for internal use.

Todo:
Replace xml_strx with XalanDOMString (if possible)
Author:
Jan Wedekind (jan at wedesoft.de)
Date:
Wed Jan 12 13:53:41 UTC 2004

Definition at line 30 of file xml_strx.h.


Constructor & Destructor Documentation

template<class To, class From>
mimas::xml_strx< To, From >::xml_strx ( const From *  _buffer  )  [inline]

Constructor.

Parameters:
_buffer The string to be converted.

Definition at line 35 of file xml_strx.h.

References mimas::xml_strx< To, From >::buffer.

template<class To, class From>
mimas::xml_strx< To, From >::xml_strx ( const xml_strx< To, From > &  _strX  )  [inline]

Copy-constructor.

Definition at line 38 of file xml_strx.h.

template<class To, class From>
virtual mimas::xml_strx< To, From >::~xml_strx ( void   )  [inline, virtual]

Destructor.

The destructor calls free on the buffer.

Definition at line 42 of file xml_strx.h.

References mimas::xml_strx< To, From >::buffer.


Member Function Documentation

template<class To, class From>
int mimas::xml_strx< To, From >::getLength ( void   )  const [inline]

Length of buffer.

Returns:
Length of string stored in the buffer.

Definition at line 45 of file xml_strx.h.

References mimas::xml_strx< To, From >::buffer.

Referenced by mimas::xml_strx< To, From >::getSize().

template<class To, class From>
int mimas::xml_strx< To, From >::getSize ( void   )  const [inline]

Size of buffer.

Returns:
Size of buffer in bytes.

Definition at line 49 of file xml_strx.h.

References mimas::xml_strx< To, From >::getLength().

Here is the call graph for this function:

template<class To, class From>
const To* mimas::xml_strx< To, From >::getBuffer (  )  const [inline]

Get pointer to buffer.

Returns:
Pointer to string contained in buffer.

Definition at line 52 of file xml_strx.h.

References mimas::xml_strx< To, From >::buffer.

Referenced by mimas::operator<<().


Member Data Documentation

template<class To, class From>
To* mimas::xml_strx< To, From >::buffer [protected]

Buffer for storing the string.

Definition at line 55 of file xml_strx.h.

Referenced by mimas::xml_strx< To, From >::getBuffer(), mimas::xml_strx< To, From >::getLength(), mimas::xml_strx< To, From >::xml_strx(), and mimas::xml_strx< To, From >::~xml_strx().


The documentation for this class was generated from the following file:
[GNU/Linux] [Qt] [Mesa] [STL] [Lapack] [Boost] [Magick++] [Xalan-C and Xerces-C] [doxygen] [graphviz] [FFTW] [popt] [xine] [Gnuplot] [gnu-arch] [gcc] [gstreamer] [autoconf/automake/make] [freshmeat.net] [opensource.org] [sourceforge.net] [MMVL]
mimas 2.1 - Copyright Mon Oct 30 11:31:48 2006, Bala Amavasai, Stuart Meikle, Arul Selvan, Fabio Caparrelli, Jan Wedekind, Manuel Boissenin, ...