cmdbatdoc.h

来自「CAN__组建现场总线系统设计技术(光盘)」· C头文件 代码 · 共 64 行

H
64
字号
#if !defined(AFX_CMDBATDOC_H__4FB51F25_02C2_11D7_A0EF_5254AB179C1B__INCLUDED_)
#define AFX_CMDBATDOC_H__4FB51F25_02C2_11D7_A0EF_5254AB179C1B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CmdBatDoc.h : header file
//
#include <afxtempl.h>
/////////////////////////////////////////////////////////////////////////////
// CCmdBatDoc document
#include "sja\\sjamacro.h"
struct Cmd
{
	UINT ticks;//初始延迟时间片数目
	UINT remain;//剩余时间片数
	BYTE cmdframe[FRAMELEN];//存放待发送的帧
};
class CCmdBatDoc : public CDocument
{
protected:
	CCmdBatDoc();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CCmdBatDoc)

// Attributes
public:
	CArray<Cmd,Cmd> m_cmd_buf;
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCmdBatDoc)
	public:
	virtual void Serialize(CArchive& ar);   // overridden for document i/o
	protected:
	virtual BOOL OnNewDocument();
	//}}AFX_VIRTUAL

// Implementation
public:
	int m_cmdindex;
	UINT m_LoopCount;
	virtual ~CCmdBatDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
protected:
	//{{AFX_MSG(CCmdBatDoc)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

	friend class CCmdBatView;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CMDBATDOC_H__4FB51F25_02C2_11D7_A0EF_5254AB179C1B__INCLUDED_)

⌨️ 快捷键说明

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