MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
metadataDestList.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2006 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: metadataDestList.h,v $ $Revision: 1.7 $ $State: Exp $
7 *********************************************************************/
8 
9 #ifndef DtRtiMtdDestinationList_H_
10 #define DtRtiMtdDestinationList_H_
11 
16 
17 #include "metadata.h"
18 #include "bitMask.h"
19 
20 #if defined(DtIFSPEC1516) || defined(DtIFSPEC1516E)
21 #include <RTI/Handle.h>
22 #else
23 #ifdef DtIFSPEC13DLC
24 #include "RTI13.h"
25 #else
26 #include "RTI.hh"
27 #endif
28 #endif
29 
31 {
32 
33 public:
34 
36  DtRtiMtdDestinationList( caddr_t msg );
38 
40  virtual ~DtRtiMtdDestinationList();
41 
42 private:
43 
46 
49 
50 public:
51 
57  virtual int get( DtBitMask& mask ) const;
58 
62  virtual bool set( DtBitMask& destinations, unsigned int maskSize = 0 );
63 
65  virtual bool addDestination(DtFederateHandle handle);
66 
68  virtual bool removeDestination(DtFederateHandle handle);
69 
71  virtual void print(MAKRti::DtOutputStream& stream = MAKRti::DtDebug);
72 
73 public:
74 
76  static void setMaxDestinations( unsigned int maxDestinations );
77  static inline unsigned int getMaxDestinations();
78 
80  static unsigned long destinationIndex(unsigned long federateID);
81 
83  static void setBit(DtBitMask& bitMask, DtFederateHandle federateHandle, bool isOn = true);
84 
85 protected:
86 
87  const unsigned int myPayloadAlignment;
88  static unsigned int theMaxDestinations;
89 
90 };
91 
92 #endif

Document ID: Generated on Fri Sep 27 00:57:56 EDT 2019 from SVN revision 201708
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)