WSF
WsfEW_RcvrComponent.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2003-2015 The Boeing Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12#ifndef WSFEW_RCVRCOMPONENT_HPP
13#define WSFEW_RCVRCOMPONENT_HPP
14
15#include "WsfEM_Rcvr.hpp"
16class WsfEW_EA_EP;
17#include "wsf_mil_export.h"
18
20
21class WSF_MIL_EXPORT WsfEW_RcvrComponent : public WsfEM_RcvrComponent
22{
23public:
24 static WsfEW_RcvrComponent* Find(const WsfEM_Rcvr& aRcvr);
26
30 ~WsfEW_RcvrComponent() override;
31
33
34 WsfStringId GetComponentName() const override;
35 WsfComponent* CloneComponent() const override;
36 const int* GetComponentRoles() const override;
37 void* QueryInterface(int aRole) override;
39
41
42 bool Initialize(double aSimTime) override;
44
46
47 void RemoveInteractor(WsfEM_Xmtr* aXmtrPtr) override;
49
51
52 WsfEW_EA_EP* GetElectronicProtect() const { return mElectronicProtectPtr; }
53 void SetElectronicProtect(WsfEW_EA_EP* aElectronicProtectPtr);
55
56private:
57 WsfEW_EA_EP* mElectronicProtectPtr;
58};
59
61
62#endif
#define WSF_DECLARE_COMPONENT_ROLE_TYPE(TYPE, ROLE)
Definition WsfComponentRoles.hpp:44
@ cWSF_COMPONENT_EW_RCVR
EW extension for WsfEM_Rcvr.
Definition WsfMilComponentRoles.hpp:26
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
Definition WsfComponent.hpp:39
virtual const int * GetComponentRoles() const =0
virtual WsfStringId GetComponentName() const =0
virtual bool Initialize(double aSimTime)
Definition WsfComponent.cpp:45
virtual WsfComponent * CloneComponent() const =0
virtual void * QueryInterface(int aRole)=0
Definition WsfEM_Rcvr.hpp:38
virtual void RemoveInteractor(WsfEM_Xmtr *aXmtrPtr)
Definition WsfEM_Rcvr.cpp:52
Definition WsfEM_Rcvr.hpp:68
Definition WsfEM_Xmtr.hpp:55
Definition WsfEW_EA_EP.hpp:38
Definition WsfEW_RcvrComponent.hpp:22
WsfEW_RcvrComponent & operator=(const WsfEW_RcvrComponent &)=delete
WsfEW_RcvrComponent()
Definition WsfEW_RcvrComponent.cpp:45
WsfEW_EA_EP * GetElectronicProtect() const
Definition WsfEW_RcvrComponent.hpp:52
static WsfEW_RcvrComponent * Find(const WsfEM_Rcvr &aRcvr)
Find the electronic warfare receiver component for the specified receiver.
Definition WsfEW_RcvrComponent.cpp:22
static WsfEW_RcvrComponent * FindOrCreate(WsfEM_Rcvr &aRcvr)
Definition WsfEW_RcvrComponent.cpp:33
Copyrights Multiple, All Rights Reserved