Back to index

nux  3.0.0
Public Member Functions | Private Member Functions | Private Attributes
nux::NCharacterConversion< CONVERT_TO, CONVERT_FROM, BASE_CONVERTER, DefaultConversionSize > Class Template Reference

Convert from one string format to another. More...

#include <NUnicode.h>

List of all members.

Public Member Functions

 NCharacterConversion (const CONVERT_FROM *Source)
 Converts the data by using the Convert() method on the base class.
 ~NCharacterConversion ()
 If memory was allocated, then it is freed below.
 operator CONVERT_TO * (void) const

Private Member Functions

 NCharacterConversion ()

Private Attributes

CONVERT_TO * ConvertedString

Detailed Description

template<typename CONVERT_TO, typename CONVERT_FROM, typename BASE_CONVERTER, DWORD DefaultConversionSize = 128>
class nux::NCharacterConversion< CONVERT_TO, CONVERT_FROM, BASE_CONVERTER, DefaultConversionSize >

Convert from one string format to another.

Definition at line 319 of file NUnicode.h.


Constructor & Destructor Documentation

template<typename CONVERT_TO , typename CONVERT_FROM , typename BASE_CONVERTER , DWORD DefaultConversionSize = 128>
nux::NCharacterConversion< CONVERT_TO, CONVERT_FROM, BASE_CONVERTER, DefaultConversionSize >::NCharacterConversion ( ) [private]
template<typename CONVERT_TO , typename CONVERT_FROM , typename BASE_CONVERTER , DWORD DefaultConversionSize = 128>
nux::NCharacterConversion< CONVERT_TO, CONVERT_FROM, BASE_CONVERTER, DefaultConversionSize >::NCharacterConversion ( const CONVERT_FROM *  Source) [inline, explicit]

Converts the data by using the Convert() method on the base class.

Definition at line 330 of file NUnicode.h.

    {
      if (Source != NULL)
      {
        // Use base class' convert method
        ConvertedString = BASE_CONVERTER::Convert (Source);
      }
      else
      {
        ConvertedString = NULL;
      }
    }
template<typename CONVERT_TO , typename CONVERT_FROM , typename BASE_CONVERTER , DWORD DefaultConversionSize = 128>
nux::NCharacterConversion< CONVERT_TO, CONVERT_FROM, BASE_CONVERTER, DefaultConversionSize >::~NCharacterConversion ( ) [inline]

If memory was allocated, then it is freed below.

Definition at line 346 of file NUnicode.h.

    {
      if (ConvertedString != NULL)
      {
        delete [] ConvertedString;
      }
    }

Member Function Documentation

template<typename CONVERT_TO , typename CONVERT_FROM , typename BASE_CONVERTER , DWORD DefaultConversionSize = 128>
nux::NCharacterConversion< CONVERT_TO, CONVERT_FROM, BASE_CONVERTER, DefaultConversionSize >::operator CONVERT_TO * ( void  ) const [inline]

Definition at line 355 of file NUnicode.h.

    {
      return ConvertedString;
    }

Member Data Documentation

template<typename CONVERT_TO , typename CONVERT_FROM , typename BASE_CONVERTER , DWORD DefaultConversionSize = 128>
CONVERT_TO* nux::NCharacterConversion< CONVERT_TO, CONVERT_FROM, BASE_CONVERTER, DefaultConversionSize >::ConvertedString [private]

Definition at line 321 of file NUnicode.h.


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