MythTV  master
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SpliceDescriptor Class Reference

#include <splicedescriptors.h>

Inheritance diagram for SpliceDescriptor:
Inheritance graph
[legend]

Public Member Functions

 operator const unsigned char * (void) const
 
 SpliceDescriptor (const unsigned char *data, int len)
 
 SpliceDescriptor (const unsigned char *data, int len, uint tag)
 
virtual ~SpliceDescriptor (void)=default
 
bool IsValid (void) const
 
uint size (void) const
 
uint DescriptorTag (void) const
 
QString DescriptorTagString (void) const
 
uint DescriptorLength (void) const
 
uint Identifier (void) const
 
QString IdentifierString (void) const
 
virtual QString toString (void) const
 
virtual QString toStringXML (uint indent_level) const
 Returns XML representation of string the TS Reader XML format. More...
 

Static Public Member Functions

static desc_list_t Parse (const unsigned char *data, uint len)
 
static desc_list_t ParseAndExclude (const unsigned char *data, uint len, int excluded_descid)
 
static desc_list_t ParseOnlyInclude (const unsigned char *data, uint len, int excluded_descid)
 
static const unsigned char * Find (const desc_list_t &parsed, uint desc_tag)
 
static desc_list_t FindAll (const desc_list_t &parsed, uint desc_tag)
 

Protected Member Functions

virtual bool Parse (void)
 

Protected Attributes

const unsigned char * m_data {nullptr}
 

Detailed Description

Definition at line 42 of file splicedescriptors.h.

Constructor & Destructor Documentation

◆ SpliceDescriptor() [1/2]

SpliceDescriptor::SpliceDescriptor ( const unsigned char *  data,
int  len 
)
inline

Definition at line 47 of file splicedescriptors.h.

◆ SpliceDescriptor() [2/2]

SpliceDescriptor::SpliceDescriptor ( const unsigned char *  data,
int  len,
uint  tag 
)
inline

Definition at line 52 of file splicedescriptors.h.

◆ ~SpliceDescriptor()

virtual SpliceDescriptor::~SpliceDescriptor ( void  )
virtualdefault

Member Function Documentation

◆ operator const unsigned char *()

SpliceDescriptor::operator const unsigned char * ( void  ) const
inlineexplicit

Definition at line 45 of file splicedescriptors.h.

◆ IsValid()

bool SpliceDescriptor::IsValid ( void  ) const
inline

Definition at line 61 of file splicedescriptors.h.

Referenced by Parse(), ParseAndExclude(), ParseOnlyInclude(), and toString().

◆ size()

uint SpliceDescriptor::size ( void  ) const
inline

Definition at line 62 of file splicedescriptors.h.

Referenced by Parse(), ParseAndExclude(), and ParseOnlyInclude().

◆ DescriptorTag()

uint SpliceDescriptor::DescriptorTag ( void  ) const
inline

Definition at line 66 of file splicedescriptors.h.

Referenced by DescriptorTagString(), SpliceDescriptor(), toString(), and toStringXML().

◆ DescriptorTagString()

QString SpliceDescriptor::DescriptorTagString ( void  ) const

Definition at line 110 of file splicedescriptors.cpp.

Referenced by toString(), and toStringXML().

◆ DescriptorLength()

uint SpliceDescriptor::DescriptorLength ( void  ) const
inline

Definition at line 69 of file splicedescriptors.h.

Referenced by size(), SpliceDescriptor(), toString(), and toStringXML().

◆ Identifier()

uint SpliceDescriptor::Identifier ( void  ) const
inline

Definition at line 71 of file splicedescriptors.h.

◆ IdentifierString()

QString SpliceDescriptor::IdentifierString ( void  ) const
inline

Definition at line 75 of file splicedescriptors.h.

◆ toString()

QString SpliceDescriptor::toString ( void  ) const
virtual

Reimplemented in SegmentationDescriptor, DTMFDescriptor, and AvailDescriptor.

Definition at line 125 of file splicedescriptors.cpp.

Referenced by toStringXML().

◆ toStringXML()

QString SpliceDescriptor::toStringXML ( uint  level) const
virtual

Returns XML representation of string the TS Reader XML format.

When possible matching http://www.tsreader.com/tsreader/text-export.html

Definition at line 164 of file splicedescriptors.cpp.

◆ Parse() [1/2]

desc_list_t SpliceDescriptor::Parse ( const unsigned char *  data,
uint  len 
)
static

Definition at line 27 of file splicedescriptors.cpp.

◆ ParseAndExclude()

desc_list_t SpliceDescriptor::ParseAndExclude ( const unsigned char *  data,
uint  len,
int  excluded_descid 
)
static

Definition at line 46 of file splicedescriptors.cpp.

◆ ParseOnlyInclude()

desc_list_t SpliceDescriptor::ParseOnlyInclude ( const unsigned char *  data,
uint  len,
int  excluded_descid 
)
static

Definition at line 67 of file splicedescriptors.cpp.

◆ Find()

const unsigned char * SpliceDescriptor::Find ( const desc_list_t parsed,
uint  desc_tag 
)
static

Definition at line 88 of file splicedescriptors.cpp.

◆ FindAll()

desc_list_t SpliceDescriptor::FindAll ( const desc_list_t parsed,
uint  desc_tag 
)
static

Definition at line 99 of file splicedescriptors.cpp.

◆ Parse() [2/2]

virtual bool SpliceDescriptor::Parse ( void  )
inlineprotectedvirtual

Reimplemented in SegmentationDescriptor.

Definition at line 94 of file splicedescriptors.h.

Member Data Documentation

◆ m_data

const unsigned char* SpliceDescriptor::m_data {nullptr}
protected

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