VR-Link API Documentation for HLA 1516
hRepCompInter.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
7 #ifndef hRepCompInter_H_
8 #define hRepCompInter_H_
9 
10 #if DtHLA
11 
12 #include "hIntWEncDec.h"
13 #include "hostStructs.h"
14 #include <matrix/vlMath.h>
15 
16 
17 
21 
24 
25 
27 typedef void (*DtRepairCompleteInteractionCb)
28  (DtRepairCompleteInteraction* inter, void* usr);
29 
30 
35 
37 {
38 public:
39 
42 
44  virtual ~DtRepairCompleteInteraction();
45 
48 
51  const DtRepairCompleteInteraction& orig);
52 
54  virtual void printData() const;
55 
57  virtual void printDataToStream(std::ostream& stream) const;
58 
60  virtual void setReceivingId(const DtGlobalObjectDesignator &id);
61  virtual const DtGlobalObjectDesignator &receivingId() const;
62 
64  virtual void setRepairingId(const DtGlobalObjectDesignator &id);
65  virtual const DtGlobalObjectDesignator &repairingId() const;
66 
68  virtual void setRepairType(DtRepairType type);
69  virtual DtRepairType repairType() const;
70 
72  virtual const char* name() const;
73 
74 public:
75 
78  static DtInteraction* create();
79 
82  static void addCallback(DtExerciseConn* conn,
83  DtRepairCompleteInteractionCb cb, void* usr,
84  DtDDMRegionSP region = DtDDMRegionSP());
85  static void removeCallback(DtExerciseConn* conn,
86  DtRepairCompleteInteractionCb cb, void* usr,
87  DtDDMRegionSP region = DtDDMRegionSP());
88 
89 protected:
90 
94 };
95 
97  receivingId() const
98 {
99  return myReceivingObject;
100 }
101 
104 {
105  return myRepairingObject;
106 }
107 
109 {
110  return myRepairType;
111 }
112 
114  const DtGlobalObjectDesignator &id)
115 {
116  myReceivingObject = id;
117 }
118 
120  const DtGlobalObjectDesignator &id)
121 {
122  myRepairingObject = id;
123 }
124 
126 {
127  myRepairType = t;
128 }
129 
130 inline const char* DtRepairCompleteInteraction::name() const
131 {
132  return "DtRepairCompleteInteraction";
133 }
134 
135 #endif
136 #endif
137 

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)