|
SASC
DVBSoftCAM
|
#include <descriptor.h>
Inheritance diagram for SI::MHP_TransportProtocolDescriptor:Public Types | |
| enum | Protocol { ObjectCarousel = 0x01, IPviaDVB = 0x02, HTTPoverInteractionChannel = 0x03 } |
Public Member Functions | |
| int | getProtocolId () const |
| int | getProtocolLabel () const |
| bool | isRemote () const |
| int | getComponentTag () const |
Protected Member Functions | |
| virtual void | Parse () |
Definition at line 587 of file descriptor.h.
Definition at line 589 of file descriptor.h.
: virtual void Parse();
| int SI::MHP_TransportProtocolDescriptor::getComponentTag | ( | ) | const |
Definition at line 922 of file descriptor.c.
{
return componentTag;
}
| int SI::MHP_TransportProtocolDescriptor::getProtocolId | ( | ) | const |
| int SI::MHP_TransportProtocolDescriptor::getProtocolLabel | ( | ) | const |
Definition at line 914 of file descriptor.c.
{
return s->transport_protocol_label;
}
| bool SI::MHP_TransportProtocolDescriptor::isRemote | ( | ) | const |
Definition at line 918 of file descriptor.c.
{
return remote;
}
| void SI::MHP_TransportProtocolDescriptor::Parse | ( | ) | [protected, virtual] |
Implements SI::Parsable.
Definition at line 926 of file descriptor.c.
References SI::transport_via_oc_end::component_tag, SI::transport_via_oc_remote_end::component_tag, SI::Object::data, SI::transport_via_oc::remote, and SI::CharArray::setPointerAndOffset().
{
int offset=0;
data.setPointerAndOffset<const descr_transport_protocol>(s, offset);
if (getProtocolId() == ObjectCarousel) {
const transport_via_oc *oc;
data.setPointerAndOffset<const transport_via_oc>(oc, offset);
remote=oc->remote;
if (remote) {
const transport_via_oc_remote_end *rem;
data.setPointerAndOffset<const transport_via_oc_remote_end>(rem, offset);
componentTag=rem->component_tag;
} else {
const transport_via_oc_end *rem;
data.setPointerAndOffset<const transport_via_oc_end>(rem, offset);
componentTag=rem->component_tag;
}
} else { //unimplemented
remote=false;
componentTag=-1;
}
}