CPacked Class Reference

class CPacked : public CBase

A base class to serialize objects between clients and the server.

Library: FeedsEngine.lib

Since
3.1

Inherits from

Constructor & Destructor Documentation

CPacked(TInt, TInt)

CPacked ( TInt aTokenArrayInc,
TInt aStringTableInc
) [protected]

C++ default constructor.

Parameters

TInt aTokenArrayInc
TInt aStringTableInc

~CPacked()

~CPacked ( ) [virtual]

Destructor.

Member Functions Documentation

AddAttributeL(TInt, const TDesC &)

void AddAttributeL ( TInt aAttribute,
const TDesC & aValue
)

Insert an attribute. This attribute should be applied to the enclosing entity (Feed, Item, or Enclosure).

Since
3.1

Parameters

TInt aAttribute The attribute's id.
const TDesC & aValue The attribute's value.

AddAttributeL(TInt, TInt)

void AddAttributeL ( TInt aAttribute,
TInt aValue
)

Insert an attribute. This attribute should be applied to the enclosing entity (Feed, Item, or Enclosure).

Since
3.1

Parameters

TInt aAttribute The attribute's id.
TInt aValue The attribute's value.

AppendStringTableChunkL(const TDesC8 &)

void AppendStringTableChunkL ( const TDesC8 & aChunk )

Append a chunk of "string-table" values to the feed.

Since
3.1

Parameters

const TDesC8 & aChunk A string chunk.

AppendTokenChunkL(const TDesC8 &)

void AppendTokenChunkL ( const TDesC8 & aChunk )

Append a chunk of "token" values to the feed.

Since
3.1

Parameters

const TDesC8 & aChunk A token chunk.

BaseConstructL()

void BaseConstructL ( ) [protected]

By default Symbian 2nd phase constructor is private.

ExtractAttributeValue(TUint &, TPtrC &)

void ExtractAttributeValue ( TUint & aAttribute,
TPtrC & aValue
) const

Upon completion aValue wraps the current attribute value. This method must only be called when the call to NextToken returns EPackedTokenAttribute.

Since
3.1

Parameters

TUint & aAttribute The attribute.
TPtrC & aValue The attribute value.

HasNextToken()

TBool HasNextToken ( ) const

Determine if there is a next token.

Since
3.1

InsertTokenL(TUint)

void InsertTokenL ( TUint aToken ) [protected]

Insert a token.

Since
3.1

Parameters

TUint aToken The token.

NextToken()

TUint NextToken ( ) const

Returns the next token.

Since
3.1

Reset()

void Reset ( ) const

Resets back to the first token.

Since
3.1

Trim()

void Trim ( )

Removes any temp memory used while appending chunks.

Since
3.1

Member Data Documentation

const TInt KStringTableInc

const TInt KStringTableInc [protected]

const TInt KTokenArrayInc

const TInt KTokenArrayInc [protected]

TInt iNextToken

TInt iNextToken [protected]

HBufC * iStringTable

HBufC * iStringTable [protected]

TUint * iTokenArray

TUint * iTokenArray [protected]

TPtrC8 iTokenArrayAsDes

TPtrC8 iTokenArrayAsDes [protected]

TInt iTokenArrayLength

TInt iTokenArrayLength [protected]

TInt iTokenArrayMaxLength

TInt iTokenArrayMaxLength [protected]