VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
dted
dfad_record.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2003 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: dfad_record.h,v $ $Revision: 1.7 $ $State: Exp $
7
*******************************************************************************/
8
9
//
10
// Define a dfad data record (2709 bytes in blocks of 36 bit words.
11
// It permits access to a specific word, or read it sequentially from a
12
// point, assking for:
13
// a feature : 2 words
14
// a coord : a word
15
// checksum : a word
16
// a zero word.
17
//
18
// It has two methods to access the record data:
19
// 1. Directly using
20
// getData(from, howMany, where) : from which word, how many words (must be leess than 602 - from)
21
//
22
// 2. Setting a sequential pointer and using sequential readers
23
// setPointerToWord(int i = 0); i <= 601 : sets the pointer to word i
24
// getFeature(pfeature): gets next feature data size (two words)
25
// getCoord(pCoord): gets next coord data size ( word)
26
// getWords(pWords, howMany): gets howMany words
27
// For more details, see dfad_main.doc
28
//
29
30
31
#ifndef __DFADRECORD
32
#define __DFADRECORD
33
34
#include "
dted/dtedDefines.h
"
35
#include <stdio.h>
36
#include <vlutil/vlMachineTypes.h>
37
38
class
DT_DLL_dted
DtDfadRecord
39
{
40
public
:
41
42
DtDfadRecord
();
43
44
virtual
bool
setFile(FILE *f);
45
46
// Operations based in the pointer location
47
virtual
bool
getWords(DtU8 *pword,
int
howMany = 1);
48
49
protected
:
50
51
// read from the file a record
52
virtual
bool
read();
53
54
// move from the record to the buffer
55
virtual
bool
moveWords(DtU8 *pword,
int
howMany = 1,
int
offsetInWords = 0);
56
57
DtU8 myData[2709];
//see dfad explanation for 2709
58
59
int
myPointerLocation
;
60
int
myWordsAvailable
;
61
int
myCurrentWord
;
62
63
bool
myLoaded
;
64
65
FILE *
myFile
;
66
67
bool
myAlignToByte
;
68
};
69
70
#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
)