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

📄 bmssnmpnode.h

📁 利用Windows自带的api采用snmp协议读取网络设备运行状态。
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -