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

📄 nodeproperty.h

📁 模拟P2P各种网络环境的,适合新手们的学习,不错的源码.
💻 H
字号:
#ifndef _NodeProperty_h
#define _NodeProperty_h

#define INV_NODE -1
#define STUB 0
#define TRANSIT 1

#include "Common.h"

class NodeProperty
{
private:
	int mType; /* transit node or stub node; */
	
	unsigned long mXCoord;
	unsigned long mYCoord;
	
	string mLable;
	string mTraffic;
public:
	NodeProperty();
	void setType(int type);
	int getType() const;
	void setX(unsigned long x);
	unsigned long getX() const;
	void setY(unsigned long y);
	unsigned long getY() const;
	void setLable(string lable);
	string getLable() const;
	void setTraffic(string traffic);
	string getTraffic() const;
};

#endif

⌨️ 快捷键说明

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