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

📄 dataglobal.cpp

📁 机械手IPC控制器伺服运动程序
💻 CPP
字号:
// DataGlobal.cpp: implementation of the CDataGlobal class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "alfa.h"
#include "DataGlobal.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
IMPLEMENT_SERIAL(CDataGlobal, CObject, 1)
CDataGlobal::CDataGlobal()
{

}

CDataGlobal::~CDataGlobal()
{

}

void CDataGlobal::Serialize(CArchive &ar)
{
  int i;
  if(ar.IsLoading()) {
	  ar >> m_num;
	  ar >> m_Valid;
	  ar >> m_MoldCount;
	  ar >> m_MoldTotal;
	  ar >> m_MoldSet;   
	  ar >> m_MoldStack1;
	  ar >> m_MoldStack2;
	  ar >> m_Reserved1;
	  ar >> m_Reserved2;
	  ar >> m_Reserved3;
	  ar >> m_LogIndex;
      for(i=0; i<50; i++) {
	      ar >> m_LogTime[i];
	      ar >> m_LogID[i];
	  }
  }
  else {
	  ar << m_num;
	  ar << m_Valid;
	  ar << m_MoldCount;
	  ar << m_MoldTotal;
	  ar << m_MoldSet;   
	  ar << m_MoldStack1;
	  ar << m_MoldStack2;
	  ar << m_Reserved1;
	  ar << m_Reserved2;
	  ar << m_Reserved3;
	  ar << m_LogIndex;
      for(i=0; i<50; i++) {
	      ar << m_LogTime[i];
	      ar << m_LogID[i];
	  }
  }
}

⌨️ 快捷键说明

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