// From IXmlSource void CEnumParameterType::toXml(CXmlElement& xmlElement, CXmlSerializingContext& serializingContext) const { // Size xmlElement.setAttributeString("Size", toString(getSize() * 8)); base::toXml(xmlElement, serializingContext); }
// From IXmlSource void CConfigurableDomains::toXml(CXmlElement& xmlElement, CXmlSerializingContext& serializingContext) const { // Set attribute xmlElement.setAttributeString("SystemClassName", getName()); base::childrenToXml(xmlElement, serializingContext); }
// From IXmlSource void CCompoundRule::toXml(CXmlElement& xmlElement, CXmlSerializingContext& serializingContext) const { // Set type xmlElement.setAttributeString("Type", _apcTypes[_bTypeAll]); // Base base::toXml(xmlElement, serializingContext); }
// From IXmlSource void CSelectionCriterionRule::toXml(CXmlElement& xmlElement, CXmlSerializingContext& serializingContext) const { (void)serializingContext; assert(_pSelectionCriterion); // Set selection criterion xmlElement.setAttributeString("SelectionCriterion", _pSelectionCriterion->getName()); // Set MatchesWhen xmlElement.setAttributeString("MatchesWhen", _astMatchesWhen[_eMatchesWhen].pcMatchesWhen); // Set Value string strValue; _pSelectionCriterion->getCriterionType()->getLiteralValue(_iMatchValue, strValue); xmlElement.setAttributeString("Value", strValue); }
// XML Serialization value space handling // Value space handling for configuration import void CFixedPointParameterType::handleValueSpaceAttribute(CXmlElement& xmlConfigurableElementSettingsElement, CConfigurationAccessContext& configurationAccessContext) const { // Direction? if (!configurationAccessContext.serializeOut()) { // Get Value space from XML if (xmlConfigurableElementSettingsElement.hasAttribute("ValueSpace")) { configurationAccessContext.setValueSpaceRaw(xmlConfigurableElementSettingsElement.getAttributeBoolean("ValueSpace", "Raw")); } else { configurationAccessContext.setValueSpaceRaw(false); } } else { // Provide value space only if not the default one if (configurationAccessContext.valueSpaceIsRaw()) { xmlConfigurableElementSettingsElement.setAttributeString("ValueSpace", "Raw"); } } }