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

Method CreateVars

cpp/src/command_classes/UserCode.cpp:684–696  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

682// Create the values managed by this command class
683//-----------------------------------------------------------------------------
684void UserCode::CreateVars
685(
686 uint8 const _instance
687
688)
689{
690 if( Node* node = GetNodeUnsafe() )
691 {
692 node->CreateValueShort( ValueID::ValueGenre_System, GetCommandClassId(), _instance, UserCodeIndex_Count, "Code Count", "", true, false, 0, 0 );
693 node->CreateValueButton( ValueID::ValueGenre_System, GetCommandClassId(), _instance, UserCodeIndex_Refresh, "Refresh All UserCodes", 0);
694 node->CreateValueShort( ValueID::ValueGenre_System, GetCommandClassId(), _instance, UserCodeIndex_RemoveCode, "Remove User Code", "", false, true, 0, 0);
695 }
696}

Callers

nothing calls this directly

Calls 3

GetCommandClassIdFunction · 0.85
CreateValueShortMethod · 0.80
CreateValueButtonMethod · 0.80

Tested by

no test coverage detected