VR-Forces 4.0.4 Class Documentation
include/vmap/vpfRow.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright  (c) 2006 MAK Technologies, Inc.** All rights reserved.     
00003 ******************************************************************************/
00004 /*******************************************************************************
00005 * $RCSfile: vpfRow.h,v $ $Revision: 1.8 $ $State: Exp $
00006 ******************************************************************************/
00007 
00008 #ifndef VPF_ROW_H_
00009 #define VPF_ROW_H_
00010 
00013 
00014 #include <vector>
00015 #include <string>
00016 
00017 #include "vmap/vmapDefines.h"
00018 
00019 //forward defs
00020 class DtVpfTable;
00021 class DtVpfData;
00022 class DtVpfIntData;
00023 class DtVpfFloatData;
00024 class DtVpf3CoordData;
00025 class DtVpfTextData;
00026 class DtVpfTripletData;
00027 
00028 
00032 class DT_DLL_vmap DtVpfRow
00033 {
00034    public:
00036       DtVpfRow(const DtVpfRow& row);
00037 
00039       DtVpfRow& operator=(const DtVpfRow& row);
00040 
00041    public:
00043       DtVpfRow(DtVpfTable* table);
00044 
00046       virtual ~DtVpfRow();
00047 
00050       virtual bool loadRow(int row);
00051 
00054       virtual const DtVpfTable* table() const;
00055 
00059       virtual const DtVpfData& operator [](const unsigned int data) const;
00060 
00063       virtual int size() const;
00064 
00068       virtual bool hasField(const DtString& field_name) const;
00069 
00072       virtual const DtVpfIntData* getIntField(const DtString& field) const;
00073       virtual const DtVpfFloatData* getFloatField(const DtString& field) const;
00074       virtual const DtVpf3CoordData* getCoordField(const DtString& field) const;
00075       virtual const DtVpfTextData* getTextField(const DtString& field) const;
00076       virtual const DtVpfTripletData* getTripletField(const DtString& field) const;
00077 
00078    protected:
00082       virtual DtVpfData* getField(const DtString& field) const;
00083 
00084       std::vector<DtVpfData*> myData;
00085       DtVpfTable* myTable;
00086 };
00087 
00088 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)