|
WSF
|
#include <WsfComponent.hpp>


Public Types | |
| typedef PARENT_TYPE | ParentType |
| This is needed to support the WsfComponentList template. | |
Public Member Functions | |
| WsfComponentT () | |
| WsfComponentT (const WsfComponentT &) noexcept | |
| WsfComponentT & | operator= (const WsfComponentT &) noexcept |
| ~WsfComponentT () override=default | |
| Public Member Functions inherited from WsfComponent | |
| virtual | ~WsfComponent ()=default |
| virtual WsfComponent * | CloneComponent () const =0 |
| virtual WsfStringId | GetComponentName () const =0 |
| virtual const int * | GetComponentRoles () const =0 |
| virtual void * | QueryInterface (int aRole)=0 |
| virtual int | GetComponentInitializationOrder () const |
| template<typename T> | |
| bool | QueryInterfaceT (T *&aRolePtr) |
| bool | ComponentHasRole (int aRole) |
| Returns true if the component has the specified role. | |
| virtual bool | PreInitialize (double aSimTime) |
| virtual bool | Initialize (double aSimTime) |
| virtual bool | Initialize2 (double aSimTime) |
| virtual void | PreInput () |
| virtual bool | ProcessInput (UtInput &aInput) |
Parent connection methods. | |
Instances of this class will have their parent connects maintained through copy. | |
| virtual void | ComponentParentChanged (ParentType *aParentPtr) |
| ParentType * | GetComponentParent () const |
| void | SetComponentParent (ParentType *aParentPtr) |
A templated version of a component that supports type-specific attachment. This allows the WsfComponentList template to automatically maintain type-safe component attachments in AddComponent and copy construction.
| typedef PARENT_TYPE WsfComponentT< PARENT_TYPE >::ParentType |
This is needed to support the WsfComponentList template.
|
inline |
|
inlinenoexcept |
|
overridedefault |
|
inlinevirtual |
The parent to which the component is attached has been updated. This virtual method is called whenever the components parent attachment has been changed. This is provided so derived class receives notification of the change.
| aParentPtr | Pointer to the new parent. The new parent may be null if the attachment was severed. |
Reimplemented in wsf::cyber::Protect, WsfCommandChain, WsfIntersectMesh, WsfLASER_XmtrComponent, WsfNavigationErrors, WsfPlatformPart, WsfTrackManager, WsfWeaponPlatformExtension, and WsfZone.
Referenced by WsfComponentT< WsfPlatform >::SetComponentParent().
|
inline |
Return the pointer to the parent. The return value will be zero if the component does not have a parent.
Referenced by WsfProcessorComponent::GetProcessor(), WsfSensorComponent::GetSensor(), WsfWeaponComponent::GetWeapon(), WsfXIO_WeaponComponent::GetXIO_Simulation(), WsfVariableBase::ObjectName(), wsf::altloc::ComponentInitialized::Print(), and wsf::altloc::ComponentInitialized::PrintCSV().
|
inlinenoexcept |
|
inline |
Set the pointer to the parent.
| aParentPtr | The pointer to the parent. This can be the null pointer if the component is being told it no longer has a parent. |
Referenced by WsfComponentListT< WsfComponentT< Comm > >::AddComponent(), WsfComponentListT< WsfComponentT< Comm > >::RemoveComponent(), WsfComponentListT< WsfComponentT< Comm > >::SetParentOfComponents(), UT_DEFINE_SCRIPT_METHOD(), and UT_DEFINE_SCRIPT_METHOD().