refs #848, parse command line in simulator context

* forward to driver if applicable
* hook up with facade to receive command lines
This commit is contained in:
Klaus Basan
2016-12-31 05:06:50 +01:00
committed by Mathew Sutcliffe
parent 0c720c7c71
commit 15020b2d5f
7 changed files with 53 additions and 1 deletions

View File

@@ -73,7 +73,8 @@ namespace BlackCore
void gracefulShutdown();
public slots:
//! \name Interface implementations
// ----------------------------- context interface -----------------------------
//! \publicsection
//! @{
virtual BlackMisc::Simulation::CSimulatorPluginInfo getSimulatorPluginInfo() const override;
virtual BlackMisc::Simulation::CSimulatorPluginInfoList getAvailableSimulatorPlugins() const override;
@@ -102,6 +103,17 @@ namespace BlackCore
virtual void enableMatchingMessages(bool enabled) override;
//! @}
//! \ingroup commandline
//! @{
//! <pre>
//! .plugin forwared to plugin, see details there
//! .driver .drv forwared to plugin (same as above)
//! </pre>
//! @}
//! \copydoc IContextSimulator::parseCommandLine
virtual bool parseCommandLine(const QString &commandLine, const BlackMisc::CIdentifier &originator) override;
// ----------------------------- context interface -----------------------------
protected:
//! Constructor
CContextSimulator(CCoreFacadeConfig::ContextMode, CCoreFacade *runtime);