VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vmap
vpfIndexTable.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2006 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: vpfIndexTable.h,v $ $Revision: 1.7 $ $State: Exp $
7
*******************************************************************************/
8
9
#ifndef DtVpfIndextable_h
10
#define DtVpfIndextable_h
11
14
15
16
#include <vector>
17
#include <fstream>
18
19
#include <vlutil/vlString.h>
20
#include "
vmap/vmapDefines.h
"
21
22
//forward defs
23
class
DtVpfTable
;
24
25
struct
DT_DLL_vmap
DtVpfIndexValue
26
{
27
int
offset
;
28
int
length
;
29
};
30
31
class
DT_DLL_vmap
DtVpfIndexTable
32
{
33
//don't want these inadvertently copied
34
private
:
35
DtVpfIndexTable
(
const
DtVpfIndexTable
& indexTable);
36
DtVpfIndexTable
& operator=(
const
DtVpfIndexTable
& indexTable);
37
38
public
:
39
DtVpfIndexTable
(
DtVpfTable
* table);
40
~
DtVpfIndexTable
();
41
42
virtual
const
DtVpfIndexValue
* index(
const
unsigned
int
indexNumber)
const
;
43
virtual
int
headerSize
()
const
{
return
myDataTableHeaderSize;}
44
virtual
int
numberIndexes
()
const
{
return
myNumberIndexes;}
45
46
virtual
bool
readIndexFile();
47
48
protected
:
49
DtVpfTable
*
myTable
;
50
DtString
myFileName
;
51
std::vector<DtVpfIndexValue>
myIndexes
;
52
int
myCurrentIndex
;
53
54
int
myNumberIndexes
;
55
int
myDataTableHeaderSize
;
56
};
57
58
#endif
59
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)