----------------------------------------------------------------------------- Add a command to the list for the specified node -----------------------------------------------------------------------------
| 509 | // Add a command to the list for the specified node |
| 510 | //----------------------------------------------------------------------------- |
| 511 | bool 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> |
no test coverage detected