53 #include "IEventInfo.h"
55 #include "util/functions.h"
56 using namespace ::br::pucrio::telemidia::util;
58 #include "system/compat/SystemCompat.h"
59 using namespace ::br::pucrio::telemidia::ginga::core::system::compat;
61 #include "ShortEventDescriptor.h"
62 #include "ExtendedEventDescriptor.h"
63 #include "ComponentDescriptor.h"
64 #include "ContentDescriptor.h"
65 #include "DigitalCCDescriptor.h"
66 #include "AudioComponentDescriptor.h"
67 #include "DataContentDescriptor.h"
68 #include "SeriesDescriptor.h"
69 #include "ParentalRatingDescriptor.h"
70 #include "ContentAvailabilityDescriptor.h"
71 using namespace ::br::pucrio::telemidia::ginga::core::tsparser::si::descriptors;
73 #include "IMpegDescriptor.h"
74 using namespace ::br::pucrio::telemidia::ginga::core::tsparser;
93 unsigned short eventId;
94 char startTimeEncoded[5];
95 char durationEncoded[3];
96 unsigned char runningStatus;
97 unsigned char freeCAMode;
98 unsigned short descriptorsLoopLength;
99 vector<IMpegDescriptor*>* descriptors;
100 map<unsigned char, IMpegDescriptor*>* desc;
111 void setStartTime(
char* date);
112 void setDuration(
char* dur);
113 struct tm calcEndTime(struct tm start, struct tm end);
115 time_t getStartTimeSecs();
116 time_t getEndTimeSecs();
117 unsigned int getDurationSecs();
119 virtual string getStartTimeSecsStr();
120 virtual string getEndTimeSecsStr();
121 virtual string getDurationSecsStr();
123 struct tm getStartTime();
124 struct tm getDuration();
125 struct tm getEndTime();
127 string getStartTimeEncoded();
128 string getDurationEncoded();
129 string getStartTimeStr();
130 string getEndTimeStr();
131 string getDurationStr();
133 unsigned short getLength();
134 unsigned short getEventId();
135 string getRunningStatus();
136 string getRunningStatusDescription();
137 unsigned char getFreeCAMode();
138 unsigned short getDescriptorsLoopLength();
140 vector<IMpegDescriptor*>* getDescriptors();
141 map<unsigned char, IMpegDescriptor*>* getDescriptorsMap();
144 size_t process(
char* data,
size_t pos);
147 int convertDecimaltoBCD(
int dec);
148 int convertBCDtoDecimal(
int bcd);
149 struct tm convertMJDtoUTC(unsigned int mjd);
150 int convertUTCtoMJD (
int day,
int month,
int year);
153 string getFormatNumStr(
int un);
Definition: IEventInfo.h:68
Definition: EventInfo.h:91