sink.h
来自「实现了无线传感器网络中的一个路由协议算法。」· C头文件 代码 · 共 64 行
H
64 行
#if !defined(AFX_SINK_H__5E788B05_32A4_4EAA_95FB_FACD94A3E716__INCLUDED_)
#define AFX_SINK_H__5E788B05_32A4_4EAA_95FB_FACD94A3E716__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Sink.h : header file
//
#include "Msg.h"
#include "MsgBuff.h"
/////////////////////////////////////////////////////////////////////////////
// CSink thread
class CSink : public CWinThread
{
DECLARE_DYNCREATE(CSink)
public:
CSink(); // protected constructor used by dynamic creation
// Attributes
public:
CMsgBuff MsgBuff;
//CMsgStrain *pHead, *pTail;
CRITICAL_SECTION Locked;
public:
int SinkId;
static BOOL SinkEnd;
// Operations
public:
static UINT SinkWorkProc(LPVOID pParam);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSink)
public:
virtual BOOL InitInstance();
virtual int ExitInstance();
//}}AFX_VIRTUAL
// Implementation
public:
void Action();
void DesposeMessage(CMsg *pMsg);
void SetNodeYPos();
void SetNodeXPos();
virtual ~CSink();
// Generated message map functions
//{{AFX_MSG(CSink)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SINK_H__5E788B05_32A4_4EAA_95FB_FACD94A3E716__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?