WSF
WsfSignatureList.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 WSFSIGNATURELIST_HPP
13#define WSFSIGNATURELIST_HPP
14
15#include "wsf_export.h"
16
17#include <string>
18#include <vector>
19
20class UtInput;
21class UtScriptTypes;
22class WsfPlatform;
23class WsfSignature;
25
36{
37public:
40
42 WsfSignatureList(const WsfSignatureList& aSrc, WsfPlatform* aPlatformPtr);
44
45 void AddInterface(Interface* aInterfacePtr, size_t aIndex);
46
48 Interface* GetInterface(size_t aIndex) { return mInterfacePtrs[aIndex]; }
49
50 bool Initialize(double aSimTime);
51 bool ProcessInput(UtInput& aInput);
52
53 void SetState(WsfStringId aState, const std::string& aType);
54
55#undef GetClassName // Avoid conflict with Windows macro
56 std::string GetClassName(size_t aIndex) const;
57
58 WsfStringId GetInputType(size_t aIndex) const;
59
60 WsfStringId GetState(size_t aIndex) const;
61 bool SetState(size_t aIndex, WsfStringId aState);
62
63 float GetScaleFactor(size_t aIndex) const;
64 bool SetScaleFactor(size_t aIndex, float aScaleFactor);
65
66private:
67 WsfPlatform* mPlatformPtr;
68 std::vector<Interface*> mInterfacePtrs;
69};
70
71#endif
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
Platforms represent a entity within the simulation.
Definition WsfPlatform.hpp:115
Definition WsfSignatureInterface.hpp:32
WsfSignatureList()
Definition WsfSignatureList.cpp:25
WsfSignatureInterface Interface
Make typing easier..
Definition WsfSignatureList.hpp:39
Interface * GetInterface(size_t aIndex)
Return the pointer to the interface with the specified index.
Definition WsfSignatureList.hpp:48
void AddInterface(Interface *aInterfacePtr, size_t aIndex)
Definition WsfSignatureList.cpp:61
Definition WsfSignature.hpp:29
Copyrights Multiple, All Rights Reserved