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

Loading...
Searching...
No Matches
WUsbSettings.h
1#pragma once
2#include "WBaseSettings.h"
3#include "WUtilities.h"
4#include <UsbSettings.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 WUsbSettings : public WBaseSettings
16 {
17 public:
21 WUsbSettings() {
22 _settings = new UsbSettings();
23 }
24
32 WUsbSettings(unsigned int vendorId, unsigned int productId, unsigned int readChannel, unsigned int writeChannel) {
33 _settings = new UsbSettings(vendorId, productId, readChannel, writeChannel);
34 }
35
36
40 ~WUsbSettings() {
41 delete(_settings);
42 }
43
44
45 property unsigned int VendorId {
46 unsigned int get() {
47 return ((UsbSettings*)_settings)->GetVendorId();
48 }
49
50 void set(unsigned int x) {
51 ((UsbSettings*)_settings)->SetVendorId(x);
52 }
53 }
54
55 property unsigned int ProductId {
56 unsigned int get() {
57 return ((UsbSettings*)_settings)->GetProductId();
58 }
59
60 void set(unsigned int x) {
61 ((UsbSettings*)_settings)->SetProductId(x);
62 }
63 }
64
65 property unsigned int ReadChannel {
66 unsigned int get() {
67 return ((UsbSettings*)_settings)->GetReadChannel();
68 }
69
70 void set(unsigned int x) {
71 ((UsbSettings*)_settings)->SetReadChannel(x);
72 }
73 }
74
75 property unsigned int WriteChannel {
76 unsigned int get() {
77 return ((UsbSettings*)_settings)->GetWriteChannel();
78 }
79
80 void set(unsigned int x) {
81 ((UsbSettings*)_settings)->SetWriteChannel(x);
82 }
83 }
84 };
85}
86
WUtils
Definition WAvailableResolution.h:7
WBase
Definition WBaseCommunication.h:16
WCommunication
Definition WEthernetCommunication.h:5
UsbSettings
The USB settings encapsulation for USB communication.
Definition UsbSettings.h:18
WCommunication::WUsbSettings
A wrapper on the UsbSettings.
Definition WUsbSettings.h:16
WCommunication::WUsbSettings::WUsbSettings
WUsbSettings()
Definition WUsbSettings.h:21
WCommunication::WUsbSettings::WUsbSettings
WUsbSettings(unsigned int vendorId, unsigned int productId, unsigned int readChannel, unsigned int writeChannel)
Copy constructor.
Definition WUsbSettings.h:32
WCommunication::WUsbSettings::~WUsbSettings
~WUsbSettings()
Destructor.
Definition WUsbSettings.h:40