File: XCompCtrl.cpp

package info (click to toggle)
cigi-ccl 3.3.3a%2Bsvn818-10
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 7,332 kB
  • sloc: cpp: 62,566; makefile: 541; ruby: 400; ansic: 313; sh: 68
file content (46 lines) | stat: -rw-r--r-- 1,178 bytes parent folder | download | duplicates (2)
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
40
41
42
43
44
45
46
// XCompCtrl.cpp: Body of the XCompCtrl class.
//
//////////////////////////////////////////////////////////////////////

#include "XCompCtrl.h"

#include "CigiExceptions.h"

#include <stdio.h>

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

XCompCtrl::XCompCtrl()
{

}

XCompCtrl::~XCompCtrl()
{

}


void XCompCtrl::OnPacketReceived(CigiBasePacket *Packet)
{
   CigiCompCtrlV3 *InPckt = (CigiCompCtrlV3 *)Packet;

   bool ok = true;

   printf("===> CompCtrl <===\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));
   printf("CompData ==> %d\n",InPckt->GetLongCompData(2));
   printf("CompData ==> %d\n",InPckt->GetLongCompData(3));
   printf("CompData ==> %d\n",InPckt->GetLongCompData(4));
   printf("CompData ==> %d\n",InPckt->GetLongCompData(5));


}