KatanaNativeInterface
$VERSION$
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
include
KNI
kmlSctBase.h
Go to the documentation of this file.
1
//
2
// C++ Interface: SctBase
3
//
4
// Description:
5
//
6
//
7
// Author: Tiziano Müller <tiziano.mueller@neuronics.ch>, (C) 2006
8
//
9
// Copyright: See COPYING file that comes with this distribution
10
//
11
//
12
13
14
#ifndef KMLSCTBASE_H
15
#define KMLSCTBASE_H
16
17
#include "
common/dllexport.h
"
18
19
#include "
KNI/kmlCommon.h
"
20
#include "
KNI/cplBase.h
"
21
22
23
class
CKatBase
;
//forward declaration
24
class
CSctBase
;
//forward declaration
25
26
27
/****************************************************************************/
28
// CSctBase ----------------------------------------------------------------//
29
/****************************************************************************/
30
33
struct
TSctDesc
{
34
byte
ctrlID
;
35
short
sens_res
;
36
short
sens_count
;
37
};
38
41
struct
TKatSCT
{
42
short
cnt
;
43
CSctBase
*
arr
;
44
TSctDesc
*
desc
;
45
};
46
49
struct
TSctGNL
{
50
CKatBase
*
own
;
51
byte
SID
;
52
short
res
;
53
};
54
57
struct
TSctDAT
{
58
short
cnt
;
59
short
*
arr
;
60
};
61
62
//--------------------------------------------------------------------------//
63
72
class
DLLDIR
CSctBase
{
73
74
friend
class
CKatBase
;
75
76
protected
:
77
TSctGNL
gnl
;
78
TSctDAT
dat
;
79
80
public
:
81
const
TSctGNL
*
GetGNL
() {
return
&
gnl
; }
82
const
TSctDAT
*
GetDAT
() {
return
&dat; }
83
84
protected
:
85
CCplBase
*
protocol
;
86
87
public
:
88
virtual
~CSctBase
() {}
//destructor
89
90
bool
init
(
CKatBase
* _own,
const
TSctDesc
_sctDesc,
CCplBase
*
protocol
);
91
94
void
recvDAT();
95
};
96
97
98
99
100
101
102
103
104
105
106
107
#endif
Generated by
1.8.4