|
WSF
|
A template that defines a component factory for a given parent class. More...
#include <WsfComponentFactory.hpp>


Public Member Functions | |
| WsfComponentFactory () | |
| virtual void | PreInput (PARENT_TYPE &aParent) |
| Public Member Functions inherited from WsfComponentFactoryBase | |
| WsfComponentFactoryBase (int aParentRole) | |
| virtual | ~WsfComponentFactoryBase () |
| int | GetParentRole () const |
| Return the parent role of the factory. | |
Input processing. | |
Component factories will override one or more methods depending on their implementation. | |
| virtual bool | ProcessInput (UtInput &aInput, PARENT_TYPE &aParent) |
| virtual bool | ProcessAddOrEditCommand (UtInput &aInput, PARENT_TYPE &aParent, bool aIsAdding) |
| virtual bool | ProcessDeleteCommand (UtInput &aInput, PARENT_TYPE &aParent) |
Parent Pre-Initialization. | |
| virtual bool | PreInitialize (double aSimTime, PARENT_TYPE &aParent) |
Additional Inherited Members | |
| Protected Member Functions inherited from WsfComponentFactoryBase | |
| WsfScenario & | GetScenario () const |
| Returns a reference to the scenario to which this factory is registered. | |
A template that defines a component factory for a given parent class.
|
inline |
|
inlinevirtual |
Perform pre-initialization function. This is called by the parents Initialize prior to actually initializing the components on the parent (i.e.: calling Initialize and Initialize2 for each component). The primary reason for this method is to allow the factory to check for the existence of a required component and either add it or cause a failure. The method may examine the component list on the parent but it must not assume ANYTHING about the actual state of the components.
| aSimTime | The current simulation time. |
| aParent | The parent object being initialized. |
Reimplemented in wsf::comm::medium::ContainerFactory< PARENT >.
|
inlinevirtual |
Pre-input processing.
|
inlinevirtual |
Process the implicit or explicit 'add' or 'edit' command. This is typically used by the component factories whose parent is WsfPlatform. Others may use this if they follow similar syntax.
| aInput | The input stream. |
| aParent | The parent object. |
| aIsAdding | 'true' if the component is being added to the parent or 'false' if an existing component is to be edited. |
Reimplemented in impl::MultiresolutionComponentFactory< DerivedComponent >, and wsf::comm::medium::ContainerFactory< PARENT >.
|
inlinevirtual |
Process the explicit component 'delete' command. This is typically used by component factories whose parent is WsfPlatform.
| aInput | The input stream. |
| aParent | The parent object. |
Reimplemented in impl::MultiresolutionComponentFactory< DerivedComponent >, and wsf::comm::medium::ContainerFactory< PARENT >.
|
inlinevirtual |
Process input that may pertain to this component factory.
| aInput | The input stream. |
| aParent | The parent object. |