WSF
WsfMode.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 WSFMODE_HPP
13#define WSFMODE_HPP
14
15#include "wsf_export.h"
16
17class UtInput;
18class WsfModeList;
19#include "WsfNamed.hpp"
20
32{
33 friend class WsfModeList;
34
35public:
36 WsfMode();
37 ~WsfMode() override = default;
38
39 virtual WsfMode* Clone() const = 0;
40
41 virtual bool ProcessInput(UtInput& aInput);
42
46 virtual void Select(double aSimTime) {}
47
51 virtual void Deselect(double aSimTime) {}
52
54 size_t GetModeIndex() const { return mModeIndex; }
55
57 bool IsSelected() const { return mIsSelected; }
58
59private:
61 size_t mModeIndex;
62
64 bool mIsSelected;
65};
66
67#endif
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
Definition WsfModeList.hpp:31
virtual bool ProcessInput(UtInput &aInput)
Definition WsfMode.cpp:24
WsfMode()
Definition WsfMode.cpp:15
virtual void Deselect(double aSimTime)
Definition WsfMode.hpp:51
friend class WsfModeList
Definition WsfMode.hpp:33
virtual void Select(double aSimTime)
Definition WsfMode.hpp:46
virtual WsfMode * Clone() const =0
bool IsSelected() const
Returns 'true' if the mode is selected.
Definition WsfMode.hpp:57
size_t GetModeIndex() const
Return the index of this mode within its associated mode list.
Definition WsfMode.hpp:54
~WsfMode() override=default
WsfNamed()
Definition WsfNamed.cpp:17
Copyrights Multiple, All Rights Reserved