nodeproperty.h

来自「模拟P2P各种网络环境的,适合新手们的学习,不错的源码.」· C头文件 代码 · 共 36 行

H
36
字号
#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 + =
减小字号Ctrl + -
显示快捷键?