VR-Forces Developer's Guide
 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.

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

Classes

struct  BaseArgs
 
struct  DisArgs
 
struct  Hla13Args
 
struct  Hla1516Args
 
struct  Hla1516eArgs
 
struct  Hla4Args
 
struct  LegionArgs
 
struct  VrfGuiArgs
 

Public Member Functions

 DtVrfGuiCommandLineParser ()
 
virtual ~DtVrfGuiCommandLineParser () override
 
virtual void processCommandLine (makVrv::DtVrvApplicationConfiguration &appConfig, int argc, char **argv) override
 
virtual void removeAutoStartDriver ()
 
void setAllowObserverModeFlags (bool)
 
virtual void addAdditionalCommandLineArgument (DtCmdLine::Arg *addlArg)
 
const std::string & autoStartDriver () const
 
- Public Member Functions inherited from makVrv::DtStealthCommandLineProcessor
 DtStealthCommandLineProcessor ()
 
virtual ~DtStealthCommandLineProcessor ()
 
DtDisplayConfiguration embeddedDisplayConfig () const
 
- 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) override
 
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)
 
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
 
virtual void addLegionCommandArguments (std::vector< DtCmdLine::Arg * > &, makVrv::DtStealthCommandLineProcessor::StealthArgs &)
 
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 addHla4CommandArguments (std::vector< DtCmdLine::Arg * > &, makVrv::DtStealthCommandLineProcessor::StealthArgs &)
 
virtual void setupDefaultProtocolArguments (BaseArgs &)
 
virtual std::vector< std::string > defaultObserverMode () const
 
- Protected Member Functions inherited from makVrv::DtStealthCommandLineProcessor
virtual void setupArguments (StealthArgs &args, std::vector< DtCmdLine::Arg * > &argumentOrder)
 
virtual void setupShowConsoleEnv (StealthArgs &args)
 

Protected Attributes

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

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 ( )
overridevirtual

Member Function Documentation

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

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 
)
overrideprotectedvirtual

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::addLegionCommandArguments ( std::vector< DtCmdLine::Arg * > &  ,
makVrv::DtStealthCommandLineProcessor::StealthArgs  
)
protectedvirtual
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::addHla4CommandArguments ( 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 Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)