SMLTMPSTR Class Reference

SMLTMPSTR class simplifies access to the string values in an SMLSTR. More...

#include <sml.h>

List of all members.

Public Member Functions

 SMLTMPSTR (SMLSTRING *s)
 ~SMLTMPSTR ()
SMLTMPSTRoperator= (SMLSTRING *s)
 operator const UNICODE * ()
char * GetNonConstChar ()
const char * GetConstChar ()
UNICODEGetNonConstUnicode ()
 operator char * ()
 operator UNICODE * ()


Detailed Description

SMLTMPSTR class simplifies access to the string values in an SMLSTR.

To use one, declare as follows... (assume smlstr is an (SMLSTRING*)

SMLTMPSTR tmpstr = smlstr;

You can then pass tmpstr to any function that wants a (UNICODE*) Eventually you will be able to compare strings and stuff as well Note that the method which casts to (const UNICODE*) can simply dereference the SMLSTRING. The other casts make a tempory copy of the string which the destructor frees.

Definition at line 1612 of file sml.h.


Constructor & Destructor Documentation

SMLTMPSTR::SMLTMPSTR SMLSTRING s  )  [inline]
 

Definition at line 1614 of file sml.h.

SMLTMPSTR::~SMLTMPSTR  )  [inline]
 

Definition at line 1615 of file sml.h.


Member Function Documentation

const char* SMLTMPSTR::GetConstChar  ) 
 

char* SMLTMPSTR::GetNonConstChar  ) 
 

cast to (const UNICODE *) (doesn't have to make temp copy)

UNICODE* SMLTMPSTR::GetNonConstUnicode  ) 
 

SMLTMPSTR::operator char *  ) 
 

Cast to (char*).

Deprecated:
Call GetNonConstChar() instead

SMLTMPSTR::operator const UNICODE *  ) 
 

SMLTMPSTR::operator UNICODE *  ) 
 

Cast to (UNICODE*).

Deprecated:
Call GetNonConstUnicode() instead

SMLTMPSTR& SMLTMPSTR::operator= SMLSTRING s  )  [inline]
 

Definition at line 1617 of file sml.h.


The documentation for this class was generated from the following file:
Generated on Thu Aug 12 06:27:29 2004 for TNTsdk by doxygen 1.3.4-20031026