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

📄 attrvaluepair.h

📁 小型短信网关系统
💻 H
字号:
#ifndef	ATTRVALUEPAIR_H#define	ATTRVALUEPAIR_H#include "def.h"class AttrValuePair{ public:		//construction and destruction	AttrValuePair();	~AttrValuePair();	//String	AttrValuePair(Octet attr, String name, VType valueType, UShort length, String valueString);	//Short	AttrValuePair(Octet attr, String name, VType valueType, UShort length, UShort valueShort);	//Integer	AttrValuePair(Octet attr, String name, VType valueType, UShort length, UInt valueInteger);	//Octet	AttrValuePair(Octet attr, String name, VType valueType, UShort length, Octet valueOctet);	//Octets	AttrValuePair(Octet attr, String name, VType valueType, UShort length, Octets valueOctets);	//get	Octet	getAttr();	VType	getValueType();	String	getNameAttr();	UShort	getLength();	//get value		void	getValue(UShort& value);		void	getValue(UInt& value);		void	getValue(Octet& value);		//here pointer "unsigned char*" can transmit the address of value, so		//do not need Octets&	UShort	getValue(Octets value);		UShort	getValue(String& value);		 private:	Octet	_attr;	String	_nameAttr;	VType	_valueType;	UShort	_length;	UShort	_valueShort;	UInt	_valueInteger;	String	_valueString;	Octet	_valueOctet;	Octets	_valueOctets;	};#endif

⌨️ 快捷键说明

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