WSF
WsfPM_Comm.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// Updated by Infoscitex, a DCS Company.
13// ****************************************************************************
14
15#ifndef WSFPM_COMM_HPP
16#define WSFPM_COMM_HPP
17
18#include "wsf_parser_export.h"
19
20#include "WsfPM_CommLink.hpp"
21#include "WsfPM_ObjectMap.hpp"
24
25class WSF_PARSER_EXPORT WsfPM_Comm : public WsfPM_PlatformPart
26{
27public:
30 : WsfPM_PlatformPart(aNode)
31 {
32 }
33
34 WsfProxy::String GetNetworkName();
35 const std::string GetNetworkNameString() const { return (*this + "networkName").GetValue().ValueToString(); }
36 const std::string Address() const { return (*this + "address").GetValue().ValueToString(); }
37 const std::string NetworkAddress() const { return (*this + "networkAddress").GetValue().ValueToString(); }
38 const std::string Name() const { return GetName(); }
39 const std::string Type() const { return GetValue().GetType()->GetTypeName(); }
40 const std::string LinkPlatform() const { return (*this + "linkPlatform").GetValue().ValueToString(); }
41 const std::string LinkComm() const { return (*this + "linkComm").GetValue().ValueToString(); }
42 const std::string LocalLink() const { return (*this + "localLink").GetValue().ValueToString(); }
43 const std::string LinkAddress() const { return (*this + "linkAddress").GetValue().ValueToString(); }
44 const std::string RouterName() const { return (*this + "routerName").GetValue().ValueToString(); }
45 const std::string GatewayPlatform() const { return (*this + "gatewayPlatform").GetValue().ValueToString(); }
46 const std::string GatewayComm() const { return (*this + "gatewayComm").GetValue().ValueToString(); }
47
48 size_t LinksCount() const { return LinksList().size(); }
49 WsfPM_CommLink GetLink(size_t aIndex) const;
50
51 WsfPM_CommLinkList LinksList() const { return *this + "commLinks"; }
52};
53
55
56#endif
WsfPM_ObjectMapT< WsfPM_Comm > WsfPM_CommMap
Definition WsfPM_Comm.hpp:54
WsfPM_CommLinkList LinksList() const
Definition WsfPM_Comm.hpp:51
const std::string NetworkAddress() const
Definition WsfPM_Comm.hpp:37
const std::string GatewayPlatform() const
Definition WsfPM_Comm.hpp:45
const std::string GatewayComm() const
Definition WsfPM_Comm.hpp:46
const std::string Address() const
Definition WsfPM_Comm.hpp:36
const std::string RouterName() const
Definition WsfPM_Comm.hpp:44
WsfPM_Comm()
Definition WsfPM_Comm.hpp:28
const std::string LinkAddress() const
Definition WsfPM_Comm.hpp:43
const std::string GetNetworkNameString() const
Definition WsfPM_Comm.hpp:35
const std::string LinkComm() const
Definition WsfPM_Comm.hpp:41
size_t LinksCount() const
Definition WsfPM_Comm.hpp:48
const std::string LinkPlatform() const
Definition WsfPM_Comm.hpp:40
const std::string Name() const
Definition WsfPM_Comm.hpp:38
WsfPM_Comm(const WsfPProxyNode &aNode)
Definition WsfPM_Comm.hpp:29
const std::string LocalLink() const
Definition WsfPM_Comm.hpp:42
const std::string Type() const
Definition WsfPM_Comm.hpp:39
Definition WsfPM_ObjectMap.hpp:88
WsfPM_PlatformPart()
Definition WsfPM_PlatformPart.cpp:17
WsfPProxyValue GetValue() const
Definition WsfPProxyNode.cpp:79
WsfPProxyNode()
Definition WsfPProxyNode.cpp:24
std::string GetName() const
Definition WsfPProxyNode.cpp:208
const std::string & GetTypeName() const
Definition WsfPProxyType.hpp:53
const WsfPProxyType * GetType() const
Definition WsfPProxyValue.hpp:61
Definition WsfPProxyBasicValues.hpp:478
Copyrights Multiple, All Rights Reserved