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

📄 eb_xmltag.h

📁 这是法国Kaleido公司提供了一个手机mmi设计平台
💻 H
字号:
/***************************************************************************
EB_XMLTag.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
**************************************************************

- A hash value cannot be 0. In this case, it must be changed into 1.

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


*/


#ifndef __EB_XMLTAG__
#define __EB_XMLTAG__


#include "EB_Utils.h"
#include "EB_Defs.h"
#include "EB_XMLParser.h"

class XMLTag ;
typedef XMLTag* pXMLTag ;

class XMLTag {
public :
private:
	// name of the tag
	pchar beginName ;
	// name of the name space
	pchar beginNameSpace ;
	//
	pXMLTag* children ; // 
	// 
	int childrenTabLen ; // 
	// 
	int childrenCount ; // 
	// Attributes' names
	pchar* beginAttributeNames  ; // 
	// Attributes' values
	pchar* beginAttributeValues ; // 
	// 
	int attributeTabLen;
	// 
	int attributeCount ; // 
	// 
	int closingTag ; // 0: opening, 1: self-closing, (2:closing => not created)

public:
	DEFINE_NEW(XMLTag);
	DEFINE_DELETE(XMLTag);
	/**
	*/
	XMLTag(pchar sns, pchar sn) ;
	~XMLTag();

	void addChild(pXMLTag o) ;

	unsigned int getChildrenCount() { return childrenCount ; }

	pXMLTag getChild(int num) 
	{ return children[num] ;}

	pchar getName() { return beginName; }

	void addAttribute(pchar sn,pchar sv) ;

	void setClosingTag(unsigned int newVal)
	{ closingTag = newVal ; }

	unsigned int getClosingTag()
	{ return closingTag; }

	int getAttributeIdx(pchar name) ;
	pchar getAttributeValue(pchar name) ;
	int getAttributeValue(pchar name,int def) ;

#ifdef DEV_DEBUG
	void dump(pchar prefix) ;
#endif // def DEV_DEBUG
} ;


#endif // ndef __EB_XMLTAG__

⌨️ 快捷键说明

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