File: XWaveCtrl.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 (43 lines) | stat: -rw-r--r-- 1,125 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
// XWaveCtrl.cpp: Body of the XWaveCtrl class.
//
//////////////////////////////////////////////////////////////////////

#include "XWaveCtrl.h"

#include <stdio.h>

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

XWaveCtrl::XWaveCtrl()
{

}

XWaveCtrl::~XWaveCtrl()
{

}


void XWaveCtrl::OnPacketReceived(CigiBasePacket *Packet)
{
   CigiWaveCtrlV3 *InPckt = (CigiWaveCtrlV3 *)Packet;

   printf("===> WaveCtrl <===\n");

   printf("EntityRgnID ==> %d\n",InPckt->GetEntityRgnID());
   printf("WaveID ==> %d\n",InPckt->GetWaveID());
   printf("WaveEn ==> %d\n",InPckt->GetWaveEn());
   printf("Scope ==> %d\n",InPckt->GetScope());
   printf("Breaker ==> %d\n",InPckt->GetBreaker());
   printf("WaveHt ==> %f\n",InPckt->GetWaveHt());
   printf("WaveLen ==> %f\n",InPckt->GetWaveLen());
   printf("Period ==> %f\n",InPckt->GetPeriod());
   printf("Direction ==> %f\n",InPckt->GetDirection());
   printf("PhaseOff ==> %f\n",InPckt->GetPhaseOff());
   printf("Leading ==> %f\n",InPckt->GetLeading());


}