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

Method GetNodeQueryStage

cpp/src/Manager.cpp:1642–1658  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Helper method to return whether a node's query stage -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1640// Helper method to return whether a node's query stage
1641//-----------------------------------------------------------------------------
1642string Manager::GetNodeQueryStage
1643(
1644 uint32 const _homeId,
1645 uint8 const _nodeId
1646)
1647{
1648 string result = "Unknown";
1649 if( Driver* driver = GetDriver( _homeId ) )
1650 {
1651 LockGuard LG(driver->m_nodeMutex);
1652 if( Node* node = driver->GetNode( _nodeId ) )
1653 {
1654 result = node->GetQueryStageName( node->GetCurrentQueryStage() );
1655 }
1656 }
1657 return result;
1658}
1659
1660//-----------------------------------------------------------------------------
1661// <Manager::SetNodeLevel>

Callers

nothing calls this directly

Calls 3

GetNodeMethod · 0.80
GetQueryStageNameMethod · 0.80
GetCurrentQueryStageMethod · 0.80

Tested by

no test coverage detected