TDriveUnit Class Reference

class TDriveUnit

Drive numbers and letters.

A drive may be represented by either an integer between zero and twenty five inclusive, or by a buffer descriptor containing a character between "A" and "Z" inclusive, followed by a colon. This class encapsulates both representations. An instance of this class is constructed specifying either the drive number or the drive letter and may be converted between the two representations.

Public Member Functions
TDriveUnit()
TDriveUnit(TInt)
TDriveUnit(const TDesC &)
IMPORT_C TDriveNameName()
operator TInt()
IMPORT_C TDriveUnit &operator=(TInt)
IMPORT_C TDriveUnit &operator=(const TDesC &)
Private Attributes
TInt iDrive

Constructor & Destructor Documentation

TDriveUnit()

TDriveUnit()[inline]

TDriveUnit(TInt)

IMPORT_CTDriveUnit(TIntaDrive)

Parameters

TInt aDrive

TDriveUnit(const TDesC &)

IMPORT_CTDriveUnit(const TDesC &aDrive)

Parameters

const TDesC & aDrive

Member Functions Documentation

Name()

IMPORT_C TDriveNameName()const

operator TInt()

operator TInt()const [inline]

Converts the drive unit to an integer value.

operator=(TInt)

IMPORT_C TDriveUnit &operator=(TIntaDrive)

Parameters

TInt aDrive

operator=(const TDesC &)

IMPORT_C TDriveUnit &operator=(const TDesC &aDrive)

Parameters

const TDesC & aDrive

Member Data Documentation

TInt iDrive

TInt iDrive[private]