Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

OW32::COleStr Class Reference

An OLESTR wrapper. More...

#include <OleStr.h>

List of all members.

Public Member Functions

 COleStr ()
 Construct with an empty string.
 COleStr (LPCWSTR str)
 Construct with a copy of an existing wide string.
 COleStr (LPCSTR str)
 Construct with a copy of an existing narrow string.
 COleStr (const COleStr &str)
 Construct with a copy of an existing COleStr.
 ~COleStr ()
 Tidy the string.
unsigned int Length () const
 Return the length of the encapsulated string.
void Attach (LPOLESTR lpOle)
 Attach an existing OLESTR.
LPOLESTR Detach ()
 Deatch the encapsulated string and return it.
LPOLESTR Copy () const
 Return a copy of the encapsulated string.
COleStroperator= (const COleStr &str)
 Assign another COleStr.
COleStroperator= (const LPCWSTR &str)
 Assign a wide character string.
COleStroperator= (const LPCSTR &str)
 Assign a narrow character string.
LPOLESTR * operator & ()
 Return the address of the encapsulated string.
 operator LPOLESTR () const
 Extractor the string data.
bool operator! () const
 Test for !(m_data != NULL).
 operator bool () const
 Test for m_data != NULL.


Detailed Description

An OLESTR wrapper.


Constructor & Destructor Documentation

OW32::COleStr::COleStr LPCWSTR  str  )  [inline]
 

Construct with a copy of an existing wide string.

Parameters:
str The string to copy

OW32::COleStr::COleStr LPCSTR  str  )  [inline]
 

Construct with a copy of an existing narrow string.

Parameters:
str The string to copy

OW32::COleStr::COleStr const COleStr str  )  [inline]
 

Construct with a copy of an existing COleStr.

Parameters:
str The string to copy


Member Function Documentation

COleStr& OW32::COleStr::operator= const LPCSTR &  str  )  [inline]
 

Assign a narrow character string.

Parameters:
str The string to assign

COleStr& OW32::COleStr::operator= const LPCWSTR &  str  )  [inline]
 

Assign a wide character string.

Parameters:
str The string to assign

COleStr& OW32::COleStr::operator= const COleStr str  )  [inline]
 

Assign another COleStr.

Parameters:
str The string to copy


The documentation for this class was generated from the following file:
Generated on Sun Jun 5 01:29:25 2005 for OW32 by  doxygen 1.3.9.1