VR-Forces 4.0.4 Class Documentation
include/vmap/vpfColumn.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright  (c) 2006 MAK Technologies, Inc.
00003 ** All rights reserved.     
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: vpfColumn.h,v $ $Revision: 1.10 $ $State: Exp $
00007 *******************************************************************************/
00008 
00009 #ifndef VPF_COLUMN_H_
00010 #define VPF_COLUMN_H_
00011 
00014 
00015 #include <iostream>
00016 #include <fstream>
00017 #include <vector>
00018 
00019 #include <vlutil/vlString.h>
00020 #include "vmap/vmapDefines.h"
00021 
00022 //forward defs
00023 class DtVpfTable;
00024 class DtVpfColumnData;
00025 class DtVpfData;
00026 
00028 class DT_DLL_vmap DtVpfColumn
00029 {
00030    private:
00032       DtVpfColumn(const DtVpfColumn& column);
00033 
00035       DtVpfColumn& operator=(const DtVpfColumn& column);
00036 
00037    public:
00039       DtVpfColumn(DtVpfTable* table);
00040 
00042       virtual ~DtVpfColumn();
00043 
00046       virtual bool readDescription();
00047 
00050       virtual bool readValue();
00051 
00055       virtual const DtVpfData* operator[](const unsigned int row) const;
00056 
00059       virtual DtString columnName() const;
00060 
00063       virtual char dataType() const;
00064 
00068       virtual int numberDataElements() const;
00069 
00072       virtual const DtString& columnDescription() const;
00073 
00076       virtual const DtString& valueDescriptionTableName() const;
00077 
00080       virtual bool hasValueDescription() const;
00081 
00084       virtual const DtString valueDescription(const int input) const;
00085 
00088       virtual const DtString valueDescription(const DtString& input) const;       
00089       
00092       virtual DtVpfTable* table() const;
00093 
00097       virtual unsigned int numRows() const;
00098 
00099    protected:
00100       DtString myColumnName;
00101       char myDataType;
00102       DtString myNumberDataElementsString;
00103       int myNumberDataElements;
00104       char myKeyType;
00105       DtString myDescription;
00106       DtString myValueDescriptionTableName;
00107       DtString myThematicIndexTableName;
00108       DtString myNarrativeTableName;
00109 
00110       bool myHasValueDescription;
00111       bool myHasThematicIndex;
00112       bool myHasNarrative;
00113 
00114       DtVpfTable* myTable;
00115       std::vector<DtVpfData*> myData;
00116 };
00117 
00118 #endif
00119 

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)