VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
dted
dfad_util.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2002 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: dfad_util.h,v $ $Revision: 1.5 $ $State: Exp $
7
*******************************************************************************/
8
9
#ifndef __DFADUITL
10
#define __DFADUTIL
11
12
// Class to read 36 bits words coming from dfad format.
13
#include "
dted/dtedDefines.h
"
14
#include <vlutil/vlMachineTypes.h>
15
16
class
DT_DLL_dted
DtBitData
17
{
18
19
public
:
20
21
DtBitData
();
22
23
void
set
(
unsigned
char
value);
24
bool
sign(
int
bit);
25
int
val(
int
from,
int
to,
int
acum);
26
27
protected
:
28
29
struct
stByte
30
{
31
unsigned
char
b1 : 1;
32
unsigned
char
b2 : 1;
33
unsigned
char
b3 : 1;
34
unsigned
char
b4 : 1;
35
unsigned
char
b5 : 1;
36
unsigned
char
b6 : 1;
37
unsigned
char
b7 : 1;
38
unsigned
char
b8 : 1;
39
};
40
41
stByte
myByte
;
42
};
43
44
#endif
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)