VR-Forces Developer's Guide
Home
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vmap
vpfRow.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2006 MAK Technologies, Inc.** All rights reserved.
3
******************************************************************************/
4
/*******************************************************************************
5
* $RCSfile: vpfRow.h,v $ $Revision: 1.8 $ $State: Exp $
6
******************************************************************************/
7
8
#ifndef VPF_ROW_H_
9
#define VPF_ROW_H_
10
13
14
#include <vector>
15
#include <string>
16
17
#include "
vmap/vmapDefines.h
"
18
19
//forward defs
20
class
DtVpfTable
;
21
class
DtVpfData
;
22
class
DtVpfIntData
;
23
class
DtVpfFloatData
;
24
class
DtVpf3CoordData
;
25
class
DtVpfTextData
;
26
class
DtVpfTripletData
;
27
28
32
class
DT_DLL_vmap
DtVpfRow
33
{
34
public
:
36
DtVpfRow
(
const
DtVpfRow
& row);
37
39
DtVpfRow
& operator=(
const
DtVpfRow
& row);
40
41
public
:
43
DtVpfRow
(
DtVpfTable
* table);
44
46
virtual
~
DtVpfRow
();
47
50
virtual
bool
loadRow(
int
row);
51
54
virtual
const
DtVpfTable
* table()
const
;
55
59
virtual
const
DtVpfData
& operator [](
const
unsigned
int
data)
const
;
60
63
virtual
int
size
()
const
;
64
68
virtual
bool
hasField(
const
DtString
& field_name)
const
;
69
72
virtual
const
DtVpfIntData
* getIntField(
const
DtString
& field)
const
;
73
virtual
const
DtVpfFloatData
* getFloatField(
const
DtString
& field)
const
;
74
virtual
const
DtVpf3CoordData
* getCoordField(
const
DtString
& field)
const
;
75
virtual
const
DtVpfTextData
* getTextField(
const
DtString
& field)
const
;
76
virtual
const
DtVpfTripletData
* getTripletField(
const
DtString
& field)
const
;
77
78
protected
:
82
virtual
DtVpfData
* getField(
const
DtString
& field)
const
;
83
84
std::vector<DtVpfData*>
myData
;
85
DtVpfTable
*
myTable
;
86
};
87
88
#endif
DT_DLL_vmap
#define DT_DLL_vmap
Definition:
vmapDefines.h:23
DtVpfTable
This class is the table that holds a file from the VPF database.
Definition:
vpfTable.h:34
DtVpfRow
a class representing a row of data from a table. Rows don't really own any data, the columns own the ...
Definition:
vpfRow.h:32
size
voidpf void uLong size
Definition:
ioapi.h:39
DtVpfRow::myData
std::vector< DtVpfData * > myData
Definition:
vpfRow.h:84
DtVpfRow::myTable
DtVpfTable * myTable
Definition:
vpfRow.h:85
DtVpfData
Abstract data type for all others to be based on.
Definition:
vpfData.h:22
DtVpfIntData
A subclass of the abstract class DtVpfData.
Definition:
vpfIntData.h:18
DtVpfTripletData
A subclass of the abstract class DtVpfData.
Definition:
vpfTripletData.h:27
DtVpf3CoordData
A subclass of the abstract class DtVpfData.
Definition:
vpf3CoordData.h:34
DtVpfTextData
A subclass of the abstract class DtVpfData to represent text and the date.
Definition:
vpfTextData.h:21
DtString
vmapDefines.h
DtVpfFloatData
A subclass of the abstract class DtVpfData.
Definition:
vpfFloatData.h:18
Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (
www.mak.com
)