public static anaopt Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient) { anaopt _anaopt = new anaopt(); _anaopt.m_rocrailClient = rocrailClient; _anaopt.m_actionCheck = (bool?)xml.Attribute("actionCheck"); _anaopt.m_actionClean = (bool?)xml.Attribute("actionClean"); _anaopt.m_addFeedbackBlockAssignment = (bool?)xml.Attribute("addFeedbackBlockAssignment"); _anaopt.m_addSignalBlockAssignment = (bool?)xml.Attribute("addSignalBlockAssignment"); _anaopt.m_basicCheck = (bool?)xml.Attribute("basicCheck"); _anaopt.m_basicClean = (bool?)xml.Attribute("basicClean"); _anaopt.m_blockCheck = (bool?)xml.Attribute("blockCheck"); _anaopt.m_blockClean = (bool?)xml.Attribute("blockClean"); _anaopt.m_cleanRouteId = (bool?)xml.Attribute("cleanRouteId"); _anaopt.m_maxRecursionDepth = (int?)xml.Attribute("maxRecursionDepth"); _anaopt.m_resetBlockId = (bool?)xml.Attribute("resetBlockId"); _anaopt.m_resetFeedbackBlockAssignment = (bool?)xml.Attribute("resetFeedbackBlockAssignment"); _anaopt.m_resetSignalBlockAssignment = (bool?)xml.Attribute("resetSignalBlockAssignment"); _anaopt.m_routeCheck = (bool?)xml.Attribute("routeCheck"); _anaopt.m_routeClean = (bool?)xml.Attribute("routeClean"); _anaopt.m_setBlockId = (bool?)xml.Attribute("setBlockId"); _anaopt.m_setRouteId = (bool?)xml.Attribute("setRouteId"); return(_anaopt); }
public void Update(anaopt element) { if (element.m_actionCheck.HasValue == true) { this.actionCheck = element.actionCheck; } if (element.m_actionClean.HasValue == true) { this.actionClean = element.actionClean; } if (element.m_addFeedbackBlockAssignment.HasValue == true) { this.addFeedbackBlockAssignment = element.addFeedbackBlockAssignment; } if (element.m_addSignalBlockAssignment.HasValue == true) { this.addSignalBlockAssignment = element.addSignalBlockAssignment; } if (element.m_basicCheck.HasValue == true) { this.basicCheck = element.basicCheck; } if (element.m_basicClean.HasValue == true) { this.basicClean = element.basicClean; } if (element.m_blockCheck.HasValue == true) { this.blockCheck = element.blockCheck; } if (element.m_blockClean.HasValue == true) { this.blockClean = element.blockClean; } if (element.m_cleanRouteId.HasValue == true) { this.cleanRouteId = element.cleanRouteId; } if (element.m_maxRecursionDepth.HasValue == true) { this.maxRecursionDepth = element.maxRecursionDepth; } if (element.m_resetBlockId.HasValue == true) { this.resetBlockId = element.resetBlockId; } if (element.m_resetFeedbackBlockAssignment.HasValue == true) { this.resetFeedbackBlockAssignment = element.resetFeedbackBlockAssignment; } if (element.m_resetSignalBlockAssignment.HasValue == true) { this.resetSignalBlockAssignment = element.resetSignalBlockAssignment; } if (element.m_routeCheck.HasValue == true) { this.routeCheck = element.routeCheck; } if (element.m_routeClean.HasValue == true) { this.routeClean = element.routeClean; } if (element.m_setBlockId.HasValue == true) { this.setBlockId = element.setBlockId; } if (element.m_setRouteId.HasValue == true) { this.setRouteId = element.setRouteId; } }