WSF
WsfBMWeaponTable.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI//REL TO USA ONLY
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// The use, dissemination or disclosure of data in this file is subject to
7// limitation or restriction. See accompanying README and LICENSE for details.
8// ****************************************************************************
9// Classification: UNCLASSIFIED
10
11#ifndef WSF_BM_WEAPON_TABLE_HPP
12#define WSF_BM_WEAPON_TABLE_HPP
13
14#include <string>
15#include <map>
16
17#include <UtInput.hpp>
18#include <UtInputBlock.hpp>
19
21#include <iadsLib/weaponTable.hpp>
22
23class WSF_IADS_C2_LIB_EXPORT WsfBMWeaponTable : public WsfBMUnmanagedTypeWrapper<il::weaponTable>
24{
25 public:
27 WsfBMWeaponTable(il::weaponTable* table);
28 virtual WsfBMWeaponTable* Clone() const;
29
30 virtual bool ProcessInput(UtInput& aInput, bool has_priority = false, bool has_pk_percent = false);
31
32 protected:
33
34 typedef std::map <std::string, il::genericAttribute> tAttributeCache;
35
38
39 virtual bool ParseSpeedAttributes(UtInput& aInput, const std::string& end_block_str);
40 virtual bool ParseAltitudeAttributes(UtInput& aInput, const std::string& end_block_str);
41
42 virtual bool ParseWeaponRowsBlock(UtInput& aInput, const std::string& end_block_str, bool has_priority = false, bool has_pk_percent = false);
43 virtual bool ParseAISubtypePrefs(UtInput& aInput, const std::string& end_block_str, std::shared_ptr<il::weaponTableRow>& wtr);
44 virtual bool ParseSAMSubtypePrefs(UtInput& aInput, const std::string& end_block_str, std::shared_ptr<il::weaponTableRow>& wtr);
45 virtual bool ParseOtherSubtypePrefs(UtInput& aInput, const std::string& end_block_str, std::shared_ptr<il::weaponTableRow>& wtr);
46};
47
48#endif
virtual WsfBMTypeWrapper * Clone() const
Definition WsfBMGenericTypeWrapper.hpp:36
WsfBMUnmanagedTypeWrapper(const std::string &script_class_name)
Definition WsfBMGenericTypeWrapper.hpp:81
WsfBMWeaponTable()
Definition WsfBMWeaponTable.cpp:31
virtual bool ParseAISubtypePrefs(UtInput &aInput, const std::string &end_block_str, std::shared_ptr< il::weaponTableRow > &wtr)
Definition WsfBMWeaponTable.cpp:305
virtual bool ParseSpeedAttributes(UtInput &aInput, const std::string &end_block_str)
Definition WsfBMWeaponTable.cpp:84
virtual bool ParseWeaponRowsBlock(UtInput &aInput, const std::string &end_block_str, bool has_priority=false, bool has_pk_percent=false)
Definition WsfBMWeaponTable.cpp:172
virtual bool ParseAltitudeAttributes(UtInput &aInput, const std::string &end_block_str)
Definition WsfBMWeaponTable.cpp:128
virtual bool ParseOtherSubtypePrefs(UtInput &aInput, const std::string &end_block_str, std::shared_ptr< il::weaponTableRow > &wtr)
Definition WsfBMWeaponTable.cpp:369
std::map< std::string, il::genericAttribute > tAttributeCache
Definition WsfBMWeaponTable.hpp:34
tAttributeCache m_altitude_attributes
Definition WsfBMWeaponTable.hpp:37
tAttributeCache m_speed_attributes
Definition WsfBMWeaponTable.hpp:36
virtual bool ParseSAMSubtypePrefs(UtInput &aInput, const std::string &end_block_str, std::shared_ptr< il::weaponTableRow > &wtr)
Definition WsfBMWeaponTable.cpp:337
virtual bool ProcessInput(UtInput &aInput)
Definition WsfObject.cpp:140
Copyrights Multiple, All Rights Reserved