Shaka Packager SDK
Public Member Functions | Protected Member Functions | List of all members
shaka::xml::RepresentationBaseXmlNode Class Reference

#include <xml_node.h>

Inheritance diagram for shaka::xml::RepresentationBaseXmlNode:
shaka::xml::XmlNode shaka::xml::AdaptationSetXmlNode shaka::xml::RepresentationXmlNode

Public Member Functions

bool AddContentProtectionElements (const std::list< ContentProtectionElement > &content_protection_elements) WARN_UNUSED_RESULT
 
bool AddSupplementalProperty (const std::string &scheme_id_uri, const std::string &value) WARN_UNUSED_RESULT
 
bool AddEssentialProperty (const std::string &scheme_id_uri, const std::string &value) WARN_UNUSED_RESULT
 
- Public Member Functions inherited from shaka::xml::XmlNode
 XmlNode (const std::string &name)
 
 XmlNode (XmlNode &&)
 
XmlNodeoperator= (XmlNode &&)
 
bool AddChild (XmlNode child) WARN_UNUSED_RESULT
 
bool AddElements (const std::vector< Element > &elements) WARN_UNUSED_RESULT
 Adds Elements to this node using the Element struct.
 
bool SetStringAttribute (const std::string &attribute_name, const std::string &attribute) WARN_UNUSED_RESULT
 
bool SetIntegerAttribute (const std::string &attribute_name, uint64_t number) WARN_UNUSED_RESULT
 
bool SetFloatingPointAttribute (const std::string &attribute_name, double number) WARN_UNUSED_RESULT
 
bool SetId (uint32_t id) WARN_UNUSED_RESULT
 
void AddContent (const std::string &content)
 Similar to SetContent, but appends to the end of existing content.
 
void SetContent (const std::string &content)
 
std::set< std::string > ExtractReferencedNamespaces () const
 
std::string ToString (const std::string &comment) const
 
bool GetAttribute (const std::string &name, std::string *value) const
 

Protected Member Functions

 RepresentationBaseXmlNode (const std::string &name)
 
bool AddDescriptor (const std::string &descriptor_name, const std::string &scheme_id_uri, const std::string &value) WARN_UNUSED_RESULT
 

Detailed Description

This corresponds to RepresentationBaseType in MPD. RepresentationBaseType is not a concrete element type so this should not get instantiated on its own. AdaptationSet and Representation are subtypes of this.

Definition at line 125 of file xml_node.h.

Member Function Documentation

◆ AddDescriptor()

bool shaka::xml::RepresentationBaseXmlNode::AddDescriptor ( const std::string &  descriptor_name,
const std::string &  scheme_id_uri,
const std::string &  value 
)
protected

Add a Descriptor.

Parameters
descriptor_nameis the name of the descriptor.
scheme_id_uriis content of the schemeIdUri attribute.
valueis the content of value attribute.

Definition at line 287 of file xml_node.cc.

◆ AddEssentialProperty()

bool shaka::xml::RepresentationBaseXmlNode::AddEssentialProperty ( const std::string &  scheme_id_uri,
const std::string &  value 
)
Parameters
scheme_id_uriis content of the schemeIdUri attribute.
valueis the content of value attribute.

Definition at line 281 of file xml_node.cc.

◆ AddSupplementalProperty()

bool shaka::xml::RepresentationBaseXmlNode::AddSupplementalProperty ( const std::string &  scheme_id_uri,
const std::string &  value 
)
Parameters
scheme_id_uriis content of the schemeIdUri attribute.
valueis the content of value attribute.

Definition at line 275 of file xml_node.cc.


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