FileStoreFactory Class Reference

#include <s32file.h>

class FileStoreFactory
Public Member Functions
IMPORT_C CFileStore *DirectLC(RFileBuf &, const TUidType &)
IMPORT_C CFileStore *PermanentLC(RFileBuf &, const TUidType &)

Detailed Description

A class containing a set of factory functions for opening an existing direct file store and an existing permanent file store identified using a Uidtype.

Member Function Documentation

DirectLC ( RFileBuf &, const TUidType & )

IMPORT_C CFileStore *DirectLC(RFileBuf &aBuf,
const TUidType &aType
)[static]

Opens an existing direct file store and creates a file store object to represent it.

ParameterDescription
aBufThe stream buffer to be used.
aTypeThe Uidtype for the store.

Returns: A pointer to the new direct file store object. This is Null, if the specified Uidtype is KNullUid or the first Uid component is not KDirectFileStoreLayoutUid.

PermanentLC ( RFileBuf &, const TUidType & )

IMPORT_C CFileStore *PermanentLC(RFileBuf &aBuf,
const TUidType &aType
)[static]

Opens an existing permanent file store and creates a file store object to represent it.

ParameterDescription
aBufThe stream buffer to be used.
aTypeThe Uidtype for the store.

Returns: A pointer to the new permanent file store object. This is Null, if the specified Uidtype is KNullUid or the first Uid component is not KPermanentFileStoreLayoutUid.