Visioscan Set SDK Libraries 1.0.14
Visioscan Set SDK Help documentation file for C++ and C++/CLI
 
Loading...
Searching...
No Matches
WSoftwareVersion.h
1#pragma once
2#include <SoftwareVersion.h>
3
4
5public enum class ProductIdentification { Unknown=0, RawData=47, AntiCollision=48, Navigation=49 };
9public ref class WSoftwareVersion
10{
11public:
13 _softVer = new SoftwareVersion();
14 }
15
17 _softVer = new SoftwareVersion();
18 Version = toCopy->Version;
19 Revision = toCopy->Revision;
20 Prototype = toCopy->Prototype;
21 HardwareVersion = toCopy->HardwareVersion;
22 CanNumber = toCopy->CanNumber;
23 PartNumber = toCopy->PartNumber;
24 }
25
27 delete(_softVer);
28 }
29
30 property int Version {
31 int get() {
32 return _softVer->GetVersion();
33 }
34 void set(int x) {
35 _softVer->SetVersion(x);
36 }
37 }
38 property int Revision {
39 int get() {
40 return _softVer->GetRevision();
41 }
42 void set(int x) {
43 _softVer->SetRevision(x);
44 }
45 }
46 property int Prototype {
47 int get() {
48 return _softVer->GetPrototype();
49 }
50 void set(int x) {
51 _softVer->SetPrototype(x);
52 }
53 }
54
55 property unsigned long CanNumber {
56 unsigned long get() {
57 return _softVer->GetCanNumber();
58 }
59 void set(unsigned long x) {
60 _softVer->SetCanNumber(x);
61 }
62 }
63 property unsigned int HardwareVersion {
64 unsigned int get() {
65 return _softVer->GetHardwareVersion();
66 }
67 void set(unsigned int x) {
68 _softVer->SetHardwareVersion(x);
69 }
70 }
71
72 property long PartNumber {
73 long get() {
74 return _softVer->GetPartNumber();
75 }
76 void set(long x) {
77 _softVer->SetPartNumber(x);
78 }
79 }
80
81 property ProductIdentification ProductTypeIdentification {
82 ProductIdentification get() {
83 unsigned int productType = _softVer->GetProductIdentification();
84
85 switch (productType) {
86 case UNKNOWN_PRODUCT:
87 return ProductIdentification::Unknown;
88 case RAW_DATA:
89 return ProductIdentification::RawData;
90 case ANTI_COLLISION:
91 return ProductIdentification::AntiCollision;
92 case NAVIGATION:
93 return ProductIdentification::Navigation;
94 }
95 }
96 void set(ProductIdentification x) {
97 _softVer->SetProductIdentification(x.GetHashCode());
98 }
99 }
100
101 static bool operator== (WSoftwareVersion^ pComp1, WSoftwareVersion^ pComp2) {
102 return pComp1->Version == pComp2->Version &&
103 pComp1->Revision == pComp2->Revision &&
104 pComp1->Prototype == pComp2->Prototype &&
105 pComp1->HardwareVersion == pComp2->HardwareVersion &&
106 pComp1->CanNumber == pComp2->CanNumber &&
107 pComp1->PartNumber == pComp2->PartNumber &&
108 pComp1->ProductTypeIdentification == pComp2->ProductTypeIdentification;
109 }
110
111 static bool operator!= (WSoftwareVersion^ pComp1, WSoftwareVersion^ pComp2) {
112 return pComp1->Version != pComp2->Version ||
113 pComp1->Revision != pComp2->Revision ||
114 pComp1->Prototype != pComp2->Prototype ||
115 pComp1->HardwareVersion != pComp2->HardwareVersion ||
116 pComp1->CanNumber != pComp2->CanNumber ||
117 pComp1->PartNumber != pComp2->PartNumber ||
118 pComp1->ProductTypeIdentification != pComp2->ProductTypeIdentification;
119 }
120private:
121 SoftwareVersion* _softVer;
122};
123
Helper to encapsulate the software version.
Definition SoftwareVersion.h:19
A wrapper on the SoftwareVersion data encapsulation.
Definition WSoftwareVersion.h:10
property int Version
Definition WSoftwareVersion.h:30
WSoftwareVersion(WSoftwareVersion^ toCopy)
Definition WSoftwareVersion.h:16
WSoftwareVersion()
Definition WSoftwareVersion.h:12
~WSoftwareVersion()
Definition WSoftwareVersion.h:26
The base class encapsulating sensor's RAW data.
Definition RawData.h:14