VR-Link API Documentation for HLA Evolved
hRepRespInter.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 hRepRespInter_H_
8 #define hRepRespInter_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 (*DtRepairResponseInteractionCb)
28  (DtRepairResponseInteraction* inter, void* usr);
29 
34 
35 
37 {
38 public:
39 
42 
44  virtual ~DtRepairResponseInteraction();
45 
48 
51  const DtRepairResponseInteraction& 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 setRepairResult(DtRepairResult result);
69  virtual DtRepairResult repairResult() const;
70 
72  virtual const char* name() const;
73 
74 public:
75 
78  static DtInteraction* create();
79 
82  static void addCallback(DtExerciseConn* conn,
83  DtRepairResponseInteractionCb cb, void* usr,
84  DtDDMRegionSP region = DtDDMRegionSP());
85  static void removeCallback(DtExerciseConn* conn,
86  DtRepairResponseInteractionCb 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 myRepairResult;
111 }
112 
114  const DtGlobalObjectDesignator &id)
115 {
116  myReceivingObject = id;
117 }
118 
120  const DtGlobalObjectDesignator &id)
121 {
122  myRepairingObject = id;
123 }
124 
126 {
127  myRepairResult = r;
128 }
129 
130 inline const char* DtRepairResponseInteraction::name() const
131 {
132  return "DtRepairResponseInteraction";
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)