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

Method AddGroup

cpp/src/Node.cpp:2928–2942  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Add a group into the node's map -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

2926// Add a group into the node's map
2927//-----------------------------------------------------------------------------
2928void Node::AddGroup
2929(
2930 Group* _group
2931)
2932{
2933 map<uint8,Group*>::iterator it = m_groups.find( _group->GetIdx() );
2934 if( it != m_groups.end() )
2935 {
2936 // There is already a group with this id. We will replace it.
2937 delete it->second;
2938 m_groups.erase( it );
2939 }
2940
2941 m_groups[_group->GetIdx()] = _group;
2942}
2943
2944//-----------------------------------------------------------------------------
2945// <Node::WriteGroups>

Callers 4

ReadXMLMethod · 0.80
HandleMsgMethod · 0.80
ReadXMLMethod · 0.80
HandleMsgMethod · 0.80

Calls 3

findMethod · 0.80
GetIdxMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected