ATSC3  24.10.0
Public Member Functions | Public Attributes | List of all members
CServiceGuide Class Reference

#include <atsc_core_common_serviceguide.h>

Public Member Functions

 CServiceGuide ()
 Called the Load() API for create the file to save the guide info in the GUIDE_PATH. More...
 
std::string MakeGuide (void)
 By using JSON file format, creating the guide for both DVB,AT3 guide. More...
 
int32_t GetServiceCount (int32_t iDemod, int32_t iCh)
 To get the service count for making guide. More...
 
void Clear (void)
 Clear the DVB,AT3 guide information. More...
 
std::string MakeServiceXml (void)
 To create the xml for make the Service list. More...
 
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. More...
 
eATSCResult_t UpdateATSC1Guide (int32_t iId, int32_t iCh, sMpeg2Tvct_t stTvct)
 To update the mAT1Guide information based on services. More...
 
eATSCResult_t UpdateServicesInfo (void)
 To update the service in JSON/XML format for user reference. More...
 
void MakeTvctXml (tinyxml2::XMLDocument *doc, tinyxml2::XMLElement *root)
 To update the XML format for DVB/ATSC1 using TVCT information. More...
 
int32_t MakeSLTJson (void)
 To make the Service list using JSON file format in the path /var/www/html/guide/slt.json. More...
 
std::string GetServiceXml (void)
 To get the Service list(mServicesXml) which is updated in UpdateServicesInfo(). More...
 

Public Attributes

std::string mServicesXml
 
std::map< int32_t, std::map< int32_t, sServiceListTable_t > > mAT3Guide
 
std::map< int32_t, sMpeg2Tvct_tmAT1Guide
 

Detailed Description

CServiceGuide

Constructor & Destructor Documentation

◆ CServiceGuide()

CServiceGuide::CServiceGuide ( )

Called the Load() API for create the file to save the guide info in the GUIDE_PATH.

Parameters
NA
Return values
NA

Member Function Documentation

◆ Clear()

void CServiceGuide::Clear ( void  )

Clear the DVB,AT3 guide information.

Parameters
none
Return values
void

◆ GetServiceCount()

int32_t CServiceGuide::GetServiceCount ( int32_t  iDemod,
int32_t  iCh 
)

To get the service count for making guide.

Parameters
iDemod,iCh
Return values
int32_t(eATSCResult_t)

◆ GetServiceXml()

std::string CServiceGuide::GetServiceXml ( void  )

To get the Service list(mServicesXml) which is updated in UpdateServicesInfo().

Parameters
none
Return values
std::string

◆ MakeGuide()

std::string CServiceGuide::MakeGuide ( void  )

By using JSON file format, creating the guide for both DVB,AT3 guide.

Parameters
none
Return values
std::string

◆ MakeServiceXml()

std::string CServiceGuide::MakeServiceXml ( void  )

To create the xml for make the Service list.

Parameters
none
Return values
std::string

◆ MakeSLTJson()

int32_t CServiceGuide::MakeSLTJson ( void  )

To make the Service list using JSON file format in the path /var/www/html/guide/slt.json.

Parameters
none
Return values
int32_t(eATSCResult_t)

◆ MakeTvctXml()

void CServiceGuide::MakeTvctXml ( tinyxml2::XMLDocument doc,
tinyxml2::XMLElement root 
)

To update the XML format for DVB/ATSC1 using TVCT information.

Parameters
tinyxml2::XMLDocument*doc , tinyxml2::XMLElement *root
Return values
void

◆ UpdateAT3Guide()

int32_t CServiceGuide::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.

Parameters
iCh,iGroup_id,iGroup_count_minus1,iVer,sServiceListTable_tslt
Return values
int32_t

◆ UpdateATSC1Guide()

eATSCResult_t CServiceGuide::UpdateATSC1Guide ( int32_t  iId,
int32_t  iCh,
sMpeg2Tvct_t  stTvct 
)

To update the mAT1Guide information based on services.

Parameters
iId,iCh,sMpeg2Tvct_ttvct
Return values
eATSCResult_t

◆ UpdateServicesInfo()

eATSCResult_t CServiceGuide::UpdateServicesInfo ( void  )

To update the service in JSON/XML format for user reference.

Parameters
none
Return values
eATSCResult_t

Member Data Documentation

◆ mAT1Guide

std::map<int32_t, sMpeg2Tvct_t> CServiceGuide::mAT1Guide

mAT1Guide

◆ mAT3Guide

std::map<int32_t, std::map<int32_t, sServiceListTable_t> > CServiceGuide::mAT3Guide

mAT3Guide

◆ mServicesXml

std::string CServiceGuide::mServicesXml

mServicesXml


The documentation for this class was generated from the following files: