MAK Data Logger API Documentation for DIS
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
libsrc
lgrSim
pduDescriptor.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
******************************************************************************/
5
8
9
#ifndef pduDescriptor_H_
10
#define pduDescriptor_H_
11
12
#if DtDIS
13
14
#include "
lgrSim.h
"
15
#include <vlutil/vlString.h>
16
17
namespace
MAKLogger
18
{
19
class
DtDisDescriptor;
20
23
class
DT_DLL_LGRSIM
DtPduDescriptor
24
{
25
public
:
27
DtPduDescriptor
(
DtDisDescriptor
* disObj,
const
DtString& name, DtU32 kind,
28
int
_enIdOff,
int
_typeOff );
29
31
DtPduDescriptor
(
DtDisDescriptor
* disObj,
const
char
* bfr,
int
bsz,
32
int
& pduSize );
33
35
virtual
~
DtPduDescriptor
();
36
38
DtPduDescriptor
(
const
DtPduDescriptor
& src );
39
41
DtPduDescriptor
& operator=(
const
DtPduDescriptor
& src );
42
43
44
public
:
46
inline
const
DtString& name()
const
;
47
49
inline
DtU32 kind()
const
;
50
52
inline
void
setEntityIdOffset(
int
off );
53
inline
int
entityIdOffset()
const
;
54
56
inline
void
setEntityTypeOffset(
int
off );
57
inline
int
entityTypeOffset()
const
;
58
60
inline
void
setIsFilteredPdu(
bool
onOff );
62
inline
bool
isFilteredPdu()
const
;
63
74
int
serialize(
char
* bfr,
int
bsz );
75
76
protected
:
77
DtU32
myKind
;
78
bool
myFilteredFlag
;
79
DtString
myName
;
80
int
myNameIndex
;
81
int
myEntityIdOff
;
82
int
myEntityTypeOff
;
83
DtDisDescriptor
*
myDisObject
;
84
};
85
86
87
inline
const
DtString&
DtPduDescriptor::name
()
const
88
{
89
return
myName
;
90
}
91
92
93
inline
DtU32
DtPduDescriptor::kind
()
const
94
{
95
return
myKind
;
96
}
97
98
99
inline
void
DtPduDescriptor::setEntityIdOffset
(
int
off )
100
{
101
myEntityIdOff
= off;
102
}
103
104
105
inline
int
DtPduDescriptor::entityIdOffset
()
const
106
{
107
return
myEntityIdOff
;
108
}
109
110
111
inline
void
DtPduDescriptor::setEntityTypeOffset
(
int
off )
112
{
113
myEntityTypeOff
= off;
114
}
115
116
117
inline
int
DtPduDescriptor::entityTypeOffset
()
const
118
{
119
return
myEntityTypeOff
;
120
}
121
122
123
inline
void
DtPduDescriptor::setIsFilteredPdu
(
bool
onOff )
124
{
125
myFilteredFlag
= onOff;
126
}
127
128
129
inline
bool
DtPduDescriptor::isFilteredPdu
()
const
130
{
131
return
myFilteredFlag
;
132
}
133
134
}
135
136
#endif
137
#endif
Document ID: Generated on Mon Jan 19 08:20:14 EST 2015 from SVN revision 149581
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)