tag.h
来自「一个可以加载图片作为下拉菜单的symbian手机示例」· C头文件 代码 · 共 56 行
H
56 行
#ifndef TAG_H_
#define TAG_H_
//#include <Common.h>
#include <e32std.h>
class TTagAttribute
{
public:
TTagAttribute();
TTagAttribute(const TDesC& aName,const TDesC& aValue);
TTagAttribute(const TDesC& aName,const TInt aValue);
~TTagAttribute();
//
TPtrC iAttributeName;
TPtrC iAttributeValue;
TInt iIntAttrValue;
};
class TTag
{
public:
TTag();
virtual ~TTag();
void SetTagName(const TDesC& aTagName);
void SetTagValue(const TDesC& aTagValue);
void SetTagIntValue(const TInt aTagValue);
TDesC & GetTagName();
TDesC & GetTagValue();
TInt GetIntValue();
//通过指定的属性名称取其属性值
TPtrC GetTagAttrValue(const TDesC& aAttrName);
//通过指定的属性名称取其数字值
TInt GetTagAttrIntValue(const TDesC& aAttrName);
void Reset();
void AppendAttribule(const TDesC& aName,const TDesC& aValue);
void AppendAttribule(const TDesC& aName,const TInt aValue);
RArray<TTagAttribute> GetAttributeList();
private:
TPtrC iTagName;
TPtrC iTagVale;
TInt iIntTagValue;
RArray<TTagAttribute> attributeList;
};
#endif /*TAG_H_*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?