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

Method IsNodeInfoReceived

cpp/src/Manager.cpp:1516–1538  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Helper method to return whether a particular class is available in a node -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1514// Helper method to return whether a particular class is available in a node
1515//-----------------------------------------------------------------------------
1516bool Manager::IsNodeInfoReceived
1517(
1518 uint32 const _homeId,
1519 uint8 const _nodeId
1520)
1521{
1522 bool result = false;
1523
1524 if( Driver* driver = GetDriver( _homeId ) )
1525 {
1526 Node *node;
1527
1528 // Need to lock and unlock nodes to check this information
1529 LockGuard LG(driver->m_nodeMutex);
1530
1531 if( (node = driver->GetNode( _nodeId ) ) != NULL)
1532 {
1533 result = node->NodeInfoReceived();
1534 }
1535 }
1536
1537 return result;
1538}
1539
1540//-----------------------------------------------------------------------------
1541// <Manager::GetNodeClassAvailable>

Callers

nothing calls this directly

Calls 2

GetNodeMethod · 0.80
NodeInfoReceivedMethod · 0.80

Tested by

no test coverage detected