60 if (state < 0)
return "err";
88 if (err < 0) cerr <<
"Lightify::Open failed: " << -err <<
" " << strerror(-err) << endl;
92 cout <<
"|-----------------|------------------|---------|-------|---------|-----|-----|------|-----|-----|-----|-----|---|" << endl;
93 cout <<
"| Name | MAC | type | group | online | 0/1 | dim | CCT | Red | Grn | Blu | Wht | s |" << endl;
94 cout <<
"|-----------------|------------------|---------|-------|---------|-----|-----|------|-----|-----|-----|-----|---|" << endl;
99 setw(16) << node->
GetName() <<
" | " <<
100 setw(16) << hex << node->
GetMAC() <<
" | " <<
102 setw(5) << dec << node->
GetGroup() <<
" | " <<
106 setw(4) << node->
GetCCT() <<
" | " <<
107 setw(3) << node->
GetRed() <<
" | " <<
108 setw(3) << node->
GetGreen() <<
" | " <<
109 setw(3) << node->
GetBlue() <<
" | " <<
110 setw(3) << node->
GetWhite() <<
" | " <<
111 setw(1) << (node->
IsStale() ?
'*' :
' ') <<
" |" << endl;
115 cout <<
"|-----------------|------------------|---------|-------|---------|-----|-----|------|-----|-----|-----|-----|---|" << endl << endl;
117 cout <<
"|------------------|--------|" << endl;
118 cout <<
"| Group Name | id |" << endl;
119 cout <<
"|------------------|--------|" << endl;
124 setw(17) << group->
GetName() <<
" | " <<
125 setw(6) << group->
GetId() <<
" |" << endl;
127 cout <<
"|------------------|--------|" << endl;
int GetBrightness(void) const
Lightify_Group * GetGroupAtPosX(int pos) const
int GetOnlineState(void) const
lightify_node_type GetLampType(void) const
Lightify_Node * GetNodeAtPosX(int x) const
const char * decode_lamptype(int type)
unsigned long long GetMAC(void) const
Enable the use of exception within this wrapper.
const char * decode_online_state(int state)
unsigned int GetGroup(void) const
const char * GetName(void) const
const char * decode_onoff_sate(int state)