WSF
WsfScriptCommAddress.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 2017 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
13#ifndef WSFSCRIPTCOMMADDRESS_HPP
14#define WSFSCRIPTCOMMADDRESS_HPP
15
16#include "wsf_export.h"
17
18#include "UtScriptBasicTypes.hpp"
19#include "WsfCommAddress.hpp"
20
21class WSF_EXPORT WsfScriptCommAddressClass : public UtScriptClass
22{
23public:
24 WsfScriptCommAddressClass(const std::string& aClassName, UtScriptTypes* aScriptTypesPtr);
25
27
28 static UtScriptRef* Create(const wsf::comm::Address& aAddress);
29 void* Create(const UtScriptContext& aContext) override;
30 void Destroy(void* aObject) override;
31 void* Clone(void* aObject) override;
32 std::string ToString(void* aObjectPtr) const override;
33
36
39 UT_DECLARE_SCRIPT_METHOD(SubnetMaskBitSize);
46 UT_DECLARE_SCRIPT_METHOD(GetBroadcastAddress);
47
48private:
49 static WsfScriptCommAddressClass* sClassPtr;
50};
51
52#endif
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
UT_DECLARE_SCRIPT_METHOD(SetAddress)
UT_DECLARE_SCRIPT_METHOD(RoutingPrefix)
std::string ToString(void *aObjectPtr) const override
Definition WsfScriptCommAddress.cpp:72
UT_DECLARE_SCRIPT_METHOD(SubnetMaskBitSize)
static UtScriptRef * Create(const wsf::comm::Address &aAddress)
Definition WsfScriptCommAddress.cpp:48
UT_DECLARE_SCRIPT_METHOD(GetBroadcastAddress)
UT_DECLARE_SCRIPT_METHOD(WithinRange)
void * Clone(void *aObject) override
Definition WsfScriptCommAddress.cpp:66
UT_DECLARE_SCRIPT_METHOD(IntegerValue)
WsfScriptCommAddressClass(const std::string &aClassName, UtScriptTypes *aScriptTypesPtr)
Definition WsfScriptCommAddress.cpp:19
UT_DECLARE_SCRIPT_METHOD(AddressToken)
UT_DECLARE_SCRIPT_METHOD(GetAddress)
UT_DECLARE_SCRIPT_METHOD(Increment)
UT_DECLARE_SCRIPT_METHOD(PossibleHosts)
void Destroy(void *aObject) override
Definition WsfScriptCommAddress.cpp:60
Definition WsfCommAddress.hpp:57
Copyrights Multiple, All Rights Reserved