![]() |
VR-Link API Documentation for HLA 1.3
|
00001 /********************************************************************* 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 00006 00007 #if DtHLA 00008 00009 #ifndef DtGriddedDataDecoder_H_ 00010 #define DtGriddedDataDecoder_H_ 00011 00012 #include "hostStructs.h" 00013 00014 #include "hStateDecoder.h" 00015 #include "gridDataSR.h" 00016 #include "exerciseConn.h" 00017 00021 00022 class DT_DLL_VL DtGriddedDataRepository; 00023 00026 00027 #define DtDECLARE_GRIDDATA_ATTR_DECODER(attrName) \ 00028 DtDECLARE_ATTR_DECODER(DtGriddedDataRepository, attrName) 00029 00034 00035 class DT_DLL_VL DtGriddedDataDecoder : public DtHlaStateDecoder 00036 { 00037 public: 00039 DtGriddedDataDecoder( 00040 DtExerciseConn* exConn, 00041 DtObjClassDesc* classDesc); 00042 00044 virtual ~DtGriddedDataDecoder(); 00045 00046 //copy constructor 00047 DtGriddedDataDecoder(const DtGriddedDataDecoder& orig); 00048 00050 DtGriddedDataDecoder& operator=( 00051 const DtGriddedDataDecoder& orig); 00052 00053 public: 00054 00056 static DtHlaStateDecoder* create( 00057 DtExerciseConn* exConn, 00058 DtObjClassDesc* classDesc); 00059 00060 protected: 00061 00063 DtDECLARE_GRIDDATA_ATTR_DECODER(GridIdentifier); //2.0D4 00064 DtDECLARE_GRIDDATA_ATTR_DECODER(GridID); 00065 DtDECLARE_GRIDDATA_ATTR_DECODER(FieldNumber); 00066 DtDECLARE_GRIDDATA_ATTR_DECODER(RecordNumber); 00067 DtDECLARE_GRIDDATA_ATTR_DECODER(RecordTotal); 00068 DtDECLARE_GRIDDATA_ATTR_DECODER(CoordinateSystem); 00069 DtDECLARE_GRIDDATA_ATTR_DECODER(NumberOfGridAxes); 00070 DtDECLARE_GRIDDATA_ATTR_DECODER(ConstantGrid); 00071 DtDECLARE_GRIDDATA_ATTR_DECODER(EnvironmentType); 00072 DtDECLARE_GRIDDATA_ATTR_DECODER(Orientation); 00073 DtDECLARE_GRIDDATA_ATTR_DECODER(SampleTime); 00074 DtDECLARE_GRIDDATA_ATTR_DECODER(TotalValues); 00075 DtDECLARE_GRIDDATA_ATTR_DECODER(VectorDimension); 00076 DtDECLARE_GRIDDATA_ATTR_DECODER(GridAxisInfo); 00077 DtDECLARE_GRIDDATA_ATTR_DECODER(GridAxisInfo_RPR_20); 00078 DtDECLARE_GRIDDATA_ATTR_DECODER(GridDataInfo); 00079 DtDECLARE_GRIDDATA_ATTR_DECODER(GridDataInfo_RPR_20); 00080 DtDECLARE_GRIDDATA_ATTR_DECODER(GridDataInfo_RPR2_Rev3); 00081 }; 00082 00088 00089 #define DtDEFINE_SIMPLE_GRIDDATA_ATTR_DECODER( \ 00090 attrName, netType, mutator) \ 00091 DtDEFINE_SIMPLE_ATTR_DECODER_WITH_CAST( \ 00092 DtGriddedDataDecoder, \ 00093 DtGriddedDataRepository, \ 00094 attrName, netType, mutator, (netType)) 00095 00096 #define DtDEFINE_SIMPLE_GRIDDATA_ATTR_DECODER_WITH_CAST( \ 00097 attrName, netType, mutator, castExpr) \ 00098 DtDEFINE_SIMPLE_ATTR_DECODER_WITH_CAST( \ 00099 DtGriddedDataDecoder, \ 00100 DtGriddedDataRepository, \ 00101 attrName, netType, mutator, castExpr) 00102 00103 #endif 00104 #endif 00105