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

Method CreateVars

cpp/src/command_classes/TimeParameters.cpp:229–242  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

227// Create the values managed by this command class
228//-----------------------------------------------------------------------------
229void TimeParameters::CreateVars
230(
231 uint8 const _instance
232)
233{
234 if( Node* node = GetNodeUnsafe() )
235 {
236 node->CreateValueString( ValueID::ValueGenre_System, GetCommandClassId(), _instance, TimeParametersIndex_Date, "Date", "", true, false, "", 0 );
237 node->CreateValueString( ValueID::ValueGenre_System, GetCommandClassId(), _instance, TimeParametersIndex_Time, "Time", "", true, false, "", 0 );
238 node->CreateValueButton( ValueID::ValueGenre_System, GetCommandClassId(), _instance, TimeParametersIndex_Set, "Set Date/Time", 0);
239 node->CreateValueButton( ValueID::ValueGenre_System, GetCommandClassId(), _instance, TimeParametersIndex_Refresh, "Refresh Date/Time", 0);
240
241 }
242}

Callers

nothing calls this directly

Calls 3

GetCommandClassIdFunction · 0.85
CreateValueStringMethod · 0.80
CreateValueButtonMethod · 0.80

Tested by

no test coverage detected