class TParse : public TParseBase |
Parses filenames.
The class uses the full filename structure supported by Symbian OS.
TParse works by using the Set() function to set up the filename to be parsed. Then, various getter functions defined in the base class, TParseBase, such as: FullName(), Drive(), Path(), DriveAndPath(), Name(), Ext() and NameAndExt() may be used to retrieve path components.
There are a number of restrictions to valid path components, which are described in guide documentation.
Public Member Functions | |
---|---|
TParse() | |
IMPORT_C TInt | Set(const TDesC &, const TDesC *, const TDesC *) |
IMPORT_C TInt | SetNoWild(const TDesC &, const TDesC *, const TDesC *) |
Protected Member Functions | |
---|---|
IMPORT_C TDes & | NameBuf() |
IMPORT_C const TDesC & | NameBufC() |
Private Attributes | |
---|---|
TFileName | iNameBuf |
Inherited Attributes | |
---|---|
TParseBase::iMod |
IMPORT_C TDes & | NameBuf | ( | ) | [protected, virtual] |
Gets a reference to the descriptor containing the file specification passed to the constructor of this object.
IMPORT_C const TDesC & | NameBufC | ( | ) | const [protected, virtual] |
Gets a const reference to the descriptor containing the file specification passed to the constructor of this object.
IMPORT_C TInt | Set | ( | const TDesC & | aName, |
const TDesC * | aRelated, | |||
const TDesC * | aDefault | |||
) |
Parses a file specification, allowing wildcards in the filename and extension.
This function sets up the TParse object so that it can be used to provide useful information.
IMPORT_C TInt | SetNoWild | ( | const TDesC & | aName, |
const TDesC * | aRelated, | |||
const TDesC * | aDefault | |||
) |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.