VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simulationBackendStartupHelper.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
7 
8 #pragma once
9 
10 #include <vrfGuiCore/vrfGuiCore.h>
12 #include <boost/function.hpp>
13 
14 #include <map>
15 #include <vector>
16 #include <string>
17 
18 namespace makVrv
19 {
20  class DtDe;
21  class DtUnicode;
22  class DtVrlinkDriver;
23 }
24 
25 class DtSimulationAddress;
26 class DtFilename;
27 
28 namespace makVrf
29 {
34  {
35  public:
37  typedef boost::function<bool (const DtSimulationAddress&, makVrv::DtVrlinkDriver*, makVrv::DtUnicode& error, bool startCombined)> StartupFunction;
38 
39  public:
42 
44  static DtSimulationBackendStartupHelper& instance(makVrv::DtDe& de);
45  static void registerInstance(makVrv::DtDe&, DtSimulationBackendStartupHelper*);
46 
47  public:
50  virtual bool startBackend(const DtSimulationAddress&, makVrv::DtUnicode& eror, bool startCombined = true);
51 
53  virtual void addStartupFunction(const std::string&, StartupFunction);
54 
56  virtual std::vector<std::string> getCommonCommandLineArguments(const DtSimulationAddress& addr, makVrv::DtVrlinkDriver*, bool startCombined) const;
57 
59  virtual std::vector<std::string> getCommonHLAArguments(makVrv::DtVrlinkDriver*) const;
60 
61  protected:
63  virtual bool startupDIS(const DtSimulationAddress&, makVrv::DtVrlinkDriver*, makVrv::DtUnicode& error, bool startCombined);
64  virtual bool startupHLA13(const DtSimulationAddress&, makVrv::DtVrlinkDriver*, makVrv::DtUnicode& error, bool startCombined);
65  virtual bool startupHLA1516(const DtSimulationAddress&, makVrv::DtVrlinkDriver*, makVrv::DtUnicode& error, bool startCombined);
66  virtual bool startupHLA1516e(const DtSimulationAddress&, makVrv::DtVrlinkDriver*, makVrv::DtUnicode& error, bool startCombined);
67 
68  virtual bool startBackend(const DtFilename& location, const DtFilename& appName, const std::vector<std::string>& arguments);
69 
70  protected:
72 
73  typedef std::map<std::string, StartupFunction> StartupFunctions;
75  };
76 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)