VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
setDataInteractionHLA.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 setDataInteractionHLA_H_
8 #define setDataInteractionHLA_H_
9 
10 #if DtHLA
11 
12 #include "interactionWithData.h"
13 #include "hostStructs.h"
14 #include <matrix/vlMath.h>
15 
16 
17 
21 
24 
25 
26 
28 typedef void (*DtSetDataInteractionCb)
29  (DtSetDataInteraction* inter, void* usr);
30 
37 {
38 public:
39 
42 
44  virtual ~DtSetDataInteraction();
45 
48 
51  const DtSetDataInteraction& orig);
52 
54  virtual void printData() const;
55 
57  virtual void printDataToStream(std::ostream& stream) const;
58 
60  virtual void setSenderId(const DtEntityIdentifier& id);
61  virtual const DtEntityIdentifier& senderId() const;
62 
64  virtual void setReceiverId(const DtEntityIdentifier& id);
65  virtual const DtEntityIdentifier& receiverId() const;
66 
68  virtual void setRequestId(unsigned long id);
69  virtual unsigned long requestId() const;
70 
72  virtual const char* name() const;
73 
74 public:
75 
78  static DtInteraction* create();
79 
82  static void addCallback(DtExerciseConn* conn,
83  DtSetDataInteractionCb cb, void* usr,
84  DtDDMRegionSP region = DtDDMRegionSP());
85  static void removeCallback(DtExerciseConn* conn,
86  DtSetDataInteractionCb cb, void* usr,
87  DtDDMRegionSP region = DtDDMRegionSP());
88 
89 protected:
90 
93  unsigned long myRequestId;
94 };
95 
96 #endif
97 #endif
98 

Document ID: Generated on Wed Jan 7 13:31:29 EST 2015 from SVN revision 149162
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)