ACE_NS_WString Class Reference

This class retain the backward compatibility for ACE_Naming_Context and related classes. The only addition to ACE_WString is a very naive "wchar" to "char" conversion function. More...

#include <SString.h>

Inheritance diagram for ACE_NS_WString:

Inheritance graph
[legend]
Collaboration diagram for ACE_NS_WString:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ACE_NS_WString (ACE_Allocator *alloc=0)
 Default constructor.
 ACE_NS_WString (const char *s, ACE_Allocator *alloc=0)
 Constructor that copies s into dynamically allocated memory.
 ACE_NS_WString (const ACE_WSTRING_TYPE *s, ACE_Allocator *alloc=0)
 Constructor that copies s into dynamically allocated memory.
 ACE_NS_WString (const ACE_USHORT16 *s, size_type len, ACE_Allocator *alloc=0)
 ACE_NS_WString (const ACE_WSTRING_TYPE *s, size_type len, ACE_Allocator *alloc=0)
 ACE_NS_WString (size_type len, ACE_Allocator *alloc=0)
 ACE_NS_WString (const ACE_NS_WString &s)
 Copy constructor.
 ACE_NS_WString (ACE_WSTRING_TYPE c, ACE_Allocator *alloc=0)
 Constructor that copies c into dynamically allocated memory.
char * char_rep (void) const
ACE_USHORT16ushort_rep (void) const


Detailed Description

This class retain the backward compatibility for ACE_Naming_Context and related classes. The only addition to ACE_WString is a very naive "wchar" to "char" conversion function.

Constructor & Destructor Documentation

ACE_NS_WString::ACE_NS_WString ( ACE_Allocator alloc = 0  )  [inline]

Default constructor.

ACE_NS_WString::ACE_NS_WString ( const char *  s,
ACE_Allocator alloc = 0 
)

Constructor that copies s into dynamically allocated memory.

ACE_NS_WString::ACE_NS_WString ( const ACE_WSTRING_TYPE s,
ACE_Allocator alloc = 0 
) [inline]

Constructor that copies s into dynamically allocated memory.

ACE_NS_WString::ACE_NS_WString ( const ACE_USHORT16 s,
size_type  len,
ACE_Allocator alloc = 0 
)

Constructor that takes in a ushort16 string (mainly used by the ACE Name_Space classes)

ACE_NS_WString::ACE_NS_WString ( const ACE_WSTRING_TYPE s,
size_type  len,
ACE_Allocator alloc = 0 
) [inline]

Constructor that copies len ACE_WSTRING_TYPE's of s into dynamically allocated memory (will NUL terminate the result).

ACE_NS_WString::ACE_NS_WString ( size_type  len,
ACE_Allocator alloc = 0 
) [inline]

Constructor that dynamically allocates memory for len + 1 ACE_WSTRING_TYPE characters. The newly created memory is set memset to 0.

ACE_NS_WString::ACE_NS_WString ( const ACE_NS_WString s  )  [inline]

Copy constructor.

ACE_NS_WString::ACE_NS_WString ( ACE_WSTRING_TYPE  c,
ACE_Allocator alloc = 0 
) [inline]

Constructor that copies c into dynamically allocated memory.


Member Function Documentation

char * ACE_NS_WString::char_rep ( void   )  const

Transform into a copy of the ASCII character representation. (caller must delete)

ACE_USHORT16 * ACE_NS_WString::ushort_rep ( void   )  const

Transform into a copy of a USHORT16 representation (caller must delete). Note, behavior is undefined when sizeof (wchar_t) != 2.


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

Generated on Mon Jul 13 16:12:23 2009 for ACE by  doxygen 1.5.8