⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xmlencapsulate.h

📁 生成关于EPG的XML文档工具
💻 H
字号:
#ifndef XML_ENCAPSULATE_H
#define XML_ENCAPSULATE_H

#include "XmlEPG.h"

HANDLE      CLASSInit(const char* fileName);
void        CLASSDestroy(HANDLE hobj);
XML_ERROR_T XmlDocInit(HANDLE hobj);
XML_ERROR_T XmlWriteFile(HANDLE hobj, const char* fileName = NULL);
XML_ERROR_T XmlLoad(HANDLE hobj, const char* fileName);

// some basic methods for XML files

// Get the values of attributes
XML_ERROR_T XmlGETi(HANDLE hobj, const char* labelname, const char* attriname, int* iVal);
XML_ERROR_T XmlGETs(HANDLE hobj, const char* labelname, const char* attriname, char* sVal, int lenth);

// Modify the values of attributes
XML_ERROR_T XmlMODi(HANDLE hobj, const char* labelname, const char* attriname, int iVal);
XML_ERROR_T XmlMODs(HANDLE hobj, const char* labelname, const char* attriname, char* sVal);
XML_ERROR_T XmlGETAll(HANDLE hobj, const char* labelname, EPGPROGRAM* Pro);
XML_ERROR_T XmlGETDigChan(HANDLE hobj, const char* labelname, DIGITAL_PGROGRAM* DigChan);
XML_ERROR_T XmlGETFastList(HANDLE hobj, int* DigAdd, int len, int type);

// Delete the childrens of one node
XML_ERROR_T XmlDEL(HANDLE hobj, const char* labelname);

// Add one child of one node
XML_ERROR_T XmlADD_NET_INFO(HANDLE hobj, NET_INFO info, const char* labelname, const char* disname);
XML_ERROR_T XmlADD_PHYSICAL_INFO(HANDLE hobj, PHYSICAL_CHANNAL info, const char* labelname, const char* disname);
XML_ERROR_T XmlADD_DIGITAL_INFO(HANDLE hobj, DIGITAL_PGROGRAM info, const char* labelname, const char* disname);
XML_ERROR_T XmlADD_EPG_PROGRAM(HANDLE hobj, EPGPROGRAM info, const char* labelname, const char* disname);
XML_ERROR_T XmlADD_BOOKED_EVENT(HANDLE hobj, BOOKED_EVENT info, const char* labelname, const char* disname);
XML_ERROR_T XmlADD_FASTLIST(HANDLE hobj, ProgramIndex info, const char* disname);
XML_ERROR_T XmlADD_CURPRG_INFO(HANDLE hobj, Cur_Prg_Info info, const char* disname);

// Count the number and the values of the children
XML_ERROR_T XmlCOUNT(HANDLE hobj, const char* labelname, int* count, const char** nametag);

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -