Main | License | Installation | FAQ | Screenshots | Contact | Links | Sf.net | Freshmeat.net | KDE-Apps.org
Requirements | Design | Modules | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

StrX< To, From > Class Template Reference
[XML C++ Wrappers]

#include <strX.hpp>


Public Member Functions

 StrX (const From *aXMLStr)
 StrX (const StrX< To, From > &aStrX)
virtual ~StrX (void)
 Destructor.
int getLength (void) const
int getSize (void) const
const To * getBuffer () const

Protected Attributes

To * buffer


Detailed Description

template<class To, class From>
class StrX< To, From >

Conversion to and from unicode.
Todo:
Replace StrX with XalanDOMString (if possible)
Date:
Sat Feb 05 2005
Author:
Jan Wedekind (wedesoft@users.sourceforge.net)

Definition at line 38 of file strX.hpp.


Constructor & Destructor Documentation

template<class To, class From>
StrX< To, From >::StrX ( const From *  aXMLStr  )  [inline]

Definition at line 42 of file strX.hpp.

References StrX< To, From >::buffer.

00043      { buffer = XMLString::transcode( aXMLStr ); }

template<class To, class From>
StrX< To, From >::StrX ( const StrX< To, From > &  aStrX  )  [inline]

Definition at line 45 of file strX.hpp.

00045                                     :
00046     buffer( XMLString::replicate( aStrX.buffer ) ) {}

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

Destructor.

Definition at line 48 of file strX.hpp.

References StrX< To, From >::buffer.

00048 { free( buffer ); }


Member Function Documentation

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

Definition at line 50 of file strX.hpp.

References StrX< To, From >::buffer.

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

00051   { return XMLString::stringLen( buffer ); }

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

Definition at line 53 of file strX.hpp.

References StrX< To, From >::getLength().

00053 { return ( getLength() + 1 ) * sizeof(To); }

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

Definition at line 55 of file strX.hpp.

References StrX< To, From >::buffer.

00055 { return buffer; }


Field Documentation

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

Definition at line 58 of file strX.hpp.

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


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

anymeal 0.30 - recipe management software - Make the most of your food! - © Jan Wedekind Sun Sep 14 16:01:29 2008 - GNU Free Documentation License