WSF
WsfDefaultApplicationExtension< SCENARIO_EXTENSION > Class Template Reference

An application extension which simply creates a scenario extension for each scenario. More...

#include <WsfApplicationExtension.hpp>

Inheritance diagram for WsfDefaultApplicationExtension< SCENARIO_EXTENSION >:
Collaboration diagram for WsfDefaultApplicationExtension< SCENARIO_EXTENSION >:

Public Member Functions

void ScenarioCreated (WsfScenario &aScenario) override
Public Member Functions inherited from WsfApplicationExtension
 WsfApplicationExtension ()
 Constructor.
 ~WsfApplicationExtension () override
WsfApplicationGetApplication () const
virtual int ProcessCommandLine (WsfStandardApplication::Options &aOptions, int aArgc, char *aArgv[])
virtual void PrintCommandLineArguments () const
virtual void PrintGrammar (std::ostream &aOut)
virtual void ProcessCommandLineCommands ()
virtual void AddedToApplication (WsfApplication &aApplication)
virtual void SimulationCreated (WsfSimulation &aSimulation)
Public Member Functions inherited from WsfExtension
virtual ~WsfExtension ()=default
const std::string & GetExtensionName () const

Additional Inherited Members

Protected Member Functions inherited from WsfExtension
void InitializeExtensionName (const std::string &aName)

Detailed Description

template<typename SCENARIO_EXTENSION>
class WsfDefaultApplicationExtension< SCENARIO_EXTENSION >

An application extension which simply creates a scenario extension for each scenario.

Member Function Documentation

◆ ScenarioCreated()

template<typename SCENARIO_EXTENSION>
void WsfDefaultApplicationExtension< SCENARIO_EXTENSION >::ScenarioCreated ( WsfScenario & aScenario)
inlineoverridevirtual

Called in response to the creation of a WsfScenario object. This is called at the end of the WsfScenario constructor. A derived class may provide this method to do the following:

  • Register a scenario extension to register new types and access the input stream to interpret commands, e.g.:
    aScenario.RegisterExtension("my_extension", new MyScenarioExtension);
  • If a scenario extension is not being created, register new type objects or object factories, e.g.:
    aScenario.GetMoverTypes().AddCoreType("MY_MOVER", new MyMover(aScenario));
    aScenario.GetAntennaPatternTypes().AddObjectFactor(MyAntennaPattern::ObjectFactory);
Parameters
aScenarioThe scenario object that is being created.
See also
WsfScenarioExtension.

Reimplemented from WsfApplicationExtension.

References WsfExtension::GetExtensionName(), and WsfPrivate::RegisterScenarioExtension().


The documentation for this class was generated from the following file:
Copyrights Multiple, All Rights Reserved