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

Method RequestState

cpp/src/command_classes/UserCode.cpp:340–364  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Nothing to do for UserCode -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

338// Nothing to do for UserCode
339//-----------------------------------------------------------------------------
340bool UserCode::RequestState
341(
342 uint32 const _requestFlags,
343 uint8 const _instance,
344 Driver::MsgQueue const _queue
345)
346{
347 bool requests = false;
348 if( ( _requestFlags & RequestFlag_Static ) && HasStaticRequest( StaticRequest_Values ) )
349 {
350 requests |= RequestValue( _requestFlags, UserCodeIndex_Count, _instance, _queue );
351 }
352
353 if( _requestFlags & RequestFlag_Session )
354 {
355 if( m_dom.GetFlagByte(STATE_FLAG_USERCODE_COUNT) > 0 )
356 {
357 m_queryAll = true;
358 m_currentCode = 1;
359 requests |= RequestValue( _requestFlags, m_currentCode, _instance, _queue );
360 }
361 }
362
363 return requests;
364}
365
366//-----------------------------------------------------------------------------
367// <UserCode::RequestValue>

Callers

nothing calls this directly

Calls 3

HasStaticRequestFunction · 0.85
RequestValueFunction · 0.85
GetFlagByteMethod · 0.80

Tested by

no test coverage detected