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

Method WriteXML

cpp/src/command_classes/MultiChannelAssociation.cpp:113–131  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Save the association data -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

111// Save the association data
112//-----------------------------------------------------------------------------
113void MultiChannelAssociation::WriteXML
114(
115 TiXmlElement* _ccElement
116)
117{
118 CommandClass::WriteXML( _ccElement );
119
120 if( Node* node = GetNodeUnsafe() )
121 {
122 TiXmlElement* associationsElement = new TiXmlElement( "Associations" );
123
124 char str[8];
125 snprintf( str, 8, "%d", m_numGroups );
126 associationsElement->SetAttribute( "num_groups", str );
127
128 _ccElement->LinkEndChild( associationsElement );
129 node->WriteGroups( associationsElement );
130 }
131}
132
133//-----------------------------------------------------------------------------
134// <MultiChannelAssociation::RequestState>

Callers

nothing calls this directly

Calls 3

SetAttributeMethod · 0.80
LinkEndChildMethod · 0.80
WriteGroupsMethod · 0.80

Tested by

no test coverage detected