VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
hlaObjectFactory.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 
9 #ifndef DtHlaObjectFactory_H_
10 #define DtHlaObjectFactory_H_
11 
12 #if DtHLA
13 
14 
15 #include "hlaObject.h"
16 #include <map>
17 
21 {
22 public:
23 
25  typedef DtHlaObject* (*DtHlaObjectCreator) (DtExerciseConn* conn,
26 #if DtHLA_1516
27  RTI::ObjectInstanceHandle id,
28 #else
29  RTI::ObjectHandle id,
30 #endif
31  const char* name, DtObjClassDesc& cDesc, bool reflecting);
32 
33 public:
34 
37 
39  virtual ~DtHlaObjectFactory();
40 
41 private:
42 
45 
47  DtHlaObjectFactory& operator=(const DtHlaObjectFactory& orig);
48 
49 public:
50 
54  virtual DtHlaObject* createHlaObject(
55  RTI::ObjectClassHandle handle,
56 #if DtHLA_1516
57  RTI::ObjectInstanceHandle id,
58 #else
59  RTI::ObjectHandle id,
60 #endif
61  const char* name,
62  bool reflecting);
68  virtual DtHlaObjectCreator addCreator(RTI::ObjectClassHandle handle,
69  DtHlaObjectCreator creator);
70 
72  virtual DtHlaObjectCreator creator(RTI::ObjectClassHandle handle);
73 
74 protected:
75 
77  typedef std::map<RTI::ObjectClassHandle, DtHlaObjectCreator> ObjClassHandleToCreatorMap;
79 
81 };
82 
83 #endif
84 #endif
85 
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
This file provides a declaration of the class DtHlaObject.
std::map< RTI::ObjectClassHandle, DtHlaObjectCreator > ObjClassHandleToCreatorMap
A list that maps class handles (DtIntHashKeys) to DtHlaObjectCreators.
Definition: hlaObjectFactory.h:77
An instance of DtObjClassDesc is a &quot;class descriptor&quot; for an HLA Object class.
Definition: objClassDesc13.h:41
Instances of DtHlaObject are used to represent HLA objects which are communicated across the network...
Definition: hlaObject.h:58
ObjClassHandleToCreatorMap myCreators
Definition: hlaObjectFactory.h:78
DtExerciseConn * myConn
Definition: hlaObjectFactory.h:80
Instances of DtHlaObjectFactory are used to create HLA objects.
Definition: hlaObjectFactory.h:20

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)