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

Loading...
Searching...
No Matches
WUsbInformation.h
1#pragma once
2#include <UsbInformation.h>
3#include "WUtilities.h"
4 using namespace System;
5 using namespace std;
6 using namespace WUtils;
7
8 namespace WCommunication {
12 public ref class WUsbInformation
13 {
14 public:
18 WUsbInformation() {
19 _usbInformation = new UsbInformation();
20 }
21
25 ~WUsbInformation() {
26 delete (_usbInformation);
27 }
28
29 property unsigned int BusNumber {
30 unsigned int get() {
31 return _usbInformation->GetBusNumber();
32 }
33
34 void set(unsigned int x) {
35 _usbInformation->SetBusNumber(x);
36 }
37 }
38 property unsigned int DeviceAddress {
39 unsigned int get() {
40 return _usbInformation->GetDeviceAddress();
41 }
42
43 void set(unsigned int x) {
44 _usbInformation->SetDeviceAddress(x);
45 }
46 }
47 property unsigned int VendorId {
48 unsigned int get() {
49 return _usbInformation->GetVendorId();
50 }
51
52 void set(unsigned int x) {
53 _usbInformation->SetVendorId(x);
54 }
55 }
56 property unsigned int ProductId {
57 unsigned int get() {
58 return _usbInformation->GetProductId();
59 }
60
61 void set(unsigned int x) {
62 _usbInformation->SetProductId(x);
63 }
64 }
65 property String^ Speed {
66 String^ get() {
67 return gcnew String(_usbInformation->GetSpeed().c_str());
68 }
69 void set(String^ x) {
70 _usbInformation->SetSpeed(string(WConverter::ConvertToNativeString(x)));
71 }
72 }
73 property String^ Manufacturer {
74 String^ get() {
75 return gcnew String(_usbInformation->GetManufacturer().c_str());
76 }
77 void set(String^ x) {
78 _usbInformation->SetManufacturer(string(WConverter::ConvertToNativeString(x)));
79 }
80 }
81 property String^ ProductDescription {
82 String^ get() {
83 return gcnew String(_usbInformation->GetProductDescription().c_str());
84 }
85 void set(String^ x) {
86 _usbInformation->SetProductDescription(string(WConverter::ConvertToNativeString(x)));
87 }
88 }
89 property String^ SerialNumber {
90 String^ get() {
91 return gcnew String(_usbInformation->GetSerialNumber().c_str());
92 }
93 void set(String^ x) {
94 _usbInformation->SetSerialNumber(string(WConverter::ConvertToNativeString(x)));
95 }
96 }
97
98 private:
99 UsbInformation* _usbInformation;
100 };
101}
102
WUtils
Definition WAvailableResolution.h:7
WCommunication
Definition WEthernetCommunication.h:5
UsbInformation
The USB information encapsulation.
Definition UsbInformation.h:15
WCommunication::WUsbInformation
A wrapper on the USB Information.
Definition WUsbInformation.h:13
WCommunication::WUsbInformation::WUsbInformation
WUsbInformation()
Base constructor.
Definition WUsbInformation.h:18
WCommunication::WUsbInformation::BusNumber
property unsigned int BusNumber
Definition WUsbInformation.h:29
WCommunication::WUsbInformation::~WUsbInformation
~WUsbInformation()
Destructor.
Definition WUsbInformation.h:25
WUtils::WConverter::ConvertToNativeString
static char * ConvertToNativeString(String^ toConvert)
Definition WUtilities.h:16