src/libtsduck/dtv/descriptors/tsShortEventDescriptor.cpp
void ts::ShortEventDescriptor::DisplayDescriptor(TablesDisplay& display, DID did, const uint8_t* data, size_t size, int indent, TID tid, PDS pds)
{
    std::ostream& strm(display.duck().out());
    const std::string margin(indent, ' ');

    if (size >= 4) {
        const UString lang(DeserializeLanguageCode(data));
        data += 3; size -= 3;
        const UString name(display.duck().fromDVBWithByteLength(data, size));
        const UString text(display.duck().fromDVBWithByteLength(data, size));
        strm << margin << "Language: " << lang << std::endl
             << margin << "Event name: \"" << name << "\"" << std::endl
             << margin << "Description: \"" << text << "\"" << std::endl;
    }

    display.displayExtraData(data, size, indent);
}
//----------------------------------------------------------------------------
// Static method to display a descriptor.
//----------------------------------------------------------------------------
Static method to display a descriptor.
Static method to display a descriptor .
void ts::ShortEventDescriptor::DisplayDescriptor(TablesDisplay& display, DID did, const uint8_t* data, size_t size, int indent, TID tid, PDS pds)
{
    std::ostream& strm(display.duck().out());
    const std::string margin(indent, ' ');
    if (size >= 4) {
        const UString lang(DeserializeLanguageCode(data));
        data += 3; size -= 3;
        const UString name(display.duck().fromDVBWithByteLength(data, size));
        const UString text(display.duck().fromDVBWithByteLength(data, size));
        strm << margin << "Language: " << lang << std::endl
             << margin << "Event name: \"" << name << "\"" << std::endl
             << margin << "Description: \"" << text << "\"" << std::endl;
    }
    display.displayExtraData(data, size, indent);
}
void ts :: ShortEventDescriptor :: DisplayDescriptor ( TablesDisplay & display , DID did , const uint8_t * data , size_t size , int indent , TID tid , PDS pds ) { std :: ostream & strm ( display . duck ( ) . out ( ) ) ; const std :: string margin ( indent , ' ' ) ; if ( size >= 4 ) { const UString lang ( DeserializeLanguageCode ( data ) ) ; data += 3 ; size -= 3 ; const UString name ( display . duck ( ) . fromDVBWithByteLength ( data , size ) ) ; const UString text ( display . duck ( ) . fromDVBWithByteLength ( data , size ) ) ; strm << margin << " " << lang << std :: endl << margin << " \" " << name << " \" " << std :: endl << margin << " \" " << text << " \" " << std :: endl ; } display . displayExtraData ( data , size , indent ) ; }
Static method to display a descriptor.
Static method to display a descriptor .