Visioscan Set SDK Libraries 1.0.14
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"
4using namespace System;
5using namespace std;
6using namespace WUtils;
7
8namespace WCommunication {
12 public ref class WUsbInformation
13 {
14 public:
19 _usbInformation = new UsbInformation();
20 }
21
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
Definition WEthernetCommunication.h:5
Definition WUtilities.h:12
The USB information encapsulation.
Definition UsbInformation.h:15
A wrapper on the USB Information.
Definition WUsbInformation.h:13
WUsbInformation()
Base constructor.
Definition WUsbInformation.h:18
property unsigned int BusNumber
Definition WUsbInformation.h:29
~WUsbInformation()
Destructor.
Definition WUsbInformation.h:25
static char * ConvertToNativeString(String^ toConvert)
Definition WUtilities.h:16