bmssnmpnode.h

来自「利用Windows自带的api采用snmp协议读取网络设备运行状态。」· C头文件 代码 · 共 38 行

H
38
字号
#pragma once
#include <string>

class BmsSnmpNode
{
public:	
	BmsSnmpNode(void);
	virtual ~BmsSnmpNode(void);
	typedef enum{data,node} BmsSnmpNodeType;
public:
	std::string getName() const { return name; }
	void setName(std::string val) { name = val; }

	std::string getId() const { return id; }
	void setId(std::string val) { id = val; }

	std::string getValues() const { return values; }
	void setValues(std::string val) { values = val; }

	std::string getOid() const { return oid; }
	void setOid(std::string val) { oid = val; }

	int getType() const { return type; }
	void setType(int val) { type = val; }


private:
	::std::string name;//节点名称

	::std::string id;//节点id

	::std::string values;//节点值

	::std::string oid;//OID

	int type;//类型 0 node 1 data
};

⌨️ 快捷键说明

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