VR-Exchange 2.6 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
actionResponseInteraction.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2014 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #if DtTENA
11 
12 #pragma once
13 
15 #include <vl/globalObjectDesignator.h>
16 #include <vlpi/entityIdentifier.h>
17 
18 namespace MAKVrExchange
19 {
20 
21  namespace DtTenaBroker
22  {
23 
24  class DtActionResponseInteraction;
25 
27  typedef void (*DtActionResponseInteractionCb)
28  (DtActionResponseInteraction* inter, void* usr);
29 
35  class DT_DLL_VLTENA DtActionResponseInteraction : public DtInteractionWithData
36  {
37  public:
38 
40  DtActionResponseInteraction();
41 
43  virtual ~DtActionResponseInteraction();
44 
46  DtActionResponseInteraction(const DtActionResponseInteraction& orig);
47 
49  DtActionResponseInteraction& operator=(
50  const DtActionResponseInteraction& orig);
51 
53  virtual void setSenderId(const DtEntityIdentifier& id);
54 
56  virtual const DtEntityIdentifier& senderId() const;
57 
59  virtual void setReceiverId(const DtEntityIdentifier& id);
60 
62  virtual const DtEntityIdentifier& receiverId() const;
63 
65  virtual void setRequestId(unsigned long id);
66 
68  virtual unsigned long requestId() const;
69 
71  virtual void setRequestStatus(DtRequestStatus status);
72 
74  virtual DtRequestStatus requestStatus() const;
75 
77  virtual const char* name() const;
78 
80  virtual void printData() const;
81 
83  virtual void printDataToStream(std::ostream& stream) const;
84 
85  public:
86 
89  static DtInteraction* create();
90 
93  static void addCallback(DtExerciseConn* conn,
94  DtActionResponseInteractionCb cb, void* usr);
95 
98  static void removeCallback(DtExerciseConn* conn,
99  DtActionResponseInteractionCb cb, void* usr);
100 
101  protected:
102 
103  DtEntityIdentifier myOrigEnt;
104  DtEntityIdentifier myReceiveEnt;
105  int myRequestId;
106  DtRequestStatus myRequestStatus;
107 
108  };
109 
110  }
111 }
112 
113 #endif // DtTENA

Document ID: Generated on Wed Jan 30 18:15:18 EST 2019 from SVN revision 195534
Copyright © 2005-2019 VT MÄK. All Rights Reserved (www.mak.com)