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

Method ClearCommands

cpp/src/Group.cpp:489–505  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Clear all the commands for the specified node -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

487// Clear all the commands for the specified node
488//-----------------------------------------------------------------------------
489bool Group::ClearCommands
490(
491 uint8 const _nodeId,
492 uint8 const _instance
493)
494{
495 for( map<InstanceAssociation,AssociationCommandVec,classcomp>::iterator it = m_associations.begin(); it != m_associations.end(); ++it )
496 {
497 if( (it->first.m_nodeId == _nodeId) && (it->first.m_instance == _instance) )
498 {
499 it->second.clear();
500 return true;
501 }
502 }
503
504 return false;
505}
506
507//-----------------------------------------------------------------------------
508// <Group::AddCommand>

Callers 1

HandleMsgMethod · 0.80

Calls 3

clearMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected