VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrf::DtSimulationBackendStartupHelper Class Reference

This class will, given the current front-end protocol, start a back-end with the command line arguments available to communicate with the front-end given the simulation address. More...

Inheritance diagram for makVrf::DtSimulationBackendStartupHelper:
Inheritance graph
[legend]

Public Types

typedef boost::function< bool(const
DtSimulationAddress
&, makVrv::DtVrlinkDriver
*, makVrv::DtUnicode &error,
bool startCombined)> 
StartupFunction
 Prototype for function that can be called for a given driver to start a back-end.

Public Member Functions

 DtSimulationBackendStartupHelper (makVrv::DtDe &)
virtual ~DtSimulationBackendStartupHelper ()
virtual bool startBackend (const DtSimulationAddress &, makVrv::DtUnicode &eror, bool startCombined=true)
 Starts the back-end with the given simulation address.
virtual void addStartupFunction (const std::string &, StartupFunction)
 Adds a new server startup function by driver name (DtDisDriver, DtHla13Driver, DtHla1516Driver, DtHla1516eDriver) to be called to start a back-end.
virtual std::vector< std::string > getCommonCommandLineArguments (const DtSimulationAddress &addr, makVrv::DtVrlinkDriver *, bool startCombined) const
 Will return common arguments that are used for all protocols based on the driver.
virtual std::vector< std::string > getCommonHLAArguments (makVrv::DtVrlinkDriver *) const
 Get common HLA arguments.
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor.
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor.

Static Public Member Functions

static
DtSimulationBackendStartupHelper
instance (makVrv::DtDe &de)
 Returns instance of the DtSimulationBackendStartupHelper.
static void registerInstance (makVrv::DtDe &, DtSimulationBackendStartupHelper *)

Protected Types

typedef std::map< std::string,
StartupFunction
StartupFunctions

Protected Member Functions

virtual bool startupDIS (const DtSimulationAddress &, makVrv::DtVrlinkDriver *, makVrv::DtUnicode &error, bool startCombined)
 Various startup functions.
virtual bool startupHLA13 (const DtSimulationAddress &, makVrv::DtVrlinkDriver *, makVrv::DtUnicode &error, bool startCombined)
virtual bool startupHLA1516 (const DtSimulationAddress &, makVrv::DtVrlinkDriver *, makVrv::DtUnicode &error, bool startCombined)
virtual bool startupHLA1516e (const DtSimulationAddress &, makVrv::DtVrlinkDriver *, makVrv::DtUnicode &error, bool startCombined)
virtual bool startBackend (const DtFilename &location, const DtFilename &appName, const std::vector< std::string > &arguments)

Protected Attributes

makVrv::DtDemyDe
StartupFunctions myStartupFunctions

Detailed Description

This class will, given the current front-end protocol, start a back-end with the command line arguments available to communicate with the front-end given the simulation address.

It will start as a detached process, and, if the flag to tie it to the front-end is true, will also send the front-end PID such that when the front-end exits the back-end will too, as if it has started in combined mode

Member Typedef Documentation

typedef boost::function<bool (const DtSimulationAddress&, makVrv::DtVrlinkDriver*, makVrv::DtUnicode& error, bool startCombined)> makVrf::DtSimulationBackendStartupHelper::StartupFunction

Prototype for function that can be called for a given driver to start a back-end.

Constructor & Destructor Documentation

makVrf::DtSimulationBackendStartupHelper::DtSimulationBackendStartupHelper ( makVrv::DtDe )
virtual makVrf::DtSimulationBackendStartupHelper::~DtSimulationBackendStartupHelper ( )
virtual

Member Function Documentation

static DtSimulationBackendStartupHelper& makVrf::DtSimulationBackendStartupHelper::instance ( makVrv::DtDe de)
static

Returns instance of the DtSimulationBackendStartupHelper.

static void makVrf::DtSimulationBackendStartupHelper::registerInstance ( makVrv::DtDe ,
DtSimulationBackendStartupHelper  
)
static
virtual bool makVrf::DtSimulationBackendStartupHelper::startBackend ( const DtSimulationAddress &  ,
makVrv::DtUnicode eror,
bool  startCombined = true 
)
virtual

Starts the back-end with the given simulation address.

Will return false if there is a failure and the error string will contain the reason why

virtual void makVrf::DtSimulationBackendStartupHelper::addStartupFunction ( const std::string &  ,
StartupFunction   
)
virtual

Adds a new server startup function by driver name (DtDisDriver, DtHla13Driver, DtHla1516Driver, DtHla1516eDriver) to be called to start a back-end.

virtual std::vector<std::string> makVrf::DtSimulationBackendStartupHelper::getCommonCommandLineArguments ( const DtSimulationAddress &  addr,
makVrv::DtVrlinkDriver ,
bool  startCombined 
) const
virtual

Will return common arguments that are used for all protocols based on the driver.

virtual std::vector<std::string> makVrf::DtSimulationBackendStartupHelper::getCommonHLAArguments ( makVrv::DtVrlinkDriver ) const
virtual

Get common HLA arguments.

virtual bool makVrf::DtSimulationBackendStartupHelper::startupDIS ( const DtSimulationAddress &  ,
makVrv::DtVrlinkDriver ,
makVrv::DtUnicode error,
bool  startCombined 
)
protectedvirtual

Various startup functions.

virtual bool makVrf::DtSimulationBackendStartupHelper::startupHLA13 ( const DtSimulationAddress &  ,
makVrv::DtVrlinkDriver ,
makVrv::DtUnicode error,
bool  startCombined 
)
protectedvirtual
virtual bool makVrf::DtSimulationBackendStartupHelper::startupHLA1516 ( const DtSimulationAddress &  ,
makVrv::DtVrlinkDriver ,
makVrv::DtUnicode error,
bool  startCombined 
)
protectedvirtual
virtual bool makVrf::DtSimulationBackendStartupHelper::startupHLA1516e ( const DtSimulationAddress &  ,
makVrv::DtVrlinkDriver ,
makVrv::DtUnicode error,
bool  startCombined 
)
protectedvirtual
virtual bool makVrf::DtSimulationBackendStartupHelper::startBackend ( const DtFilename &  location,
const DtFilename &  appName,
const std::vector< std::string > &  arguments 
)
protectedvirtual

Member Data Documentation

makVrv::DtDe& makVrf::DtSimulationBackendStartupHelper::myDe
protected
StartupFunctions makVrf::DtSimulationBackendStartupHelper::myStartupFunctions
protected

The documentation for this class was generated from the following file:

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)