ACE_Wide_To_Ascii Class Reference

A lightweight wchar* to char* string conversion class. More...

#include <ace_wchar.h>

List of all members.

Public Member Functions

 ACE_Wide_To_Ascii (const wchar_t *s)
 Ctor must take a wchar string.

 ~ACE_Wide_To_Ascii (void)
 Dtor will free up the memory.

char * char_rep (void)
 Return the internal char* representation.


Static Public Member Functions

char * convert (const wchar_t *wstr)
 Converts an wchar_t string to ascii and returns a new string.


Private Member Functions

 ACE_Wide_To_Ascii (void)
 Disallow these operation.

 ACE_Wide_To_Ascii (ACE_Wide_To_Ascii &)
ACE_Wide_To_Asciioperator= (ACE_Wide_To_Ascii &)

Private Attributes

char * s_
 Internal pointer to the converted string.


Detailed Description

A lightweight wchar* to char* string conversion class.

The purpose of this class is to perform conversion from wchar* to char* strings. It is not intended for general purpose use.

Definition at line 186 of file ace_wchar.h.


Constructor & Destructor Documentation

ACE_Wide_To_Ascii::ACE_Wide_To_Ascii const wchar_t *  s  ) 
 

Ctor must take a wchar string.

ACE_Wide_To_Ascii::~ACE_Wide_To_Ascii void   ) 
 

Dtor will free up the memory.

ACE_Wide_To_Ascii::ACE_Wide_To_Ascii void   )  [private]
 

Disallow these operation.

ACE_Wide_To_Ascii::ACE_Wide_To_Ascii ACE_Wide_To_Ascii  )  [private]
 


Member Function Documentation

char* ACE_Wide_To_Ascii::char_rep void   ) 
 

Return the internal char* representation.

Referenced by ACE_OS::dlsym(), ACE_OS::mktemp(), ACE_OS::perror(), ACE_OS::puts(), ACE_OS::realpath(), ACE_OS::rename(), ACE_OS::rmdir(), ACE_Process::spawn(), ACE_OS::stat(), and ACE_OS::unlink().

char* ACE_Wide_To_Ascii::convert const wchar_t *  wstr  )  [static]
 

Converts an wchar_t string to ascii and returns a new string.

Referenced by ACE_OS::fork_exec(), and ACE_Process::spawn().

ACE_Wide_To_Ascii& ACE_Wide_To_Ascii::operator= ACE_Wide_To_Ascii  )  [private]
 


Member Data Documentation

char* ACE_Wide_To_Ascii::s_ [private]
 

Internal pointer to the converted string.

Definition at line 203 of file ace_wchar.h.


The documentation for this class was generated from the following file:
Generated on Sun Jan 27 12:59:30 2008 for ACE by doxygen 1.3.6