VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
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;
86 };
87 
88 #endif
#define DT_DLL_vmap
Definition: vmapDefines.h:23
This class is the table that holds a file from the VPF database.
Definition: vpfTable.h:34
a class representing a row of data from a table. Rows don&#39;t really own any data, the columns own the ...
Definition: vpfRow.h:32
voidpf void uLong size
Definition: ioapi.h:39
std::vector< DtVpfData * > myData
Definition: vpfRow.h:84
DtVpfTable * myTable
Definition: vpfRow.h:85
Abstract data type for all others to be based on.
Definition: vpfData.h:22
A subclass of the abstract class DtVpfData.
Definition: vpfIntData.h:18
A subclass of the abstract class DtVpfData.
Definition: vpfTripletData.h:27
A subclass of the abstract class DtVpfData.
Definition: vpf3CoordData.h:34
A subclass of the abstract class DtVpfData to represent text and the date.
Definition: vpfTextData.h:21
A subclass of the abstract class DtVpfData.
Definition: vpfFloatData.h:18

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)