![]() |
MAK RTIspy API Documentation for HLA Evolved
|
00001 /********************************************************************* 00002 ** Copyright (c) 1998 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: netParms.h,v $ $Revision: 1.9 $ $State: Exp $ 00007 *********************************************************************/ 00008 00011 00012 #ifndef DtNetParam_H_ 00013 #define DtNetParam_H_ 00014 00015 #include "rtiMsConfig.h" 00016 #include <vlutil/vlNetTypes.h> 00017 #include "netRtiMsgHdr.h" 00018 #include <vlutil/vlUtil.h> 00019 00021 00022 class DT_DLL_LRC DtNetParamValue 00023 { 00024 public: 00025 int totalSize() const; 00026 00027 MAKRti::DtNetU16 handle; 00028 MAKRti::DtNetU16 size; 00030 }; 00031 00032 inline int DtNetParamValue::totalSize() const 00033 { 00034 return sizeof(DtNetParamValue) + DtROUND_TO_MULT(size, 2); 00035 } 00036 00037 class DT_DLL_LRC DtNetBigParamValue 00038 { 00039 public: 00040 int totalSize() const; 00041 00042 DtNetU32 handle; 00043 DtNetU32 size; 00045 }; 00046 00047 inline int DtNetBigParamValue::totalSize() const 00048 { 00049 return sizeof(DtNetBigParamValue) + DtROUND_TO_MULT(size, 4); 00050 } 00051 00052 class DT_DLL_LRC DtNetParams 00053 { 00054 public: 00055 int baseSize() const; 00056 00057 MAKRti::DtNetU16 numParams; 00059 }; 00060 00061 inline int DtNetParams::baseSize() const 00062 { 00063 return sizeof(DtNetParams); 00064 } 00065 00066 class DT_DLL_LRC DtNetBigParams 00067 { 00068 public: 00069 int baseSize() const; 00070 00071 DtNetU32 numParams; 00073 }; 00074 00075 inline int DtNetBigParams::baseSize() const 00076 { 00077 return sizeof(DtNetBigParams); 00078 } 00079 00080 #endif