string ActPolicy::getStatusAsXml(void) const { XmlNode* format = XmlNode::createComment("format_id=" + MyGuid.toString()); XmlNode* status = XmlNode::createWrapperElement("act_policy_status"); status->addChild(m_fivrDevices.getXml()); status->addChild(m_radioDevices.getXml()); status->addChild(m_pixelClockDevices.getXml()); XmlNode* root = XmlNode::createRoot(); root->addChild(format); root->addChild(status); string statusString = root->toString(); delete root; return statusString; }
string ActivePolicy::getStatusAsXml(void) const { XmlNode* root = XmlNode::createRoot(); XmlNode* format = XmlNode::createComment("format_id=89C3953AB8E42946A526C52C88626BAE"); root->addChild(format); XmlNode* status = XmlNode::createWrapperElement("active_policy_status"); status->addChild(getParticipantTracker().getXmlForActiveCoolingControls()); status->addChild(getParticipantTracker().getXmlForActiveTripPoints()); status->addChild(m_art.getXml()); root->addChild(status); string statusString = root->toString(); delete root; return statusString; }