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

Method WriteGroups

cpp/src/Node.cpp:2948–2961  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Save the group data -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

2946// Save the group data
2947//-----------------------------------------------------------------------------
2948void Node::WriteGroups
2949(
2950 TiXmlElement* _associationsElement
2951)
2952{
2953 for( map<uint8,Group*>::iterator it = m_groups.begin(); it != m_groups.end(); ++it )
2954 {
2955 Group* group = it->second;
2956
2957 TiXmlElement* groupElement = new TiXmlElement( "Group" );
2958 _associationsElement->LinkEndChild( groupElement );
2959 group->WriteXML( groupElement );
2960 }
2961}
2962
2963//-----------------------------------------------------------------------------
2964// <Node::GetNumGroups>

Callers 2

WriteXMLMethod · 0.80
WriteXMLMethod · 0.80

Calls 4

LinkEndChildMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
WriteXMLMethod · 0.45

Tested by

no test coverage detected