CDataNoDelete Class Reference

#include <mw/cnode.h>

Link against: xmlelemt.lib

class CDataNoDelete : public CBase

Inherits from

  • CDataNoDelete

    Detailed Description

    Provides a wrapper around an HBufC16: the buffer is not deleted when the object is deleted.

    Member Attribute Documentation

    iData

    HBufC16 *iData[protected]

    The wrapped buffer.

    Constructor & Destructor Documentation

    CDataNoDelete ( HBufC16 * )

    CDataNoDelete(HBufC16 *aData)[inline]

    Constructor.

    ParameterDescription
    aDataBuffer to wrap

    ~CDataNoDelete ( )

    ~CDataNoDelete()[inline, virtual]

    Destructor.

    The wrapped buffer is not deleted.

    Member Function Documentation

    Data ( )

    HBufC16 *Data()[inline]

    Gets the wrapped buffer.

    Returns: The wrapped buffer

    ResetDataPointer ( HBufC16 * )

    voidResetDataPointer(HBufC16 *aData)[inline, virtual]

    Sets the buffer that is wrapped.

    The existing value is forgotten.

    ParameterDescription
    aDataBuffer to wrap

    SetData ( HBufC16 * )

    HBufC16 *SetData(HBufC16 *aData)[inline]

    Changes the buffer that is wrapped.

    ParameterDescription
    aDataBuffer to wrap

    Returns: The previous wrapped buffer