VR-Exchange 2.8 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
commentInteraction.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 
14 #include <vlTena/dllExport.h>
16 #include <vl/globalObjectDesignator.h>
17 #include <vlpi/entityIdentifier.h>
18 
19 namespace MAKVrExchange
20 {
21 
22  namespace DtTenaBroker
23  {
24 
25  class DtCommentInteraction;
26 
28  typedef void (*DtCommentInteractionCb)(DtCommentInteraction* inter, void* usr);
29 
35  class DT_DLL_VLTENA DtCommentInteraction : public DtInteractionWithData
36  {
37  public:
38 
40  DtCommentInteraction();
41 
43  virtual ~DtCommentInteraction();
44 
46  DtCommentInteraction(const DtCommentInteraction& orig);
47 
49  DtCommentInteraction& operator=(
50  const DtCommentInteraction& 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 
66  virtual void setComment(const char *message, int size);
67 
71  virtual const char* comment() const;
72 
74  virtual const char* name() const;
75 
77  virtual void printData() const;
78 
80  virtual void printDataToStream(std::ostream& stream) const;
81 
82  public:
83 
86  static DtInteraction* create();
87 
89  static void addCallback(DtExerciseConn* conn,
90  DtCommentInteractionCb cb, void* usr);
91 
93  static void removeCallback(DtExerciseConn* conn,
94  DtCommentInteractionCb cb, void* usr);
95 
96  protected:
97 
98  DtEntityIdentifier myOrigEnt;
99  DtEntityIdentifier myReceiveEnt;
100 
101  };
102 
103  }
104 }
105 
106 #endif // DtTENA
Contains the DtInteractionWithData class declaration.
#define DT_DLL_VLTENA
Definition: brokers/tenaBroker/vlTena/dllExport.h:26

Document ID: Generated on Tue Aug 16 16:15:26 EDT 2022 from SVN revision 245901
Copyright © 2005-2022 MAK Technologies. All Rights Reserved (www.mak.com)