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

The MAK Stealth Application's command line processor. More...

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

Classes

struct  BaseArgs
struct  DisArgs
struct  Hla13Args
struct  Hla1516Args
struct  Hla1516eArgs
struct  VrfGuiArgs

Public Member Functions

 DtVrfGuiCommandLineParser ()
virtual ~DtVrfGuiCommandLineParser ()
virtual void processCommandLine (makVrv::DtVrvApplicationConfiguration &appConfig, int argc, char **argv)
 Parse the command line and modify the appConfig accordingly.
virtual void removeAutoStartDriver ()
 Delete the driver created to start.
void setAllowObserverModeFlags (bool)
virtual void addAdditionalCommandLineArgument (DtCmdLine::Arg *addlArg)
 Adds a new command line argument that will be added when parsing the command line.
const std::string & autoStartDriver () const
- Public Member Functions inherited from makVrv::DtStealthCommandLineProcessor
 DtStealthCommandLineProcessor ()
 Creator a command line processor for Vantage Stealth.
virtual ~DtStealthCommandLineProcessor ()
 DTOR.
DtDisplayConfiguration embeddedDisplayConfig () const
 Create a default embedded display config for the stealth (to be used if no config was loaded via command line)
- Public Member Functions inherited from makVrv::DtVrvCommandLineProcessor
virtual ~DtVrvCommandLineProcessor ()

Protected Types

typedef boost::function< void(std::vector
< DtCmdLine::Arg * >
&, makVrv::DtStealthCommandLineProcessor::StealthArgs &)> 
DtAdditionalCommandsFcn

Protected Member Functions

virtual void processArgs (makVrv::DtVrvApplicationConfiguration &appConfig, StealthArgs &args)
 Modify the app configuration based on the passed-in command line arguments.
virtual std::vector
< DtCmdLine::Arg * > 
createDefaultArguments (VrfGuiArgs &args)
virtual void addArgumentParserAddition (const std::string &, DtAdditionalCommandsFcn fcn)
virtual void createDriver (const makVrv::DtVrvApplicationConfiguration &, const makVrv::DtConfiguration &, BaseArgs *, std::string &autoStarted)
 Removes all existing drivers created by VR-Forces from the drivers path and creates a new driver.
virtual std::string createDriver (const makVrv::DtVrvApplicationConfiguration &a, const makVrv::DtConfiguration &, const std::string &driverName, const std::string &driverClass, std::string &fullName)
virtual std::string createDriverFileName (const makVrv::DtVrvApplicationConfiguration &a, const std::string &driverClass, const std::string &driverName)
virtual void addHlaCommandArguments (std::vector< DtCmdLine::Arg * > &a, makVrv::DtStealthCommandLineProcessor::StealthArgs &args, Hla13Args *hlaArgs)
virtual void bindObserverModes (const std::vector< std::string > &, makVrf::DtVrfGuiApplication::ObserverModeBindings &) const
 Parses the observer modes binding line and places result in map. Format is Observer, Mode.
virtual void addDisCommandArguments (std::vector< DtCmdLine::Arg * > &, makVrv::DtStealthCommandLineProcessor::StealthArgs &)
virtual void addHla13CommandArguments (std::vector< DtCmdLine::Arg * > &, makVrv::DtStealthCommandLineProcessor::StealthArgs &)
virtual void addHla1516CommandArguments (std::vector< DtCmdLine::Arg * > &, makVrv::DtStealthCommandLineProcessor::StealthArgs &)
virtual void addHla1516eCommandArguments (std::vector< DtCmdLine::Arg * > &, makVrv::DtStealthCommandLineProcessor::StealthArgs &)
virtual void setupDefaultProtocolArguments (BaseArgs &)
virtual std::vector< std::string > defaultObserverMode () const
 Default observer mode in case of none. Plan_View is default.

Protected Attributes

std::map< std::string,
DtAdditionalCommandsFcn
myAdditionalCommands
std::string myAutoStartDriver
bool myAllowObserverModeFlags
std::vector< DtCmdLine::Arg * > myAdditionalCommandLineArguments

Detailed Description

The MAK Stealth Application's command line processor.

Member Typedef Documentation

typedef boost::function<void (std::vector<DtCmdLine::Arg*>&, makVrv::DtStealthCommandLineProcessor::StealthArgs&)> makVrf::DtVrfGuiCommandLineParser::DtAdditionalCommandsFcn
protected

Constructor & Destructor Documentation

makVrf::DtVrfGuiCommandLineParser::DtVrfGuiCommandLineParser ( )
virtual makVrf::DtVrfGuiCommandLineParser::~DtVrfGuiCommandLineParser ( )
virtual

Member Function Documentation

virtual void makVrf::DtVrfGuiCommandLineParser::processCommandLine ( makVrv::DtVrvApplicationConfiguration appConfig,
int  argc,
char **  argv 
)
virtual

Parse the command line and modify the appConfig accordingly.

Reimplemented from makVrv::DtStealthCommandLineProcessor.

virtual void makVrf::DtVrfGuiCommandLineParser::removeAutoStartDriver ( )
virtual

Delete the driver created to start.

void makVrf::DtVrfGuiCommandLineParser::setAllowObserverModeFlags ( bool  )
virtual void makVrf::DtVrfGuiCommandLineParser::addAdditionalCommandLineArgument ( DtCmdLine::Arg *  addlArg)
virtual

Adds a new command line argument that will be added when parsing the command line.

This class does not take memory ownership. It is up to the supplier of the argument to delete this argument

const std::string& makVrf::DtVrfGuiCommandLineParser::autoStartDriver ( ) const
inline

References myAutoStartDriver.

virtual void makVrf::DtVrfGuiCommandLineParser::processArgs ( makVrv::DtVrvApplicationConfiguration appConfig,
StealthArgs args 
)
protectedvirtual

Modify the app configuration based on the passed-in command line arguments.

Reimplemented from makVrv::DtStealthCommandLineProcessor.

virtual std::vector<DtCmdLine::Arg*> makVrf::DtVrfGuiCommandLineParser::createDefaultArguments ( VrfGuiArgs args)
protectedvirtual
virtual void makVrf::DtVrfGuiCommandLineParser::addArgumentParserAddition ( const std::string &  ,
DtAdditionalCommandsFcn  fcn 
)
protectedvirtual
virtual void makVrf::DtVrfGuiCommandLineParser::createDriver ( const makVrv::DtVrvApplicationConfiguration ,
const makVrv::DtConfiguration ,
BaseArgs ,
std::string &  autoStarted 
)
protectedvirtual

Removes all existing drivers created by VR-Forces from the drivers path and creates a new driver.

virtual std::string makVrf::DtVrfGuiCommandLineParser::createDriver ( const makVrv::DtVrvApplicationConfiguration a,
const makVrv::DtConfiguration ,
const std::string &  driverName,
const std::string &  driverClass,
std::string &  fullName 
)
protectedvirtual
virtual std::string makVrf::DtVrfGuiCommandLineParser::createDriverFileName ( const makVrv::DtVrvApplicationConfiguration a,
const std::string &  driverClass,
const std::string &  driverName 
)
protectedvirtual
virtual void makVrf::DtVrfGuiCommandLineParser::addHlaCommandArguments ( std::vector< DtCmdLine::Arg * > &  a,
makVrv::DtStealthCommandLineProcessor::StealthArgs args,
Hla13Args hlaArgs 
)
protectedvirtual
virtual void makVrf::DtVrfGuiCommandLineParser::bindObserverModes ( const std::vector< std::string > &  ,
makVrf::DtVrfGuiApplication::ObserverModeBindings  
) const
protectedvirtual

Parses the observer modes binding line and places result in map. Format is Observer, Mode.

virtual void makVrf::DtVrfGuiCommandLineParser::addDisCommandArguments ( std::vector< DtCmdLine::Arg * > &  ,
makVrv::DtStealthCommandLineProcessor::StealthArgs  
)
protectedvirtual
virtual void makVrf::DtVrfGuiCommandLineParser::addHla13CommandArguments ( std::vector< DtCmdLine::Arg * > &  ,
makVrv::DtStealthCommandLineProcessor::StealthArgs  
)
protectedvirtual
virtual void makVrf::DtVrfGuiCommandLineParser::addHla1516CommandArguments ( std::vector< DtCmdLine::Arg * > &  ,
makVrv::DtStealthCommandLineProcessor::StealthArgs  
)
protectedvirtual
virtual void makVrf::DtVrfGuiCommandLineParser::addHla1516eCommandArguments ( std::vector< DtCmdLine::Arg * > &  ,
makVrv::DtStealthCommandLineProcessor::StealthArgs  
)
protectedvirtual
virtual void makVrf::DtVrfGuiCommandLineParser::setupDefaultProtocolArguments ( BaseArgs )
protectedvirtual
virtual std::vector<std::string> makVrf::DtVrfGuiCommandLineParser::defaultObserverMode ( ) const
protectedvirtual

Default observer mode in case of none. Plan_View is default.

Member Data Documentation

std::map<std::string, DtAdditionalCommandsFcn> makVrf::DtVrfGuiCommandLineParser::myAdditionalCommands
protected
std::string makVrf::DtVrfGuiCommandLineParser::myAutoStartDriver
protected

Referenced by autoStartDriver().

bool makVrf::DtVrfGuiCommandLineParser::myAllowObserverModeFlags
protected
std::vector<DtCmdLine::Arg*> makVrf::DtVrfGuiCommandLineParser::myAdditionalCommandLineArguments
protected

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

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)