File tree 5 files changed +15
-0
lines changed
5 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 34
34
class CloudContactSensor : public CloudBool {
35
35
private:
36
36
public:
37
+ operator bool () const {
38
+ return _value;
39
+ }
37
40
CloudContactSensor& operator =(bool v) {
38
41
CloudBool::operator =(v);
39
42
return *this ;
Original file line number Diff line number Diff line change 34
34
class CloudLight : public CloudBool {
35
35
private:
36
36
public:
37
+ operator bool () const {
38
+ return _value;
39
+ }
37
40
CloudLight& operator =(bool v) {
38
41
CloudBool::operator =(v);
39
42
return *this ;
Original file line number Diff line number Diff line change 34
34
class CloudMotionSensor : public CloudBool {
35
35
private:
36
36
public:
37
+ operator bool () const {
38
+ return _value;
39
+ }
37
40
CloudMotionSensor& operator =(bool v) {
38
41
CloudBool::operator =(v);
39
42
return *this ;
Original file line number Diff line number Diff line change 34
34
class CloudSmartPlug : public CloudBool {
35
35
private:
36
36
public:
37
+ operator bool () const {
38
+ return _value;
39
+ }
37
40
CloudSmartPlug& operator =(bool v) {
38
41
CloudBool::operator =(v);
39
42
return *this ;
Original file line number Diff line number Diff line change 34
34
class CloudSwitch : public CloudBool {
35
35
private:
36
36
public:
37
+ operator bool () const {
38
+ return _value;
39
+ }
37
40
CloudSwitch& operator =(bool v) {
38
41
CloudBool::operator =(v);
39
42
return *this ;
You can’t perform that action at this time.
0 commit comments