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

Method AddCommand

cpp/src/Group.cpp:511–529  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Add a command to the list for the specified node -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

509// Add a command to the list for the specified node
510//-----------------------------------------------------------------------------
511bool Group::AddCommand
512(
513 uint8 const _nodeId,
514 uint8 const _length,
515 uint8 const* _data,
516 uint8 const _instance
517)
518{
519 for( map<InstanceAssociation,AssociationCommandVec,classcomp>::iterator it = m_associations.begin(); it != m_associations.end(); ++it )
520 {
521 if( (it->first.m_nodeId == _nodeId) && (it->first.m_instance == _instance) )
522 {
523 it->second.push_back( AssociationCommand( _length, _data ) );
524 return true;
525 }
526 }
527
528 return false;
529}
530
531//-----------------------------------------------------------------------------
532// <Group::AssociationCommand::AssociationCommand>

Callers 1

HandleMsgMethod · 0.80

Calls 3

AssociationCommandClass · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected