|
||
class CElementParser : public CBase;
Parser for SDP attribute values.
The class parses an input buffer containing an attribute value into its constituent data elements. It calls an MSdpElementBuilder
object each time a data element is decoded.
This parser can parse incrementally, and be fed new data as it arrives.
CBase
-
Base class for all classes to be instantiated on the heap.
CElementParser
- Parser for SDP attribute values.
Defined in CElementParser
:
BufferedParseL(const TDesC8 &)
Parse out some encoded data, with transparent buffering of unparsed data between...Builder()
CLinearBuf
NewL(MSdpElementBuilder *)
Allocates and constructs a new CElementParser object.ParseElementsL(const TDesC8 &)
Parses a data buffer into the currently set MSdpElementBuilder interface.Reset()
Resets the parser's buffers to be empty. Reset(MSdpElementBuilder *)
Resets the parser's buffers to be empty, and resets the element builder object u...SetBuilder(MSdpElementBuilder *)
~CElementParser()
Destructor. Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...MSdpElementBuilder
Constructs an attribute value, or a set of attributes, from multiple data elemen...IMPORT_C static CElementParser* NewL(MSdpElementBuilder *aBuilder);
Allocates and constructs a new CElementParser object.
|
|
IMPORT_C TInt ParseElementsL(const TDesC8 &aData);
Parses a data buffer into the currently set MSdpElementBuilder
interface.
If a whole number of data elements can not be parsed out of aData, the number of bytes left unparsed is returned. Those bytes should be prepended to the buffer when the function is next called.
|
|
IMPORT_C TBool BufferedParseL(const TDesC8 &aData);
Parse out some encoded data, with transparent buffering of unparsed data between calls.
The function stores any incompletely parsed data from a previous call, and automatically prepends to the data buffer when it is next called.
If the function leaves, the unparsed data will be deleted. This means it will not be possible to continue with this data stream;
CElementParser::Reset()
should be called before the next call to this function.
|
|
IMPORT_C void Reset(MSdpElementBuilder *aBuilder);
Resets the parser's buffers to be empty, and resets the element builder object used.
|
IMPORT_C void SetBuilder(MSdpElementBuilder *aBuilder);
|
class CLinearBuf : public CBase;
CBase
-
Base class for all classes to be instantiated on the heap.
CElementParser::CLinearBuf
- (No abstract)
Defined in CElementParser::CLinearBuf
:
Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...Size()const
inline TInt Size() const;
|