|
WSF
|
#include <WsfGuidanceProgram.hpp>
Static methods to return a reference to the type list associated with a scenario. | |
| using | FactoryPtr = WsfGuidanceProgram* (*)(const std::string&) |
| using | ObjectFactoryList = std::list<FactoryPtr> |
| ObjectFactoryList | mObjectFactoryList |
| The list of object factories. | |
| static WSF_MIL_EXPORT WsfGuidanceProgramTypes & | Get (WsfScenario &aScenario) |
| Return a modifiable reference to the type list associated with the specified scenario. | |
| static WSF_MIL_EXPORT const WsfGuidanceProgramTypes & | Get (const WsfScenario &aScenario) |
| Return a const reference to the type list associated with the specified scenario. | |
| WsfGuidanceProgramTypes () | |
| WSF_MIL_EXPORT void | AddObjectFactory (FactoryPtr aFactoryPtr) |
| WSF_MIL_EXPORT WsfGuidanceProgram * | CreateInstance (const std::string &aTypeName) const |
| static WsfGuidanceProgram * | PredefinedObjectFactory (const std::string &aTypeName) |
| The object factory for predefined guidance program types. | |
| using WsfGuidanceProgramTypes::FactoryPtr = WsfGuidanceProgram* (*)(const std::string&) |
| using WsfGuidanceProgramTypes::ObjectFactoryList = std::list<FactoryPtr> |
|
inline |
References mObjectFactoryList, and PredefinedObjectFactory().
| void WsfGuidanceProgramTypes::AddObjectFactory | ( | FactoryPtr | aFactoryPtr | ) |
Add an object factory for creating an instance from a fundamental type. The factory should be a static method and should be added only once.
References mObjectFactoryList.
| WsfGuidanceProgram * WsfGuidanceProgramTypes::CreateInstance | ( | const std::string & | aTypeName | ) | const |
References mObjectFactoryList, and WsfObject::SetType().
Referenced by wsf::six_dof::GuidanceComputer::Initialize(), WsfGuidanceComputer::Initialize(), and WsfP6DOF_GuidanceComputer::Initialize().
|
static |
Return a const reference to the type list associated with the specified scenario.
References WsfMilExtension::Get(), WsfMilExtension::GetGuidanceProgramTypes(), and WsfGuidanceProgramTypes().
|
static |
Return a modifiable reference to the type list associated with the specified scenario.
References WsfMilExtension::Get(), WsfMilExtension::GetGuidanceProgramTypes(), and WsfGuidanceProgramTypes().
Referenced by wsf::six_dof::GuidanceComputer::Initialize(), WsfGuidanceComputer::Initialize(), WsfP6DOF_GuidanceComputer::Initialize(), WsfGuidanceComputer::Phase::ProcessInput(), WsfGuidanceComputer::ProcessInput(), and WsfP6DOF_GuidanceComputer::ProcessInput().
|
staticprotected |
The object factory for predefined guidance program types.
Referenced by WsfGuidanceProgramTypes().
|
protected |
The list of object factories.
Referenced by AddObjectFactory(), CreateInstance(), and WsfGuidanceProgramTypes().