VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
testInter.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #ifndef TestInteraction_H_
7 #define TestInteraction_H_
8 
9 #if DtHLA
10 
12 #include <vl/exerciseConnHLA.h>
13 
14 #include <matrix/vlVector.h>
15 
16 class TestInteraction;
17 
22 typedef void (*TestInteractionCb)(TestInteraction* inter, void* usr);
23 
30 {
31 public:
32 
37 
41  virtual ~TestInteraction();
42 
46  TestInteraction(const TestInteraction& orig);
47 
52 
56  virtual const char* name() const;
57 
61  virtual void printData() const;
62 
63  // **************************************************************
64  // Inspector and mutator functions for the interaction class' data.
65  // These will look different for each DtInteraction subclass.
66  // None are required by VR-Link, but the class will not be
67  // particularly useful without a way to get data in and out in a
68  // typesafe manner.
69  // **************************************************************
70 
72  virtual void setNumber(int num);
73  virtual int number() const;
74 
76  virtual void setVector(const DtVector& vec);
77  virtual const DtVector& vector() const;
78 
79 public:
80 
86  static DtInteraction* create();
87 
94  static void addCallback(DtExerciseConn* conn,
95  TestInteractionCb cb, void* usr);
96  static void removeCallback(DtExerciseConn* conn,
97  TestInteractionCb cb, void* usr);
98 
99 protected:
100 
108  virtual const char* interactionClassToUse(DtExerciseConn* exConn) const;
109 
117  virtual DtInteractionDecoder* createDecoder(DtExerciseConn* exConn) const;
118 
119 
127  virtual DtInteractionEncoder* createEncoder(DtExerciseConn* exConn) const;
128 
129 protected:
130 
131  int myNum;
133 };
134 
135 #endif
136 #endif

Document ID: Generated on Mon Apr 8 04:49:21 EDT 2019 from SVN revision 197403
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)