eitd: remove all code inder #ifdef UPDATE_NETWORKS

Origin commit data
------------------
Branch: ni/coolstream
Commit: db26589266
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-02-01 (Wed, 01 Feb 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2012-02-01 21:00:45 +04:00
parent 90ecb2425f
commit 90596b4884
4 changed files with 5 additions and 3007 deletions

View File

@@ -26,10 +26,7 @@
//
#include <endian.h>
#ifdef UPDATE_NETWORKS
#include "SInetworks.hpp"
#include "SIbouquets.hpp"
#endif
struct SI_section_SDT_header {
unsigned table_id : 8;
#if __BYTE_ORDER == __BIG_ENDIAN
@@ -681,129 +678,4 @@ private:
void parseNVODreferenceDescriptor(const char *buf, SIservice &s);
};
#ifdef UPDATE_NETWORKS
class SIsectionBAT : public SIsection
{
public:
SIsectionBAT(const SIsection &s) : SIsection(s) {
parsed = 0;
parse();
}
// Std-Copy
SIsectionBAT(const SIsectionBAT &s) : SIsection(s) {
bsv = s.bsv;
parsed = s.parsed;
}
// Benutzt den uebergebenen Puffer (sollte mit new char[n] allokiert sein)
SIsectionBAT(unsigned bufLength, char *buf) : SIsection(bufLength, buf) {
parsed = 0;
parse();
}
unsigned short bouquetID(void) const {
return buffer ? ((((struct SI_section_BAT_header *)buffer)->bouquet_id_hi << 8) |
((struct SI_section_BAT_header *)buffer)->bouquet_id_lo) : (unsigned short) -1;
}
struct SI_section_BAT_header const *header(void) const {
return (struct SI_section_BAT_header *)buffer;
}
static void dump(const struct SI_section_BAT_header *header) {
if (!header)
return;
SIsection::dump1((const struct SI_section_header *)header);
printf("bouquet_id: 0x%02x%02x\n", header->bouquet_id_hi, header->bouquet_id_lo);
SIsection::dump2((const struct SI_section_header *)header);
printf("bouquet_descriptors_length %hu\n",
(header->bouquet_descriptors_length_hi << 8) | header->bouquet_descriptors_length_lo);
}
static void dump(const SIsectionBAT &s) {
dump((struct SI_section_BAT_header *)s.buffer);
}
void dump(void) const {
dump((struct SI_section_BAT_header *)buffer);
}
const SIbouquets &bouquets(void) const {
//if(!parsed)
// parse(); -> nicht const
return bsv;
}
protected:
SIbouquets bsv;
int parsed;
void parse(void);
// int parseDescriptors(const char *desc, unsigned len, SIbouquet &s, int section_no, int count, const char *bouquetName);
// void parseBouquetNameDescriptor(const char *buf, SIbouquet &s);
// int parseServiceListDescriptor(const char *buf, SIbouquet &s, int section_no, int count);
};
class SIsectionNIT : public SIsection
{
public:
SIsectionNIT(const SIsection &s) : SIsection(s) {
parsed = 0;
parse();
}
// Std-Copy
SIsectionNIT(const SIsectionNIT &s) : SIsection(s) {
ntw = s.ntw;
parsed = s.parsed;
}
// Benutzt den uebergebenen Puffer (sollte mit new char[n] allokiert sein)
SIsectionNIT(unsigned bufLength, char *buf) : SIsection(bufLength, buf) {
parsed = 0;
parse();
}
unsigned short networkID(void) const {
return buffer ? ((((struct SI_section_NIT_header *)buffer)->network_id_hi << 8) |
((struct SI_section_NIT_header *)buffer)->network_id_lo) : (unsigned short) -1;
}
struct SI_section_NIT_header const *header(void) const {
return (struct SI_section_NIT_header *)buffer;
}
static void dump(const struct SI_section_NIT_header *header) {
if (!header)
return;
SIsection::dump1((const struct SI_section_header *)header);
printf("network_id: 0x%02x%02x\n", header->network_id_hi, header->network_id_lo);
SIsection::dump2((const struct SI_section_header *)header);
printf("network_descriptors_length %hu\n",
(header->network_descriptors_length_hi << 8) | header->network_descriptors_length_lo);
}
static void dump(const SIsectionNIT &s) {
dump((struct SI_section_NIT_header *)s.buffer);
}
void dump(void) const {
dump((struct SI_section_NIT_header *)buffer);
}
const SInetworks &networks(void) const {
//if(!parsed)
// parse(); -> nicht const
return ntw;
}
protected:
SInetworks ntw;
int parsed;
void parse(void);
void parseDescriptors(const char *desc, unsigned len, SInetwork &s);
void copyDeliveryDescriptor(const char *buf, SInetwork &s);
};
#endif
#endif // SISECTIONS_HPP