TSdpTypedTime Class Reference

class TSdpTypedTime

This class implements the typed time element of the Session Description Protocol.

The normative reference for correct formatting and values is draft-ietf-mmusic-sdp-new-14 unless specified otherwise in member documentation. The implementation supports this normative reference, but does not enforce it fully.

sdpcodec.lib

Constructor & Destructor Documentation

TSdpTypedTime()

IMPORT_CTSdpTypedTime()

Constructs a typed time equal to zero and with no time unit set.

TSdpTypedTime(TInt64, TUnit)

IMPORT_CTSdpTypedTime(TInt64aValue,
TUnitaUnit
)

Constructs a typed time equal to specified value and time unit.

Parameters

TInt64 aValueTime value.
TUnit aUnitTime unit.

Member Functions Documentation

DecodeL(const TDesC8 &)

TSdpTypedTime DecodeL(const TDesC8 &aText)[static]

Construct a new origin field.

Parameters

const TDesC8 & aTextA string containing a correctly formatted field value terminated by a CRLF.

EncodeL(RWriteStream &)

voidEncodeL(RWriteStream &aStream)const

Output the field formatted according to SDP syntax and including the terminating CRLF.

Parameters

RWriteStream & aStreamStream used for output.

ExternalizeL(RWriteStream &)

voidExternalizeL(RWriteStream &aStream)const

Externalizes the object to stream

Parameters

RWriteStream & aStreamStream where the object's state will be stored

InternalizeL(RReadStream &)

TSdpTypedTime InternalizeL(RReadStream &aStream)[static]

Creates object from the stream data

Parameters

RReadStream & aStreamStream where the object's state will be read

SetValue(TInt64, TUnit)

IMPORT_C voidSetValue(TInt64aValue,
TUnitaUnit
)

Sets the typed time value.

Parameters

TInt64 aValueTime value.
TUnit aUnitTime unit.

operator==(const TSdpTypedTime &)

IMPORT_C TBooloperator==(const TSdpTypedTime &aObj)const

Compares this instance to another for equality.

Parameters

const TSdpTypedTime & aObjAnother instance to compare with.

Member Enumerations Documentation

Enum TUnit

Time units.

Enumerators

ETimeUnitDays
ETimeUnitHours

d

ETimeUnitMinutes

h

ETimeUnitSeconds

m

ETimeUnitNone

s

Member Data Documentation

TInt iUnit

TInt iUnit

TInt64 iValue

TInt64 iValue