50 #ifndef TRANSPORTSECTION_H_
51 #define TRANSPORTSECTION_H_
53 #include "system/compat/SystemCompat.h"
54 using namespace ::br::pucrio::telemidia::ginga::core::system::compat;
56 #include "util/functions.h"
57 using namespace ::br::pucrio::telemidia::util;
59 #include "ITransportSection.h"
62 #define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0]))
80 bool sectionSyntaxIndicator;
87 unsigned int sectionLength;
94 unsigned int idExtention;
96 unsigned int versionNumber;
97 bool currentNextIndicator;
98 unsigned int sectionNumber;
99 unsigned int lastSectionNumber;
104 unsigned int currentSize;
118 void setESId(
unsigned int id);
119 unsigned int getESId();
120 void addData(
char* bytes,
unsigned int size);
123 void setSectionName();
124 bool create(
char *sectionBytes,
unsigned int size);
125 bool constructionFailed;
128 string getSectionName();
129 unsigned int getTableId();
130 bool getSectionSyntaxIndicator();
131 unsigned int getSectionLength();
132 unsigned int getCurrentSize();
133 unsigned int getExtensionId();
134 unsigned int getVersionNumber();
135 bool getCurrentNextIndicator();
136 unsigned int getSectionNumber();
137 unsigned int getLastSectionNumber();
139 unsigned int getPayload(
char** buffer);
140 unsigned int getPayloadSize();
141 bool isConsolidated();
142 bool isConstructionFailed();
144 static unsigned int crc32(
char *data,
unsigned int len);
Definition: TransportSection.h:72
Definition: ITransportSection.h:62