12#ifndef WSFCOMPONENT_HPP
13#define WSFCOMPONENT_HPP
18#include "UtException.hpp"
20#include "wsf_export.h"
95 return aRolePtr !=
nullptr;
106 virtual bool PreInitialize(
double aSimTime);
107 virtual bool Initialize(
double aSimTime);
108 virtual bool Initialize2(
double aSimTime);
109 virtual void PreInput();
110 virtual bool ProcessInput(UtInput& aInput);
117template<
typename PARENT_TYPE>
125 : mParentPtr(nullptr)
130 : mParentPtr(
nullptr)
136 mParentPtr =
nullptr;
161 mParentPtr = aParentPtr;
WsfComponentT< WsfPlatform > WsfPlatformComponent
A convenient typedef for a platform component.
Definition WsfComponent.hpp:171
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
Definition WsfComponent.hpp:119
WsfComponentT & operator=(const WsfComponentT &) noexcept
Definition WsfComponent.hpp:134
~WsfComponentT() override=default
void SetComponentParent(ParentType *aParentPtr)
Definition WsfComponent.hpp:159
WsfComponentT(const WsfComponentT &) noexcept
Definition WsfComponent.hpp:129
PARENT_TYPE ParentType
This is needed to support the WsfComponentList template.
Definition WsfComponent.hpp:122
WsfComponentT()
Definition WsfComponent.hpp:124
virtual void ComponentParentChanged(ParentType *aParentPtr)
Definition WsfComponent.hpp:150
ParentType * GetComponentParent() const
Definition WsfComponent.hpp:154
Definition WsfComponent.hpp:39
virtual const int * GetComponentRoles() const =0
virtual WsfStringId GetComponentName() const =0
virtual ~WsfComponent()=default
virtual int GetComponentInitializationOrder() const
Definition WsfComponent.hpp:79
bool ComponentHasRole(int aRole)
Returns true if the component has the specified role.
Definition WsfComponent.hpp:99
virtual WsfComponent * CloneComponent() const =0
bool QueryInterfaceT(T *&aRolePtr)
Definition WsfComponent.hpp:92
virtual void * QueryInterface(int aRole)=0
Definition WsfComponentRoles.hpp:60