| 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.
| Public Member Functions | |
|---|---|
| TParsePtrC (const TDesC &) | |
| Protected Member Functions | |
|---|---|
| IMPORT_C TDes & | NameBuf () |
| IMPORT_C const TDesC & | NameBufC () |
| Private Attributes | |
|---|---|
| TPtrC | iNameBuf |
| Inherited Attributes | |
|---|---|
| TParseBase::iMod | |
| 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.
| const TDesC & aName | Constant reference to the filename to be parsed. On return contains the fully parsed filename. If a file and extension are specified, they may both contain wildcards. The maximum length is KMaxFileName characters. |
| IMPORT_C TDes & | NameBuf | ( | ) | [protected, virtual] |
Gets a reference to the descriptor containing the filename passed to the constructor of this object.
| IMPORT_C const TDesC & | NameBufC | ( | ) | const [protected, virtual] |
Gets a const reference to the descriptor containing the filename passed to the constructor of this object.
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.