|
||
class CDir : public CBase;
Array of directory entries that has been read into memory from the file system.
It can be read and sorted by user programs, but cannot be created by them.
CBase
- Base class for all classes to be instantiated on the heap
CDir
- Array of directory entries that has been read into memory from the file system
Defined in CDir
:
AddL()
Adds the specified entry to the directoryCDir()
Default constructorCompress()
Compresses the directoryCount()
Gets the number of entries in the array of directory entriesExtractL()
Copies all directory entries from this directory array, and adds them to a new directory arrayNewL()
Allocates and constructs a directory objectSort()
Sorts the array of directory entriesiArray
operator[]()
Gets an entry from the array of directory entries~CDir()
DestructorInherited from CBase
:
Delete()
Deletes the specified objectExtension_()
Extension functionoperator new()
Initialises the object to binary zeroesvirtual IMPORT_C ~CDir();
Destructor.
Frees all resources owned by the object, prior to its destruction.
protected: static IMPORT_C CDir *NewL();
Allocates and constructs a directory object.
This function is protected, which prevents objects of this class from being directly constructed.
|
IMPORT_C TInt Count() const;
Gets the number of entries in the array of directory entries.
|
IMPORT_C const TEntry &operator[](TInt anIndex) const;
Gets an entry from the array of directory entries.
|
|
IMPORT_C TInt Sort(TUint aEntrySortKey);
Sorts the array of directory entries.
|
|
TEntryKey
Flags indicating the order in which directory entries are to be sortedprotected: IMPORT_C void AddL(const TEntry &anEntry);
Adds the specified entry to the directory.
Note that the function can leave.
|
protected: IMPORT_C void ExtractL(TBool aRemove, CDir *&aDir);
Copies all directory entries from this directory array, and adds them to a new directory array.
The directory entries in this array can be deleted.
Note that the function can leave.
|
protected: IMPORT_C void Compress();
Compresses the directory.
This has the effect of potentially reducing the ammount of storage space required on the media for that directory and the files it contains. Some files are already compressed and will not compress further.
A potential side effect of compression is that each file is required to be uncompressed prior to use, generally increasing the time and processing cycles required to access that file.
protected: CArrayPakFlat< TEntry > * iArray;