WSF
WsfPM_Router.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 2020 Infoscitex, a DCS 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 WSFPM_ROUTER_HPP
13#define WSFPM_ROUTER_HPP
14
15#include "wsf_parser_export.h"
16
17#include "WsfPM_ObjectMap.hpp"
20
21class WSF_PARSER_EXPORT WsfPM_Router : public WsfPM_PlatformPart
22{
23public:
26 : WsfPM_PlatformPart(aNode)
27 {
28 }
29
30 const std::string Name() const { return GetName(); }
31 const std::string Type() const { return GetTypeName(); }
32
33 const std::string GatewayAddress() const { return (*this + "gatewayAddress").GetValue().ValueToString(); }
34 const std::string Gateway() const { return (*this + "gateway").GetValue().ValueToString(); }
35 const int HopLimit() const;
37 {
38 return (*this + "automatedInterfaceLinking").GetValue().GetBoolValue();
39 }
40 const bool UseDefaultProtocol() const { return (*this + "useDefaultProtocol").GetValue().GetBoolValue(); }
41 const bool UseMulticastProtocol() const { return (*this + "useMulticastProtocol").GetValue().GetBoolValue(); }
42};
43
45
46#endif
WsfPM_ObjectMapT< WsfPM_Router > WsfPM_RouterMap
Definition WsfPM_Router.hpp:44
Definition WsfPM_ObjectMap.hpp:88
WsfPM_PlatformPart()
Definition WsfPM_PlatformPart.cpp:17
const bool UseMulticastProtocol() const
Definition WsfPM_Router.hpp:41
WsfPM_Router(const WsfPProxyNode &aNode)
Definition WsfPM_Router.hpp:25
const bool UseAutomatedInterfaceLinking() const
Definition WsfPM_Router.hpp:36
const std::string GatewayAddress() const
Definition WsfPM_Router.hpp:33
const bool UseDefaultProtocol() const
Definition WsfPM_Router.hpp:40
WsfPM_Router()
Definition WsfPM_Router.hpp:24
const std::string Gateway() const
Definition WsfPM_Router.hpp:34
const std::string Name() const
Definition WsfPM_Router.hpp:30
const std::string Type() const
Definition WsfPM_Router.hpp:31
WsfPProxyNode()
Definition WsfPProxyNode.cpp:24
std::string GetName() const
Definition WsfPProxyNode.cpp:208
std::string GetTypeName() const
Definition WsfPProxyNode.cpp:248
Copyrights Multiple, All Rights Reserved