VR-Link API Documentation for HLA Evolved
tSetDataInter.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 tSetDataInter_H_
8 #define tSetDataInter_H_
9 
10 #if DtTENA
11 
12 #include "tInterWData.h"
13 #include <vlpi/entityIdentifier.h>
14 #include "globalObjDes.h"
15 
19 
21 
23 typedef void (*DtSetDataInteractionCb)(DtSetDataInteraction* inter, void* usr);
24 
31 {
32 public:
35 
37  virtual ~DtSetDataInteraction();
38 
41 
44  const DtSetDataInteraction& orig);
45 
47  virtual void setSenderId(const DtEntityIdentifier& id);
48 
50  virtual const DtEntityIdentifier& senderId() const;
51 
53  virtual void setReceiverId(const DtEntityIdentifier& id);
54 
56  virtual const DtEntityIdentifier& receiverId() const;
57 
59  virtual void setRequestId(unsigned long id);
60 
62  virtual unsigned long requestId() const;
63 
65  virtual const char* name() const;
66 
68  virtual void printData() const;
69 
71  virtual void printDataToStream(std::ostream& stream) const;
72 
73 public:
74 
77  static DtInteraction* create();
78 
81  static void addCallback(DtExerciseConn* conn,
82  DtSetDataInteractionCb cb, void* usr);
83  static void removeCallback(DtExerciseConn* conn,
84  DtSetDataInteractionCb cb, void* usr);
85 
86 
87 protected:
88  DtEntityIdentifier myOrigEnt;
89  DtEntityIdentifier myReceiveEnt;
90  int myRequestId;
91 };
92 
93 #endif
94 #endif
95 
96 

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)