WSF
WsfEW_XmtrComponent.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_XMTRCOMPONENT_HPP
13#define WSFEW_XMTRCOMPONENT_HPP
14
15#include "WsfEM_Xmtr.hpp"
16class WsfEW_EA_EP;
17#include "wsf_mil_export.h"
18
20
21class WSF_MIL_EXPORT WsfEW_XmtrComponent : public WsfEM_XmtrComponent
22{
23public:
24 static WsfEW_XmtrComponent* Find(const WsfEM_Xmtr& aXmtr);
26
30 ~WsfEW_XmtrComponent() 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 WsfEW_EA_EP* GetElectronicAttack() const { return mElectronicAttackPtr; }
48 void SetElectronicAttack(WsfEW_EA_EP* aElectronicAttackPtr);
50
51private:
52 WsfEW_EA_EP* mElectronicAttackPtr;
53};
54
56
57#endif
#define WSF_DECLARE_COMPONENT_ROLE_TYPE(TYPE, ROLE)
Definition WsfComponentRoles.hpp:44
WsfComponentT< WsfEM_Xmtr > WsfEM_XmtrComponent
Definition WsfEM_Xmtr.hpp:36
@ cWSF_COMPONENT_EW_XMTR
EW extension for WsfEM_Xmtr.
Definition WsfMilComponentRoles.hpp:27
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_Xmtr.hpp:55
Definition WsfEW_EA_EP.hpp:38
Definition WsfEW_XmtrComponent.hpp:22
static WsfEW_XmtrComponent * FindOrCreate(WsfEM_Xmtr &aXmtr)
Definition WsfEW_XmtrComponent.cpp:30
WsfEW_XmtrComponent()
Definition WsfEW_XmtrComponent.cpp:42
WsfEW_EA_EP * GetElectronicAttack() const
EW-specific transmitter methods.
Definition WsfEW_XmtrComponent.hpp:47
static WsfEW_XmtrComponent * Find(const WsfEM_Xmtr &aXmtr)
Find the electronic warfare receiver component for the specified receiver.
Definition WsfEW_XmtrComponent.cpp:19
WsfEW_XmtrComponent & operator=(const WsfEW_XmtrComponent &)=delete
Copyrights Multiple, All Rights Reserved