MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / CreateVars

Method CreateVars

cpp/src/command_classes/Color.cpp:1048–1060  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Create the values managed by this command class -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1046// Create the values managed by this command class
1047//-----------------------------------------------------------------------------
1048void Color::CreateVars
1049(
1050 uint8 const _instance
1051)
1052{
1053 if( Node* node = GetNodeUnsafe() )
1054 {
1055 /* XXX TODO convert this to a bitset when we implement */
1056 node->CreateValueInt( ValueID::ValueGenre_System, GetCommandClassId(), _instance, Value_Color_Channels_Capabilities, "Color Channels", "", false, false, m_dom.GetFlagShort(STATE_FLAG_COLOR_CHANNELS), 0 );
1057 }
1058
1059
1060}
1061
1062//-----------------------------------------------------------------------------
1063// <Color::SetValueBasic>

Callers

nothing calls this directly

Calls 3

GetCommandClassIdFunction · 0.85
CreateValueIntMethod · 0.80
GetFlagShortMethod · 0.80

Tested by

no test coverage detected