msgcenter.h
来自「实现了无线传感器网络中的一个路由协议算法。」· C头文件 代码 · 共 48 行
H
48 行
// MsgCenter.h: interface for the CMsgCenter class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MSGCENTER_H__BE963058_3748_490F_A82E_5AA6013BE5D3__INCLUDED_)
#define AFX_MSGCENTER_H__BE963058_3748_490F_A82E_5AA6013BE5D3__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//#include "GlobalClass.h"
#include "Msg.h"
#include "Node.h"
#include "Sink.h"
class CNodeStrain
{
public:
CNode *pNode;
CNodeStrain *pNext;
public:
CNodeStrain() {pNode=NULL;pNext=NULL;}
~CNodeStrain(){}
};
class CMsgCenter
{
public:
CNodeStrain * **pNodeStrain;
CRITICAL_SECTION **Locked;
public:
void DeleteSinkStrain(CSink *pSink);
void DeleteNodeStrain(CNode *pNode);
void PrintAreaNode(int Ax,int Ay);
void InsertNodeStrain(CNode *pNode,int Ax,int Ay);
void InsertNodeStrain(CNode *pNode,CPosition Area);
void SendMsg(CMsg *pMsg,int NodeId=0);
void SendMsg(int Dx,int Dy,int Sx,int Sy,int Type,unsigned char *Data=NULL,int NodeId=0);
CMsgCenter();
virtual ~CMsgCenter();
};
#endif // !defined(AFX_MSGCENTER_H__BE963058_3748_490F_A82E_5AA6013BE5D3__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?