VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
commentInteractionHLA.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 commentInteractionHLA_H_
8 #define commentInteractionHLA_H_
9 
10 #if DtHLA
11 
12 #include "interactionWithData.h"
13 #include "hostStructs.h"
14 #include <matrix/vlMath.h>
15 
16 
17 
21 
24 
25 
27 typedef void (*DtCommentInteractionCb)
28  (DtCommentInteraction* inter, void* usr);
29 
30 
31 
37 class DT_DLL_VL DtCommentInteraction : public DtInteractionWithData
38 {
39 public:
40 
43 
45  virtual ~DtCommentInteraction();
46 
49 
51  DtCommentInteraction& operator=(
52  const DtCommentInteraction& orig);
53 
55  virtual void printData() const;
56 
58  virtual void printDataToStream(std::ostream& stream) const;
59 
61  virtual void setSenderId(const DtEntityIdentifier& id);
62  virtual const DtEntityIdentifier& senderId() const;
63 
65  virtual void setReceiverId(const DtEntityIdentifier& id);
66  virtual const DtEntityIdentifier& receiverId() const;
67 
71  virtual void setComment(const char *message, int size);
72  virtual const char* comment() const;
73 
75  virtual const char* name() const;
76 
77 public:
78 
81  static DtInteraction* create();
82 
85  static void addCallback(DtExerciseConn* conn,
86  DtCommentInteractionCb cb, void* usr,
87  DtDDMRegionSP region = DtDDMRegionSP());
88  static void removeCallback(DtExerciseConn* conn,
89  DtCommentInteractionCb cb, void* usr,
90  DtDDMRegionSP region = DtDDMRegionSP());
91 
92 protected:
93 
94  DtEntityIdentifier myOrigEnt;
95  DtEntityIdentifier myReceiveEnt;
96 };
97 
98 #endif
99 #endif
100 
DtInteraction is an base class for representing DIS PDUs which don&#39;t have state.
Definition: interactionDIS.h:24
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnDIS.h:61
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtCommentPdu DtCommentInteraction
Definition: commentPdu.h:19
This file defines math constants and methods which may be useful in simulations.
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
This file is deprecated - Please see simulationAddress.h, entityIdentifier.h, entityType.h, burstDescriptor.h, and NetStructs.h.
Instances of DtCommentPdu are used to send/receive comment PDUs.
Definition: commentPdu.h:29

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)