SASC
DVBSoftCAM

SI::Section Class Reference

#include <si.h>

Inheritance diagram for SI::Section:

List of all members.

Public Member Functions

 Section (const unsigned char *data, bool doCopy=true)
 Section ()
TableId getTableId () const
virtual int getLength ()

Static Public Member Functions

static int getLength (const unsigned char *d)
static TableId getTableId (const unsigned char *d)

Detailed Description

Definition at line 205 of file si.h.


Constructor & Destructor Documentation

SI::Section::Section ( const unsigned char *  data,
bool  doCopy = true 
)

Definition at line 37 of file si.c.

References getLength(), and SI::Object::setData().

                                                       {
   setData(data, getLength(data), doCopy);
}
SI::Section::Section ( ) [inline]

Definition at line 209 of file si.h.

{}

Member Function Documentation

int SI::Section::getLength ( ) [virtual]
int SI::Section::getLength ( const unsigned char *  d) [static]

Definition at line 53 of file si.c.

References HILO.

                                             {
   return HILO(((const SectionHeader *)d)->section_length)+sizeof(SectionHeader);
}
TableId SI::Section::getTableId ( const unsigned char *  d) [static]

Definition at line 49 of file si.c.

                                                  {
   return (TableId)((const SectionHeader *)d)->table_id;
}
TableId SI::Section::getTableId ( ) const

Definition at line 41 of file si.c.

References SI::Object::data, and SI::CharArray::getData().

Referenced by SI::EIT::isActualTS(), and SI::EIT::isPresentFollowing().

                                  {
   return getTableId(data.getData());
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines