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

📄 epgdec.h

📁 drm 支程式編寫 for radio
💻 H
字号:
/******************************************************************************\
 * British Broadcasting Corporation
 * Copyright (c) 2006
 *
 * Author(s):
 *	Julian Cable
 *
 * Description:
 *	ETSI DAB/DRM Electronic Programme Guide XML Decompressor
 *
 *
 ******************************************************************************
 *
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation; either version 2 of the License, or (at your option) any later 
 * version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT 
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 
 * details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc., 
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 *
\******************************************************************************/

#ifndef _EPGDEC_H
#define _EPGDEC_H
#include "../../GlobalDefinitions.h"
#include <qdom.h>
#include <vector>
using namespace std;

class tag_length_value
{
public:
       
      tag_length_value(const _BYTE* p);
      
      bool is_cdata() const { return tag == 1; }
      bool is_epg() const { return tag == 2; }
      bool is_service_information() const { return tag == 3; }
      bool is_string_token_table() const { return tag == 4; }
      bool is_default_id() const { return tag == 5; }
      bool is_child_element() const { return (5<tag) && (tag<0x80); }
      bool is_attribute() const { return tag>=0x80; }

      uint8_t tag;
      size_t length;
      _BYTE* value;
};

class CEPGDecoder
{
  public:
    CEPGDecoder ()
    {
    }
    void decode (const vector<_BYTE>&);

    QDomDocument doc;

};
#endif

⌨️ 快捷键说明

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