----------------------------------------------------------------------------- Save the association data -----------------------------------------------------------------------------
| 111 | // Save the association data |
| 112 | //----------------------------------------------------------------------------- |
| 113 | void 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> |
nothing calls this directly
no test coverage detected