projects
/
iotcloud.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial version of Lifx lightbulb controller in C++ for Fidelius
[iotcloud.git]
/
version2
/
src
/
RPi
/
LightState.h
1
#ifndef _LIGHTSTATE_H__
2
#define _LIGHTSTATE_H__
3
#include <iostream>
4
5
#include "BulbColor.h"
6
7
class LightState {
8
private:
9
BulbColor* color;
10
int power;
11
string label;
12
13
public:
14
15
LightState(BulbColor* _color, int _power, string _label) {
16
17
color = _color;
18
power = _power;
19
label = _label;
20
}
21
22
23
~LightState() {
24
}
25
26
27
BulbColor* getColor() {
28
return color;
29
}
30
31
32
int getPower() {
33
return power;
34
}
35
36
37
string getLabel() {
38
return label;
39
}
40
};
41
#endif