Location:
f32file.h
Link against: efsrv.lib
TDriveUnit
Supported from 5.0
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.
Defined in TDriveUnit
:
Name()
, TDriveUnit()
, TInt()
, operator=()
TDriveUnit();
Allows an uninitialised TDriveUnit
to be
constructed. It is necessary because there are also non-default constructors in
this class.
TDriveUnit(TInt aDrive);
Constructor with a drive number. The drive number must be less
than KMaxDrives
or a panic occurs.
|
TDriveUnit(const TDesC& aDrive);
Constructor with a drive letter. Trailing text within the descriptor is ignored.
|
TDriveUnit& operator=(TInt aDrive);
Assigns a drive number to the drive unit. The drive number specified
must be less than KMaxDrives
or a panic
occurs.
|
|
TDriveUnit& operator=(const TDesC& aDrive);
Assigns a drive letter to the drive unit. The letter must be between A and Z or a panic occurs. Any trailing text within the descriptor is ignored.
|
|
TDriveName Name() const;
Returns the drive unit as text.The drive letter is returned with a trailing colon.
|