?? eb_xmlparser.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 + -