Ejemplo n.º 1
0
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;
}
Ejemplo n.º 2
0
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;
}