|
||
class TParsePtrC : public TParseBase;
Parses, but cannot modify, filenames using less space on the stack than TParse
.
Stores a reference to a filename, unlike TParse
, which uses a 512 byte TFileName object as an internal buffer to store a copy of the filename. The filename's components
(drive, path, etc.) can be retrieved using the functions provided by the base class, TParseBase
. Note that because the filename cannot be modified through this class, the base class functions PopDir()
and AddDir()
cannot be called, because a panic will be raised.
TParseBase
- Base class for file name parsing
TParsePtrC
- Parses, but cannot modify, filenames using less space on the stack than TParse
Defined in TParsePtrC
:
NameBuf()
Gets a reference to the descriptor containing the filename passed to the constructor of this objectNameBufC()
Gets a const reference to the descriptor containing the filename passed to the constructor of this objectTParsePtrC()
Constructor taking a constant reference to a filenameInherited from TParseBase
:
AddDir()
Adds a single directory onto the end of the path in the fully parsed specificationDrive()
Gets the drive letterDriveAndPath()
Gets the drive letter and pathDrivePresent()
Tests whether a drive is presentExt()
Gets the extensionExtPresent()
Tests whether an extension is presentFullName()
Gets the complete file specificationIsExtWild()
Tests whether the extension in the fully parsed specification contains one or more wildcard charactersIsKMatchAny()
Tests whether the name or the extension contains asterisk wildcardsIsKMatchOne()
Tests whether the name or the extension contains a question mark wildcardIsNameWild()
Tests whether the filename in the fully parsed specification contains one or more wildcard charactersIsRoot()
Tests whether the path in the fully parsed specification is the root directoryIsWild()
Tests whether the filename or the extension in the fully parsed specification contains one or more wildcard charactersName()
Gets the filenameNameAndExt()
Gets the filename and extensionNameOrExtPresent()
Tests whether a filename or an extension are presentNamePresent()
Tests whether a file name is presentPath()
Gets the pathPathPresent()
Tests whether a path is presentPopDir()
Removes the last directory from the path in the fully parsed specificationiMod
IMPORT_C TParsePtrC(const TDesC &aName);
Constructor taking a constant reference to a filename.
The filename is parsed and if this fails, a panic is raised. Note that the filename cannot be modified using this class.
|
|
KMaxFileName
Defines the maximum length of a filenameprotected: virtual IMPORT_C TDes &NameBuf();
Gets a reference to the descriptor containing the filename passed to the constructor of this object.
|
protected: virtual IMPORT_C const TDesC &NameBufC() const;
Gets a const reference to the descriptor containing the filename passed to the constructor of this object.
|