VR-Link API Documentation for DIS
tDataInter.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 tDataInter_H_
8 #define tDataInter_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 (*DtDataInteractionCb)(DtDataInteraction* inter, void* usr);
24 
25 
31 class DT_DLL_VL DtDataInteraction : public DtInteractionWithData
32 {
33 public:
36 
38  virtual ~DtDataInteraction();
39 
42 
44  DtDataInteraction& operator=(
45  const DtDataInteraction& orig);
46 
48  virtual void setSenderId(const DtEntityIdentifier& id);
49 
51  virtual const DtEntityIdentifier& senderId() const;
52 
54  virtual void setReceiverId(const DtEntityIdentifier& id);
55 
57  virtual const DtEntityIdentifier& receiverId() const;
58 
60  virtual void setRequestId(unsigned long id);
61 
63  virtual unsigned long requestId() const;
64 
66  virtual const char* name() const;
67 
69  virtual void printData() const;
70 
72  virtual void printDataToStream(std::ostream& stream) const;
73 
74 public:
75 
78  static DtInteraction* create();
79 
82  static void addCallback(DtExerciseConn* conn,
83  DtDataInteractionCb cb, void* usr);
84 
87  static void removeCallback(DtExerciseConn* conn,
88  DtDataInteractionCb cb, void* usr);
89 
90 
91 protected:
92  DtEntityIdentifier myOrigEnt;
93  DtEntityIdentifier myReceiveEnt;
94  int myRequestId;
95 };
96 
97 #endif
98 #endif
99 
100 

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)