VR-Forces 5.0.2 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 
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) override;
29 
31  static DtVrfRemoteController* Creator(int receivePort);
32 };
bool(* DtLoadBalancingFcn)(DtAddressMap *map, const DtList *backends, bool &remapped, void *usr)
Return true from this function to signal success of load balancing, however, set remapped to true if ...
Definition: scenario.h:582
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:201
DtExampleRemoteController(int receivePort=9000)
CTOR.
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) override
Will print a message to the console (DtWarn level) when a scenario is loaded with the scenario file b...
static DtVrfRemoteController * Creator(int receivePort)
Static creator called when creating the remote controller.
virtual ~DtExampleRemoteController()
DTOR.

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)