1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
// XShortCompCtrl.cpp: Body of the XShortCompCtrl class.
//
//////////////////////////////////////////////////////////////////////
#include "XShortCompCtrl.h"
#include <stdio.h>
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
XShortCompCtrl::XShortCompCtrl()
{
}
XShortCompCtrl::~XShortCompCtrl()
{
}
void XShortCompCtrl::OnPacketReceived(CigiBasePacket *Packet)
{
CigiShortCompCtrlV3 *InPckt = (CigiShortCompCtrlV3 *)Packet;
bool ok = true;
printf("===> ShortCompCtrl <===\n");
printf("CompID ==> %d\n",InPckt->GetCompID());
printf("InstanceID ==> %d\n",InPckt->GetInstanceID());
printf("CompClassV3 ==> %d\n",InPckt->GetCompClassV3());
printf("CompState ==> %d\n",InPckt->GetCompState());
printf("CompData ==> %d\n",InPckt->GetLongCompData(0));
printf("CompData ==> %d\n",InPckt->GetLongCompData(1));
}
|