DtvKit_ATSC3.0
Loading...
Searching...
No Matches
atsc_core_common_serviceguide.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
18#ifndef __ATSC_CORE_SERVICE_GUIDE_H__
19#define __ATSC_CORE_SERVICE_GUIDE_H__
20
21#include <list>
22#include <map>
23
26#include "atsc_core_utils_tinyxml2.h"
27#include "atsc_core_atsc1.h"
28
37
38public:
46
53 std::string MakeGuide( void );
54
61 int32_t GetServiceCount(int32_t iDemod, int32_t iCh);
62
69 void Clear( void );
70
77 std::string MakeServiceXml( void );
78
85 int32_t UpdateAT3Guide(int32_t iCh, int32_t iGroup_id, int32_t iGroup_count_minus1, int32_t iVer, sServiceListTable_t slt);
86
93 eATSCResult_t UpdateATSC1Guide(int32_t iId, int32_t iCh, sMpeg2Tvct_t stTvct);
94
102
109 void MakeTvctXml(tinyxml2::XMLDocument *doc, tinyxml2::XMLElement *root);
110
117 int32_t MakeSLTJson( void );
118
119 std::string mServicesXml;
127 std::string GetServiceXml( void );
128
129 std::map<int32_t, std::map<int32_t, sServiceListTable_t>> mAT3Guide;
130 std::map<int32_t, sMpeg2Tvct_t> mAT1Guide;
132private:
139 void Load( void );
140};
141#endif /* __ATSC_CORE_SERVICE_GUIDE_H__ */
eATSCResult_t
Definition atsc_types.h:203
Definition atsc_core_common_serviceguide.h:36
eATSCResult_t UpdateATSC1Guide(int32_t iId, int32_t iCh, sMpeg2Tvct_t stTvct)
To update the mAT1Guide information based on services.
std::map< int32_t, std::map< int32_t, sServiceListTable_t > > mAT3Guide
Definition atsc_core_common_serviceguide.h:129
int32_t MakeSLTJson(void)
To make the Service list using JSON file format in the path /var/www/html/guide/slt....
std::string mServicesXml
Definition atsc_core_common_serviceguide.h:119
CServiceGuide()
Called the Load() API for create the file to save the guide info in the GUIDE_PATH.
std::string MakeServiceXml(void)
To create the xml for make the Service list.
void Clear(void)
Clear the DVB,AT3 guide information.
void MakeTvctXml(tinyxml2::XMLDocument *doc, tinyxml2::XMLElement *root)
To update the XML format for DVB/ATSC1 using TVCT information.
eATSCResult_t UpdateServicesInfo(void)
To update the service in JSON/XML format for user reference.
std::string MakeGuide(void)
By using JSON file format, creating the guide for both DVB,AT3 guide.
std::map< int32_t, sMpeg2Tvct_t > mAT1Guide
Definition atsc_core_common_serviceguide.h:130
int32_t GetServiceCount(int32_t iDemod, int32_t iCh)
To get the service count for making guide.
std::string GetServiceXml(void)
To get the Service list(mServicesXml) which is updated in UpdateServicesInfo().
int32_t UpdateAT3Guide(int32_t iCh, int32_t iGroup_id, int32_t iGroup_count_minus1, int32_t iVer, sServiceListTable_t slt)
To make the guide using service list via UpdateServicesInfo() by using JSON/XML format.
Definition atsc_types.h:358
Definition atsc_types.h:651