VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfGuiNetworkFactory.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
7 
9 
10 #pragma once
11 
14 
15 #include <boost/function.hpp>
16 
19 
20 namespace makVrv
21 {
22  class DtDe;
23  class DtBaseConnection;
24 }
25 
26 namespace makVrf
27 {
28  class DtVrfConnectionHelper;
29  class DtVantageToLegionIdMapper;
30  class DtStateDataManager;
32 
34  typedef boost::function<DtVrfRemoteController* (int)> VrfRemoteControllerCreatorFcn;
35 
36  typedef DtVrfMessageInterface* (*DtVrfMessageInterfaceCreatorFcn)(DtCommunicationManager* exConn, bool useDefaultInterfaceFactory);
37  typedef DtVrfConnectionHelper* (*DtVrfConnectionHelperCreatorFcn)(makVrv::DtDe& de, bool inThread);
38  typedef DtVantageToLegionIdMapper* (*DtVantageToLegionIdMapperCreatorFcn)(DtStateDataManager*, makVrv::DtBaseConnection& c);
39  typedef DtVrfCommunicationManager* (*DtVrfCommunicationManagerCreatorFcn)(const DtSimulationAddress&, makVrf::DtStateDataManager* sm);
40 
42  {
43  public:
46  static DtVrfRemoteController* createRemoteController(int receivePort = 9000);
47  static void setRemoteControllerCreatorFcn(VrfRemoteControllerCreatorFcn);
48  static VrfRemoteControllerCreatorFcn remoteControllerCreatorFcn();
49  static DtVrfRemoteController* defaultRemoteControllerCreatorFcn(int receivePort = 9000);
50 
52  static DtVrfMessageInterface* createMessageInterface(DtCommunicationManager*, bool useDefaultFactory = true);
53  static void setMessageInterfaceCreatorFcn(DtVrfMessageInterfaceCreatorFcn);
54  static DtVrfMessageInterfaceCreatorFcn messageInterfaceCreatorFcn();
55 
57  static DtVrfCommunicationManager* createCommunicationManager(const DtSimulationAddress&, DtStateDataManager* em = 0);
58  static void setCommunicationManagerCreatorFcn(DtVrfCommunicationManagerCreatorFcn);
59 
60  static DtVrfConnectionHelper* createVrfConnectionHelper(makVrv::DtDe&, bool inThread);
61  static void setVrfConnectionHelperCreatorFcn(DtVrfConnectionHelperCreatorFcn);
62 
63  static DtVantageToLegionIdMapper* createVantageToLegionIdMapper(DtStateDataManager*, makVrv::DtBaseConnection& c);
64  static void setVantageToLegionIdMapperCreatorFcn(DtVantageToLegionIdMapperCreatorFcn);
66 
67  protected:
69 
72 
75  };
76 }
This class allows itself to be registered with the connection.
Definition: vrfCommunicationManager.h:25
Definition: vantageToLegionIdMapper.h:28
static DtVrfCommunicationManagerCreatorFcn thsCommuncationManagerCreatorFcn
While you can supply your own creator, your creator must call the method that passes 0 for the state ...
Definition: vrfGuiNetworkFactory.h:74
Helper code for connectors. Does not exist in it&#39;s own project but is included by all projects that u...
Definition: vrfConnectionHelper.h:129
DtVantageToLegionIdMapper *(* DtVantageToLegionIdMapperCreatorFcn)(DtStateDataManager *, makVrv::DtBaseConnection &c)
Definition: vrfGuiNetworkFactory.h:38
Definition: vrfGuiNetworkFactory.h:41
The DtBaseConnection is an abstract class.
Definition: DtBaseConnection.h:35
static DtVrfConnectionHelperCreatorFcn theVrfConnectionHelperCreatorFcn
Definition: vrfGuiNetworkFactory.h:70
The main class for the remote control interface to VR-Forces. Instantiating this class allows the sen...
Definition: vrfRemoteController.h:214
The DtCommunicationManager class is a convenience class that will create both the DtNetworkInterfaceM...
Definition: communicationManager.h:54
boost::function< DtVrfRemoteController *(int)> VrfRemoteControllerCreatorFcn
Parameter for remote controller creator function is the receive port of the file transporter. Default is 9000.
Definition: vrfGuiNetworkFactory.h:31
static DtVantageToLegionIdMapperCreatorFcn theVantageToLegionIdMapperCreatorFcn
Definition: vrfGuiNetworkFactory.h:71
DtVrfMessageInterface *(* DtVrfMessageInterfaceCreatorFcn)(DtCommunicationManager *exConn, bool useDefaultInterfaceFactory)
Definition: vrfGuiNetworkFactory.h:36
DtVrfCommunicationManager *(* DtVrfCommunicationManagerCreatorFcn)(const DtSimulationAddress &, makVrf::DtStateDataManager *sm)
Definition: vrfGuiNetworkFactory.h:39
#define DT_DLL_vrfGuiNetworkCommon
This file is used to determine how to build.
Definition: vrfGuiNetworkCommonDefines.h:24
static VrfRemoteControllerCreatorFcn myRemoteControllerCreatorFcn
[vrfGuiNetworkFactory Creators]
Definition: vrfGuiNetworkFactory.h:68
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
DtVrfConnectionHelper *(* DtVrfConnectionHelperCreatorFcn)(makVrv::DtDe &de, bool inThread)
Definition: vrfGuiNetworkFactory.h:37
Definition: vrfMessageInterface.h:39
This class holds the state data that represents each simulation object in the system.
Definition: stateDataManager.h:76

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)