MAK RTIspy API Documentation for HLA 1.3
netAttrs.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1998 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: netAttrs.h,v $ $Revision: 1.9 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef DtNetAttr_H_
00013 #define DtNetAttr_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 DtNetAttrValue
00023 {
00024 public:
00025    unsigned short totalSize() const;
00026    
00027    MAKRti::DtNetU16 handle;
00028    MAKRti::DtNetU16 size;
00030 };
00031 
00032 inline unsigned short DtNetAttrValue::totalSize() const
00033 {
00034    return sizeof(DtNetAttrValue) + DtROUND_TO_MULT(size, 2);
00035 }
00036 
00037 class DT_DLL_LRC DtNetBigAttrValue
00038 {
00039 public:
00040    unsigned long totalSize() const;
00041    
00042    DtNetU32 handle;
00043    DtNetU32 size;
00045 };
00046 
00047 inline unsigned long DtNetBigAttrValue::totalSize() const
00048 {
00049    return sizeof(DtNetBigAttrValue) + DtROUND_TO_MULT(size, 4);
00050 }
00051 
00052 class DT_DLL_LRC DtNetAttrs
00053 {
00054 public:
00055    unsigned short baseSize() const;
00056 
00057    MAKRti::DtNetU16 numAttrs;
00059 };
00060 
00061 inline unsigned short DtNetAttrs::baseSize() const
00062 {
00063    return sizeof(DtNetAttrs);
00064 }
00065 
00066 class DT_DLL_LRC DtNetBigAttrs
00067 {
00068 public:
00069    unsigned long baseSize() const;
00070 
00071    DtNetU32 numAttrs;
00073 };
00074 
00075 inline unsigned long DtNetBigAttrs::baseSize() const
00076 {
00077    return sizeof(DtNetBigAttrs);
00078 }
00079 
00080 #endif

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)