VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)