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

Loading...
Searching...
No Matches
WSensorLeds.h
1#pragma once
2#include <RawDataSensor.h>
3
7 public ref class WSensorLeds
8{
9 public:
10 WSensorLeds() {
11 _leds = new SensorLeds();
12 }
13
14 WSensorLeds(WSensorLeds^ toCopy) {
15 _leds = new SensorLeds();
16 StatusLed = toCopy->StatusLed;
17 LogoLed = toCopy->LogoLed;
18 }
19
20 ~WSensorLeds() {
21 delete(_leds);
22 }
23
24 property bool StatusLed {
25 bool get() {
26 return _leds->GetStatusLed();
27 }
28 void set(bool x) {
29 _leds->SetStatusLed(x);
30 }
31 }
32 property bool LogoLed {
33 bool get() {
34 return _leds->GetLogoLed();
35 }
36 void set(bool x) {
37 _leds->SetLogoLed(x);
38 }
39 }
40
41 property SensorLeds* __native {
42 SensorLeds* get() {
43 return _leds;
44 }
45 }
46
47 static bool operator== (WSensorLeds^ pComp1, WSensorLeds^ pComp2) {
48 if (System::Object::ReferenceEquals(pComp1, pComp2))
49 return true;
50
51 if (System::Object::ReferenceEquals(pComp1, nullptr) ||
52 System::Object::ReferenceEquals(pComp2, nullptr)) {
53 return false;
54 }
55 return pComp1->LogoLed == pComp2->LogoLed &&
56 pComp1->StatusLed == pComp2->StatusLed;
57 }
58
59 static bool operator!= (WSensorLeds^ pComp1, WSensorLeds^ pComp2) {
60 return !(pComp1 == pComp2);
61 }
62 private:
63 SensorLeds* _leds;
64};
65
SensorLeds
Helper to encapsulate the sensor leds state.
Definition SensorLeds.h:11
WSensorLeds
A wrapper on the SensorLeds data encapsulation.
Definition WSensorLeds.h:8
WSensorLeds::~WSensorLeds
~WSensorLeds()
Definition WSensorLeds.h:20
WSensorLeds::WSensorLeds
WSensorLeds()
Definition WSensorLeds.h:10
WSensorLeds::StatusLed
property bool StatusLed
Definition WSensorLeds.h:24
WSensorLeds::WSensorLeds
WSensorLeds(WSensorLeds^ toCopy)
Definition WSensorLeds.h:14