VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
interactionFactory.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #ifndef DtInteractionFactory_H_
7 #define DtInteractionFactory_H_
8 
13 
14 #if DtHLA
15 
16 
17 #include <vlutil/vlMachineTypes.h>
18 #include "rtiNamespace.h"
19 #include <map>
20 
21 
24 class DT_DLL_VL DtInterClassDesc;
25 
29 class DT_DLL_VL DtInteractionFactory
30 {
31 public:
32 
34  typedef DtInteraction* (*DtInteractionCreator)();
35 
36 public:
37 
39  DtInteractionFactory(DtExerciseConn* exConn);
40 
42  virtual ~DtInteractionFactory();
43 
47  virtual DtInteraction* createInteraction(
48  RTI::InteractionClassHandle handle,
49 #if DtHLA_1516
50  const RTI::ParameterHandleValueMap& pairMap);
51 #else
52  const RTI::ParameterHandleValuePairSet& pairSet);
53 #endif
54 
61  virtual DtInteractionCreator addCreator(
62  RTI::InteractionClassHandle handle,
63  DtInteractionCreator creator);
64  virtual DtInteractionCreator addCreator(
65  const char* className,
66  DtInteractionCreator creator);
67 
68  virtual DtInteractionCreator creator(RTI::InteractionClassHandle handle);
69 
70 protected:
71 
73  DtInteractionFactory(const DtInteractionFactory& orig);
74 
76  DtInteractionFactory& operator=(const DtInteractionFactory& orig);
77 
78 protected:
79 
80  typedef std::map<RTI::InteractionClassHandle, DtInteractionCreator>
81  InterClassHandleToCreatorMap;
82 
83  InterClassHandleToCreatorMap myCreators;
84 
85  DtExerciseConn* myExConn;
86 };
87 
88 #endif
89 #endif
90 
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
This file contains typedefs for machine dependant types.

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)