VR-Link API Documentation for HLA 1516
tCommentInter.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #ifndef tCommentInter_H_
7 #define tCommentInter_H_
8 
12 
13 #if DtTENA
14 
15 #include "tInterWData.h"
16 #include <vlpi/entityIdentifier.h>
17 #include "globalObjDes.h"
18 
20 
22 typedef void (*DtCommentInteractionCb)(DtCommentInteraction* inter, void* usr);
23 
30 {
31 public:
34 
36  virtual ~DtCommentInteraction();
37 
40 
43  const DtCommentInteraction& orig);
44 
46  virtual void setSenderId(const DtEntityIdentifier& id);
47 
49  virtual const DtEntityIdentifier& senderId() const;
50 
52  virtual void setReceiverId(const DtEntityIdentifier& id);
53 
55  virtual const DtEntityIdentifier& receiverId() const;
56 
59  virtual void setComment(const char *message, int size);
60 
64  virtual const char* comment() const;
65 
67  virtual const char* name() const;
68 
70  virtual void printData() const;
71 
73  virtual void printDataToStream(std::ostream& stream) const;
74 
75 public:
76 
79  static DtInteraction* create();
80 
82  static void addCallback(DtExerciseConn* conn,
83  DtCommentInteractionCb cb, void* usr);
84 
86  static void removeCallback(DtExerciseConn* conn,
87  DtCommentInteractionCb cb, void* usr);
88 
89 protected:
90  DtEntityIdentifier myOrigEnt;
91  DtEntityIdentifier myReceiveEnt;
92 };
93 
94 #endif
95 #endif
96 
97 

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)