VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
testSimpInter.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 TestInteraction_H_
8 #define TestInteraction_H_
9 
10 #if DtHLA
11 
12 #include <vl/interactionHLA.h>
13 #include <matrix/vlVector.h>
14 #include <vl/exerciseConnHLA.h>
15 
17 
22 typedef void (*TestSimpleInteractionCb)(TestSimpleInteraction* inter, void* usr);
23 
30 {
31 public:
32 
37 
41  virtual ~TestSimpleInteraction();
42 
47 
52 
61 #if DtHLA_1516
62  virtual const RTI::ParameterHandleValueMap& phvm() const;
63 #else
64  virtual const RTI::ParameterHandleValuePairSet& phvps() const;
65 #endif
66 
75 #if DtHLA_1516
76  virtual void setFromPhvm(const RTI::ParameterHandleValueMap& pvMap);
77 #else
78  virtual void setFromPhvps(const RTI::ParameterHandleValuePairSet& pvSet);
79 #endif
80 
84  virtual const char* name() const;
85 
89  virtual void printData() const;
90 
98 
100  virtual void setNumber(int num);
101  virtual int number() const;
102 
104  virtual void setVector(const DtVector& vec);
105  virtual const DtVector& vector() const;
106 
107 public:
108 
114  static DtInteraction* create();
115 
122  static void addCallback(DtExerciseConn* conn,
123  TestSimpleInteractionCb cb, void* usr);
124  static void removeCallback(DtExerciseConn* conn,
125  TestSimpleInteractionCb cb, void* usr);
126 
127 protected:
128 
136  virtual const char* interactionClassToUse(DtExerciseConn* exConn) const;
137 
138 protected:
139 
141  int myNum;
143 };
144 
145 #endif
146 #endif

Document ID: Generated on Thu Feb 22 04:26:36 EST 2018 from SVN revision 186468
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)