DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Protected Member Functions | List of all members
shaka::media::WebMParserClient Class Reference

#include <webm_parser.h>

Inheritance diagram for shaka::media::WebMParserClient:
shaka::media::SegmentTestBase::ClusterParser shaka::media::WebMAudioClient shaka::media::WebMClusterParser shaka::media::WebMContentEncodingsClient shaka::media::WebMInfoParser shaka::media::WebMTracksParser shaka::media::WebMVideoClient

Public Member Functions

virtual WebMParserClientOnListStart (int id)
 
virtual bool OnListEnd (int id)
 
virtual bool OnUInt (int id, int64_t val)
 
virtual bool OnFloat (int id, double val)
 
virtual bool OnBinary (int id, const uint8_t *data, int size)
 
virtual bool OnString (int id, const std::string &str)
 

Protected Member Functions

 DISALLOW_COPY_AND_ASSIGN (WebMParserClient)
 

Detailed Description

Interface for receiving WebM parser events.

Each method is called when an element of the specified type is parsed. The ID of the element that was parsed is given along with the value stored in the element. List elements generate calls at the start and end of the list. Any pointers passed to these methods are only guaranteed to be valid for the life of that call. Each method (except for OnListStart) returns a bool that indicates whether the parsed data is valid. OnListStart returns a pointer to a WebMParserClient object, which should be used to handle elements parsed out of the list being started. If false (or NULL by OnListStart) is returned then the parse is immediately terminated and an error is reported by the parser.

Definition at line 30 of file webm_parser.h.


The documentation for this class was generated from the following files: