VR-Forces 4.2 Class Documentation
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)

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 (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::DtConfiguration &c, const std::string &driverName, const std::string &driverClass, std::string &fullName)
virtual std::string createDriverFileName (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

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.

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

Delete the driver created to start.

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

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

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 ( 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::DtConfiguration &  c,
const std::string &  driverName,
const std::string &  driverClass,
std::string &  fullName 
)
protectedvirtual
virtual std::string makVrf::DtVrfGuiCommandLineParser::createDriverFileName ( 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
bool makVrf::DtVrfGuiCommandLineParser::myAllowObserverModeFlags
protected

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

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)