2#include <SoftwareVersion.h>
5public enum class ProductIdentification { Unknown=0,
RawData=47, AntiCollision=48, Navigation=49 };
19 Revision = toCopy->Revision;
20 Prototype = toCopy->Prototype;
21 HardwareVersion = toCopy->HardwareVersion;
22 CanNumber = toCopy->CanNumber;
23 PartNumber = toCopy->PartNumber;
32 return _softVer->GetVersion();
35 _softVer->SetVersion(x);
38 property int Revision {
40 return _softVer->GetRevision();
43 _softVer->SetRevision(x);
46 property int Prototype {
48 return _softVer->GetPrototype();
51 _softVer->SetPrototype(x);
55 property unsigned long CanNumber {
57 return _softVer->GetCanNumber();
59 void set(
unsigned long x) {
60 _softVer->SetCanNumber(x);
63 property unsigned int HardwareVersion {
65 return _softVer->GetHardwareVersion();
67 void set(
unsigned int x) {
68 _softVer->SetHardwareVersion(x);
72 property long PartNumber {
74 return _softVer->GetPartNumber();
77 _softVer->SetPartNumber(x);
81 property ProductIdentification ProductTypeIdentification {
82 ProductIdentification get() {
83 unsigned int productType = _softVer->GetProductIdentification();
85 switch (productType) {
87 return ProductIdentification::Unknown;
89 return ProductIdentification::RawData;
91 return ProductIdentification::AntiCollision;
93 return ProductIdentification::Navigation;
96 void set(ProductIdentification x) {
97 _softVer->SetProductIdentification(x.GetHashCode());
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;
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;
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