📄 attrvaluepair.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 + -