DtvKit_ATSC3.0
Loading...
Searching...
No Matches
atsc_core_atsc3_lls.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3 *
4 * This file is part of a DTVKit Software Component
5 * You are permitted to copy, modify or distribute this file subject to the terms
6 * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
7 *
8 * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
9 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
10 * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
11 *
12 * If you or your organisation is not a member of DTVKit then you have access
13 * to this source code outside of the terms of the licence agreement
14 * and you are expected to delete this and any associated files immediately.
15 * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
16 *******************************************************************************/
17#pragma once
18#include <string>
19#include <stdio.h>
20#include <zlib.h>
21#include <list>
22#include <string.h>
23#include <map>
24#include <queue>
25#include <unistd.h>
26#include <string>
27#include <sys/types.h>
28#include <netinet/in.h>
29#include <net/if.h>
30#include <arpa/inet.h>
31#include <sys/socket.h>
32
33#include "atsc_core_common.h"
35
51
55typedef struct{
56 int32_t iBsid;
57 int32_t iSvcCnt;
58 int32_t iVer;
59 std::string sSltXml;
61
66{
67public:
68
75 CLowLevelSignaling(char *pDefault_path)
76 {
77 memset(mDirectory, 0x00, sizeof(mDirectory));
78 memcpy(mDirectory, pDefault_path, strlen(pDefault_path));
79 }
80
87 eLlsResult_t ParseSlt(int32_t iCh, uint8_t* pData, int32_t iDataLength, CServiceGuide* guide);
88
96
97 std::map<int32_t, std::string>mAeatMap;
105 std::string GetAeat( void );
106
113 int32_t ParseIp(const uint8_t* pData, sIpHeader_t* pIp);
114
121 std::string GetSystemTime();
122
130
137 std::string GetOnScreenMsgNotify();
138
139private:
140 std::queue<sServiceListTable_t> mRemoveService;
141 std::string mAeat;
142 int8_t mDirectory[256];
143 sServiceListTable_t mSltTable;
144 std::string mServicesXml;
146 std::string mOnsMessage;
147 std::string mSystemTime;
148 sSystemTime_t stSystemTime;
149 char sSystemDateTime[64];
150 sRrtDataTable_t stRrtData;
151};
152
eLlsResult_t
Definition atsc_core_atsc3_lls.h:43
@ eLlsResultOk
Definition atsc_core_atsc3_lls.h:44
@ eLlsResultNewSltService
Definition atsc_core_atsc3_lls.h:45
@ eLlsResultVersionUpSlt
Definition atsc_core_atsc3_lls.h:46
@ eLlsResultNewAeat
Definition atsc_core_atsc3_lls.h:49
@ eLlsResultRemoveSltService
Definition atsc_core_atsc3_lls.h:47
@ eLlsResultOldSltService
Definition atsc_core_atsc3_lls.h:48
Definition atsc_core_atsc3_lls.h:66
sRrtDataTable_t GetRrt()
To get the rating regional information.
std::map< int32_t, std::string > mAeatMap
Definition atsc_core_atsc3_lls.h:97
sServiceListTable_t GetSlt(void)
To get the Service List Table information.
CLowLevelSignaling(char *pDefault_path)
To copied the default path to directory path.
Definition atsc_core_atsc3_lls.h:75
std::string GetOnScreenMsgNotify()
To get the on-screen message notification.
std::string GetSystemTime()
To get read system time.
std::string GetAeat(void)
To get the Advanced Emergency Alerting information.
eLlsResult_t ParseSlt(int32_t iCh, uint8_t *pData, int32_t iDataLength, CServiceGuide *guide)
To parse the Service List Table and Update for the Guide information via UpdateAT3Guide().
int32_t ParseIp(const uint8_t *pData, sIpHeader_t *pIp)
To parse the IP header information.
Definition atsc_core_common_serviceguide.h:36
Definition atsc_core_common.h:41
Definition atsc_types.h:507
Definition atsc_types.h:651
Definition atsc_core_atsc3_lls.h:55
int32_t iVer
Definition atsc_core_atsc3_lls.h:58
std::string sSltXml
Definition atsc_core_atsc3_lls.h:59
int32_t iSvcCnt
Definition atsc_core_atsc3_lls.h:57
int32_t iBsid
Definition atsc_core_atsc3_lls.h:56
Definition atsc_types.h:514