MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
fedWrapChain.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: fedWrapChain.h,v $ $Revision: 1.14 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtFedAmbWrapperChain_H_
13 #define DtFedAmbWrapperChain_H_
14 
15 #include "rtiMsConfig.h"
16 #include <vlutil/vlHashlist.h>
17 #if defined(DtIFSPEC1516)
18 #include <RTI/Handle.h>
19 #include <RTI/Exception.h>
20 #include <RTI/FederateAmbassador.h>
21 #elif defined(DtIFSPEC1516E)
22 #include <RTI/Handle.h>
23 #include <RTI/Exception.h>
24 #include <RTI/FederateAmbassador.h>
25 #else
26 #ifdef DtIFSPEC13DLC
27 #include "RTI13.h"
28 #define RTI rti13
29 #else
30 #include "RTI.hh"
31 #endif
32 #endif
33 
34 class DtFedAmbWrapper;
35 
44 
46 {
47 public:
48 
50  virtual ~DtFedAmbWrapperChain();
51 
53 #ifdef DtIFSPEC1516
54  virtual void init (rti1516::FederateAmbassador* theBase);
55 #elif defined(DtIFSPEC1516E)
56  virtual void init (rti1516e::FederateAmbassador* theBase);
57 #else
58  virtual void init (RTI::FederateAmbassador* theBase);
59 #endif
60 
62  virtual void reset();
63 
65 #ifdef DtIFSPEC1516
66  virtual rti1516::FederateAmbassador* first() const;
67 #elif defined(DtIFSPEC1516E)
68  virtual rti1516e::FederateAmbassador* first() const;
69 #else
70  virtual RTI::FederateAmbassador* first() const;
71 #endif
72 
74  virtual void addWrapper(MAKRti::DtString const& name, DtFedAmbWrapper* fedWrap);
75  virtual DtFedAmbWrapper* removeWrapper(MAKRti::DtString const& name);
76 
81  virtual bool addWrapperAtFront(MAKRti::DtString const& name, DtFedAmbWrapper* fedWrap);
82 
83 protected:
84 
85 #ifdef DtIFSPEC1516
86  rti1516::FederateAmbassador* myBase;
87  rti1516::FederateAmbassador* myFirst;
88 #elif defined(DtIFSPEC1516E)
91 #else
92  RTI::FederateAmbassador* myBase;
93  RTI::FederateAmbassador* myFirst;
94 #endif
95 
96  MAKRti::DtHashList myWrappers;
99 };
100 
101 #ifdef DtIFSPEC1516
102 inline rti1516::FederateAmbassador* DtFedAmbWrapperChain::first() const
103 {
104  return myFirst;
105 }
106 #elif defined(DtIFSPEC1516E)
108 {
109  return myFirst;
110 }
111 #else
112 inline RTI::FederateAmbassador* DtFedAmbWrapperChain::first() const
113 {
114  return myFirst;
115 }
116 #endif
117 
118 #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)