VR-Link API Documentation for DIS
datumIdType.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 *********************************************************************/
00005 
00006 #ifndef datumIdType_H_
00007 #define datumIdType_H_
00008 
00011 
00012 #include <vlutil/vlMachineTypes.h>
00013 #include <vlutil/vlHashlist.h>
00014 #include "disEnums.h"
00015 
00016 #define DtTYPE_NOT_DEFINED -1
00017 #define DtTYPE_BYTE_ARRAY 1
00018 #define DtTYPE_FLOAT32 2
00019 #define DtTYPE_FLOAT64 3
00020 #define DtTYPE_INT32 4
00021 #define DtTYPE_UNSIGNED32 5
00022 #define DtTYPE_STRING 6
00023 
00030 class DT_DLL_VLPROTIND DtIdTypeMap
00031 {
00032 public:
00033 
00034    DtIdTypeMap();
00035    ~DtIdTypeMap();
00036 
00037    int addMapping(DtDatumParam id, int dataType, int warn=1);
00038    int type(DtDatumParam id) const;
00039 
00040 protected:
00041    DtHashlist myMappings;
00042 };
00043 
00044 const DT_DLL_VLPROTIND DtIdTypeMap* DtDatumIdTypeMap();
00045 
00046 DT_DLL_VLPROTIND int DtDatumId2Type(DtDatumParam id);
00047 
00048 DT_DLL_VLPROTIND int DtAddDatumId2TypeMapping(DtDatumParam id, int dataType, int warn = 0);
00049 
00050 #endif

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)