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

📄 eb_xmlparser.h

📁 这是法国Kaleido公司提供了一个手机mmi设计平台
💻 H
字号:
/***************************************************************************
EB_XMLParser.h  -  
-------------------
begin                : Tue Mar 3 2004
copyright            : (C) 2004 by DigitalAirways
email                : info@digitalairways.com
***************************************************************************/

/*
* Copyright (c) 2000-2004 DigitalAirways, sarl. All Rights Reserved.
*
* This software is the confidential and proprietary information of
* DigitalAirways, sarl. ("Confidential Information").  You shall not
* disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into
* with DigitalAirways.
* A copy of this license is included in the licence.txt file included
* in this software package.
*/

/*
**************************************************************
* TODO
**************************************************************

- 



**************************************************************
* HISTORY
**************************************************************

- 
*/

#ifndef __EB_XMLPARSER__
#define __EB_XMLPARSER__

#include "EB_Defs.h"
#include "EB_XMLTag.h"

class XMLTag ;
typedef XMLTag* pXMLTag ;

class XMLParser {
private:
	//
	pchar currentPage ;
	//
	pchar endPage ;
	//
	pchar currentScan ;
	//	the root tag
	pXMLTag root ;

public:

	DEFINE_NEW(XMLParser);
	DEFINE_DELETE(XMLParser);
	/**
	* @param parseHeaders true if the parser must parse the headers, false
	* otherwise
	* @param html true if it must be parsed as html tags, false otherwise.
	*/
	XMLParser(pchar newCurrentPage) ;

	~XMLParser() ;

	/**
	* 
	* @see ParserEventHandler#startDocument(String)
	*/
	pXMLTag startDocument(pchar sToFind) ;

	void parseSubTags(pXMLTag father) ;

	/**
	*/
	pchar setCurrentScan(pchar newCurrentScan) { return currentScan=newCurrentScan ; }

	/**
	*/
	pchar stillToScan()
	{
		if(currentScan<endPage) return currentScan ;
		return 0 ;
	}

	/**
	*/
	pchar scanUpTo(char toFind) ;

	/**
	*/
	pchar stripSeparators() ;

	/**
	*/
	pchar setCurrentScanAndStripSeparators(pchar newCurrentScan) ;

	/**
	* This function parses the source find a XMLTag.
	* If it exists, it is created with its attributes and added
	* to the list managed by the parser.
	* It returns the XMLTag that has been successfully added,
	* or 0 if there is no more tag to find...
	*/
	pXMLTag parseTag() ;
} ;


#endif // ndef __EB_XMLPARSER__

⌨️ 快捷键说明

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