📄 tag.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -