----------------------------------------------------------------------------- Clear all the commands for the specified node -----------------------------------------------------------------------------
| 487 | // Clear all the commands for the specified node |
| 488 | //----------------------------------------------------------------------------- |
| 489 | bool 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> |