home *** CD-ROM | disk | FTP | other *** search
- /*************************************************************************
- *
- * WBString -- OLE BString
- *
- *
- * Events:
- *
- *
- *************************************************************************/
-
- #ifndef _WOLEBSTR_HPP_INCLUDED
- #define _WOLEBSTR_HPP_INCLUDED
-
- #ifndef _WNO_PRAGMA_PUSH
- #pragma pack(push,4);
- #pragma enum int;
- #endif
-
- #ifndef _WSTRING_HPP_INCLUDED
- # include "wstring.hpp"
- #endif
- #ifndef _WBUFFER_HPP_INCLUDED
- # include "wbuffer.hpp"
- #endif
-
- class WCMCLASS WBString {
-
- public:
-
- /**********************************************************
- * Constructors and Destructors
- *********************************************************/
-
- WBString( void );
- WBString( const WChar * const str );
- WBString( long char * wbstr );
- WBString( const WString & wstring );
- WBString( const WBuffer & buffer );
- WBString( const WBString & wbstr );
- WBString( WULong size, WUnicodeChar *buffer=NULL );
-
- virtual ~WBString();
-
- /**************************************************************
- * Properties
- **************************************************************/
-
- WUInt GetLength( void ) const;
- WUInt GetByteLength( void ) const;
- long char * GetHandle( void ) const;
-
- /**************************************************************
- * Methods
- **************************************************************/
-
- void Clear( void );
-
- /**************************************************************
- * Operators
- **************************************************************/
-
- WBString & operator=( const WBString & bstr );
-
- // cast operators
- operator WString() const;
- operator WBuffer() const;
- operator long char *() const;
-
- public:
-
- /**********************************************************
- * Data Members
- *********************************************************/
-
- long char * _bstring;
-
- };
-
- #ifndef _WNO_PRAGMA_PUSH
- #pragma enum pop;
- #pragma pack(pop);
- #endif
-
- #endif // _WOLEBSTR_HPP_INCLUDED
-
-