VR-Link API Documentation for HLA 1.3
 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 MAK Technologies, Inc
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 
38 {
39 public:
40 
43 
45  virtual ~DtCommentInteraction();
46 
49 
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 
96 };
97 
98 #endif
99 #endif
100 
DtInteraction is an abstract base class for representing HLA interactions (or events) (as opposed to ...
Definition: interactionHLA.h:33
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
class DtInteractionWithData:
Definition: interactionWithData.h:29
DtEntityIdentifier myOrigEnt
Definition: commentInteractionHLA.h:94
This file provides a declaration of the class DtInteractionWithData.
virtual void printData() const
Print the interaction&#39;s data to DtInfo.
static void removeCallback(DtExerciseConn *conn, const std::vector< DtString > *classes, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
This file defines math constants and methods which may be useful in simulations.
DtInteractionWithData & operator=(const DtInteractionWithData &orig)
assignment operator
virtual const char * name() const =0
Name of the interaction. (Not necessarily the ClassName from the FOM.)
static void addCallback(DtExerciseConn *conn, const std::vector< DtString > *classes, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
Register/Deregister callback function cb with conn, on all interaction class name (char*) contained i...
Instances of DtCommentInteraction are used to represent Comment Interactions in the RPR FOM...
Definition: commentInteractionHLA.h:37
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
DtBoost::shared_ptr< DtDDMRegion > DtDDMRegionSP
Definition: region13.h:31
This file is deprecated - Please see simulationAddress.h, entityIdentifier.h, entityType.h, burstDescriptor.h, and NetStructs.h.
DtEntityIdentifier myReceiveEnt
Definition: commentInteractionHLA.h:95
void(* DtCommentInteractionCb)(DtCommentInteraction *inter, void *usr)
Comment interaction callback function signature.
Definition: commentInteractionHLA.h:28
virtual void printDataToStream(std::ostream &stream) const
Print the interaction&#39;s data to the specified stream.

Document ID: Generated on Thu Sep 19 02:12:35 EDT 2024 from SVN revision 269601
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)