VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
exampleRemoteController.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 //\brief Contains DtExampleRemoteController class. The DtExampleRemoteController will show how to subclass and
9 
10 #pragma once
11 
13 
15 {
16 public:
18  DtExampleRemoteController(int receivePort = 9000);
19 
21  virtual ~DtExampleRemoteController() override;
22 
24  virtual bool loadScenario(const DtScenario& scenario,
25  DtBackendRemappingFcn fcn = 0, void* usrRemapping = 0,
26  DtLoadBalancingFcn = 0, void* usrBalancing = 0,
27  const std::vector<DtString>& simulationModelSetFiles = std::vector<DtString>(),
28  DtString* errorString = 0, int* numberOfObjectsToBeCreated = nullptr) override;
29 
31  static DtVrfRemoteController* Creator(int receivePort);
32 };
Definition: scenario.h:52
install a version of the DtVrlinkVrfRemoteController class and print a message to the console when a ...
Definition: exampleRemoteController.h:14
bool(* DtBackendRemappingFcn)(DtBackendMap *map, const std::set< DtSimulationAddress > &expectedBackends, void *usr)
Used by loadScenario to get replacements for missing backends.
Definition: backendMap.h:52
The main class for the remote control interface to VR-Forces. Instantiating this class allows the sen...
Definition: vrfRemoteController.h:206
virtual ~DtExampleRemoteController() override
DTOR.
virtual bool loadScenario(const DtScenario &scenario, DtBackendRemappingFcn fcn=0, void *usrRemapping=0, DtLoadBalancingFcn=0, void *usrBalancing=0, const std::vector< DtString > &simulationModelSetFiles=std::vector< DtString >(), DtString *errorString=0, int *numberOfObjectsToBeCreated=nullptr) override
Will print a message to the console (DtWarn level) when a scenario is loaded with the scenario file b...
DtExampleRemoteController(int receivePort=9000)
CTOR.
static DtVrfRemoteController * Creator(int receivePort)
Static creator called when creating the remote controller.
bool(* DtLoadBalancingFcn)(DtAddressMap *map, const DtVrfFileParser *parser, const DtList *backends, bool &remapped, void *usr, const DtString &userOptions)
Return true from this function to signal success of load balancing, however, set remapped to true if ...
Definition: scenario.h:575

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)