📄 rtdxevent.h
字号:
// RtdxEvent.h: interface for the CRtdxEvent class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_RTDXEVENT_H__69BFBEC2_CF8C_11D1_A964_006097A6A260__INCLUDED_)
#define AFX_RTDXEVENT_H__69BFBEC2_CF8C_11D1_A964_006097A6A260__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// ########## RTDX(TM) ##########
#import "..\..\..\..\cc\bin\rtdxint.dll"
using namespace RTDXINTLib;
// ########## RTDX(TM) ##########
#include <iostream.h>
#include <stdio.h>
#include <fstream> // For fstream
#include "BoardProcessor.h"
// Event Class
class CRtdxEvent
{
public:
// Event Structure
typedef struct RTDX_Event_Attributes
{
char name[80];
long id;
}EVENTATTRIB;
unsigned int GetNumOfEvents();
void SetNumOfEvents(char *NumOfEvents);
long ReleaseRTDXObject();
long ProbeChannel();
HRESULT GetRTDXObject(char *channel_name);
void NameEvents();
unsigned int GetTargetIntSize();
void SetTargetIntSize(char *TargetIntSize);
CRtdxEvent();
virtual ~CRtdxEvent();
private:
void ProcessMessage(long msgid);
std::fstream m_logfile; // Logfile variable
unsigned int m_integer_size; // Target integer size
unsigned int m_total_events; // Total number of channels
BOOL m_FOUND_MSGID; // Message ID found flag
EVENTATTRIB *m_pEvent; // Pointer to event attributes
IRtdxExpPtr m_pRtdx; // Pointer to Rtdx Interface
};
#endif // !defined(AFX_RTDXEVENT_H__69BFBEC2_CF8C_11D1_A964_006097A6A260__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -