ContentAccess::CMetaDataArray Class Reference

class ContentAccess::CMetaDataArray : public CBase

Stores an array of CMetaData objects for use in a supplier import operation

It provides search and routines (for both 8 bit and Unicode) to find the value corresponding to a particular field in the array.

Applications should use the unicode search function whenever possible because it removes the risk of losing information during the unicode to 8 bit conversion.

Inherits from

  • ContentAccess::CMetaDataArray

Constructor & Destructor Documentation

CMetaDataArray()

CMetaDataArray ( ) [private]

~CMetaDataArray()

~CMetaDataArray ( ) [virtual]

Destructor

Member Functions Documentation

AddL(const TDesC8 &, const TDesC8 &)

IMPORT_C void AddL ( const TDesC8 & aField,
const TDesC8 & aData
)

Adds a new meta data,

Parameters

const TDesC8 & aField The name used to index the value of interest
const TDesC8 & aData The data

AddL(const TDesC &, const TDesC &)

IMPORT_C void AddL ( const TDesC & aField,
const TDesC & aData
)

Adds a new meta data,

Parameters

const TDesC & aField The name used to index the value of interest
const TDesC & aData The data

Count()

IMPORT_C TInt Count ( ) const

The number of metadata objects in the list

ExternalizeL(RWriteStream &)

IMPORT_C void ExternalizeL ( RWriteStream & aStream ) const

Externalizes the CMetaDataArray object to a stream.

Parameters

RWriteStream & aStream The stream to write the header information to.

InternalizeL(RReadStream &)

void InternalizeL ( RReadStream & aStream ) [private]

Parameters

RReadStream & aStream

NewL()

IMPORT_C CMetaDataArray * NewL ( ) [static]

NewL(RReadStream &)

IMPORT_C CMetaDataArray * NewL ( RReadStream & aStream ) [static]

Construct a CMetaDataArray from a stream

Parameters

RReadStream & aStream the stream containing the metadata array

NewLC()

IMPORT_C CMetaDataArray * NewLC ( ) [static]

SearchL(const TDesC &, TBool)

IMPORT_C const TDesC & SearchL ( const TDesC & aField,
TBool aMatchCase = EFalse
) const

Find the unicode data for a given unicode field.

Parameters

const TDesC & aField The field to retrieve
TBool aMatchCase = EFalse ETrue To perform case sensitive search, EFalse - To perform non case sensitive search

SearchL(const TDesC8 &, TBool)

IMPORT_C const TDesC8 & SearchL ( const TDesC8 & aField8,
TBool aMatchCase = EFalse
) const

Find the 8 bit data for a given 8 bit field.

Parameters

const TDesC8 & aField8 The field to retrieve
TBool aMatchCase = EFalse ETrue To perform case sensitive search, EFalse - To perform non case sensitive search

operator[](TInt)

IMPORT_C const CMetaData & operator[] ( TInt aIndex ) const

Retrieves the MetaData at the given index

Parameters

TInt aIndex The index of the meta-data

Member Data Documentation

RPointerArray< CMetaData > iArray

RPointerArray < CMetaData > iArray [private]

TInt iMaxFieldLength

TInt iMaxFieldLength [private]