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

Method CreateValueBitSet

cpp/src/Node.cpp:2419–2443  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Helper to create a BitSet ValueID -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

2417// Helper to create a BitSet ValueID
2418//-----------------------------------------------------------------------------
2419bool Node::CreateValueBitSet
2420(
2421 ValueID::ValueGenre const _genre,
2422 uint8 const _commandClassId,
2423 uint8 const _instance,
2424 uint16 const _valueIndex,
2425 string const& _label,
2426 string const& _units,
2427 bool const _readOnly,
2428 bool const _writeOnly,
2429 int32 const _default,
2430 uint8 const _pollIntensity
2431)
2432{
2433 ValueBitSet* value = new ValueBitSet( m_homeId, m_nodeId, _genre, _commandClassId, _instance, _valueIndex, _label, _units, _readOnly, _writeOnly, _default, _pollIntensity );
2434 ValueStore* store = GetValueStore();
2435 if( store->AddValue( value ) )
2436 {
2437 value->Release();
2438 return true;
2439 }
2440
2441 value->Release();
2442 return false;
2443}
2444
2445
2446

Callers

nothing calls this directly

Calls 2

AddValueMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected