| Visioscan Set SDK Libraries 1.0.28 Visioscan Set SDK Help documentation file for C++ and C++/CLI |

Loading...
Searching...
No Matches
WEthernetSettings.h
1#pragma once
2#include "WBaseSettings.h"
3#include "WUtilities.h"
4#include <EthernetSettings.h>
5
6 using namespace System;
7 using namespace std;
8 using namespace WBase;
9 using namespace WUtils;
10
11 namespace WCommunication {
15 public ref class WEthernetSettings : public WBaseSettings
16 {
17 public:
18 WEthernetSettings() {
19 _settings = new EthernetSettings();
20 }
21
22 WEthernetSettings(String^ pIp, int pTcpPort, int pUdpPort) {
23 _settings = new EthernetSettings(string(WConverter::ConvertToNativeString(pIp)), pTcpPort, pUdpPort);
24 }
25
26 WEthernetSettings(String^ pIp, int pTcpPort, int pUdpPort, int pDataTimeout) {
27 _settings = new EthernetSettings(string(WConverter::ConvertToNativeString(pIp)), pTcpPort, pUdpPort, pDataTimeout);
28 }
29
30 ~WEthernetSettings() {
31 delete(_settings);
32 }
33
34 property String^ Ip {
35 String^ get() {
36 return gcnew String(((EthernetSettings*)_settings)->GetIp().c_str());
37 }
38
39 void set(String^ x) {
40
41 ((EthernetSettings*)_settings)->SetIp(string(WConverter::ConvertToNativeString(x)));
42 }
43 }
44
45 property int TcpPort {
46 int get() {
47 return ((EthernetSettings*)_settings)->GetTcpPort();
48 }
49
50 void set(int x) {
51 ((EthernetSettings*)_settings)->SetTcpPort(x);
52 }
53 }
54
55 property int UdpPort {
56 int get() {
57 return ((EthernetSettings*)_settings)->GetUdpPort();
58 }
59
60 void set(int x) {
61 ((EthernetSettings*)_settings)->SetUdpPort(x);
62 }
63 }
64
65 };
66}
WUtils
Definition WAvailableResolution.h:7
WBase
Definition WBaseCommunication.h:16
WCommunication
Definition WEthernetCommunication.h:5
EthernetSettings
The ETHERNET settings encapsulation for ETHERNET communication.
Definition EthernetSettings.h:21
WCommunication::WEthernetSettings
A wrapper on the EthernetSettings.
Definition WEthernetSettings.h:16
WCommunication::WEthernetSettings::WEthernetSettings
WEthernetSettings(String^ pIp, int pTcpPort, int pUdpPort)
Definition WEthernetSettings.h:22
WCommunication::WEthernetSettings::WEthernetSettings
WEthernetSettings()
Definition WEthernetSettings.h:18
WCommunication::WEthernetSettings::WEthernetSettings
WEthernetSettings(String^ pIp, int pTcpPort, int pUdpPort, int pDataTimeout)
Definition WEthernetSettings.h:26
WCommunication::WEthernetSettings::~WEthernetSettings
~WEthernetSettings()
Definition WEthernetSettings.h:30
WUtils::WConverter::ConvertToNativeString
static char * ConvertToNativeString(String^ toConvert)
Definition WUtilities.h:16