MAK RTIspy API Documentation for HLA 1516
metadataDestList.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2006 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: metadataDestList.h,v $ $Revision: 1.7 $ $State: Exp $
00007 *********************************************************************/
00008 
00009 #ifndef DtRtiMtdDestinationList_H_
00010 #define DtRtiMtdDestinationList_H_
00011 
00016 
00017 #include "metadata.h"
00018 #include "bitMask.h"
00019 
00020 #if defined(DtIFSPEC1516) || defined(DtIFSPEC1516E)
00021 #include <RTI/Handle.h>
00022 #else
00023 #ifdef DtIFSPEC13DLC
00024 #include "RTI13.h"
00025 #else
00026 #include "RTI.hh"
00027 #endif
00028 #endif
00029 
00030 class DT_DLL_LRC DtRtiMtdDestinationList : public DtRtiMetadata
00031 {
00032 
00033 public:
00034 
00036    DtRtiMtdDestinationList( caddr_t msg );
00037    DtRtiMtdDestinationList( DtRtiMsg* msg );
00038 
00040    virtual ~DtRtiMtdDestinationList();
00041 
00042 private:
00043 
00045    DtRtiMtdDestinationList(const DtRtiMtdDestinationList &);
00046 
00048    DtRtiMtdDestinationList& operator=(const DtRtiMtdDestinationList &);
00049    
00050 public:
00051 
00057    virtual int get( DtBitMask& mask ) const;
00058 
00062    virtual bool set( DtBitMask& destinations, unsigned int maskSize = 0 );
00063 
00065    virtual bool addDestination(DtFederateHandle handle);
00066 
00068    virtual bool removeDestination(DtFederateHandle handle);
00069 
00070 
00071 
00072 public:
00073    
00075    static void setMaxDestinations( unsigned int maxDestinations );
00076    static unsigned int getMaxDestinations();
00077 
00079    static unsigned long destinationIndex(unsigned long federateID);
00080    
00081 protected:
00082 
00083    const unsigned int  myPayloadAlignment;
00084    static unsigned int theMaxDestinations;
00085 
00086 };
00087 
00088 #endif //! DtRtiMtdDestinationList_H_

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)