EPOC   SDK Home Glossary Indexes Previous Next Up

CParserPropertyValueHBufC class


Contents


CParserPropertyValueHBufC class — Heap descriptor property value

Section Contents


Overview

Compatibility

Applications that use this class will not work correctly on a version of EPOC earlier than ER5.

Derivation

CBase

Abstract: CBase behaviour.

CParserPropertyValue

Abstract: Base class for all property values.

Defined in

vprop.h

Link against

versit.lib

Description

This class encapsulates a property value stored in a heap descriptor. For example, a summary property value in a vCalendar entity might be stored using this class.

To find out the property value type, use Uid() defined in the base class CParserPropertyValue. A heap descriptor property UID has the value KVersitPropertyHBufCUid.

The class defines an ExternalizeL() function which has not been documented. It is invoked by the parser's ExternalizeL() function.


Construction and destruction


NewL() — Allocate and construct

CParserPropertyValueHBufC* NewL(const TDesC& aValue);

Description

Use this function to allocate and construct a new heap descriptor property value, from the descriptor specified.

Arguments

const TDesC& aValue

The property value.

Return value

CParserPropertyValueHBufC*

Pointer to the newly created heap descriptor property value.


NewLC() — Allocate and construct

CParserPropertyValueHBufC* NewLC(const TDesC& aValue);

Description

Use this function to allocate and construct a new heap descriptor property value, from the descriptor specified.

This function leaves the property value object on the cleanup stack.

Arguments

const TDesC& aValue

The property value.

Return value

CParserPropertyValueHBufC*

Pointer to the newly created heap descriptor property value.


~CParserPropertyValueHBufC() — Destructor

~CParserPropertyValueHBufC();

Description

The destructor frees all resources owned by the property value, prior to its destruction.


Property value


Value() — Get property value

TPtrC Value() const;

Description

This function retrieves the property value. If no value has been set, the function returns an empty descriptor.

Return value

TPtrC

Constant pointer descriptor representing the property value.

EPOC       SDK Home Glossary Indexes Previous Next Up