public static trace Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient) { trace _trace = new trace(); _trace.m_rocrailClient = rocrailClient; _trace.m_automatic = (bool?)xml.Attribute("automatic"); _trace.m_byte = (bool?)xml.Attribute("byte"); _trace.m_calc = (bool?)xml.Attribute("calc"); _trace.m_debug = (bool?)xml.Attribute("debug"); _trace.m_dumpsize = (int?)xml.Attribute("dumpsize"); _trace.m_exceptionfile = (bool?)xml.Attribute("exceptionfile"); _trace.m_gfile = (string)xml.Attribute("gfile"); _trace.m_info = (bool?)xml.Attribute("info"); _trace.m_invoke = (string)xml.Attribute("invoke"); _trace.m_invokeasync = (bool?)xml.Attribute("invokeasync"); _trace.m_listen2all = (bool?)xml.Attribute("listen2all"); _trace.m_meminfo = (bool?)xml.Attribute("meminfo"); _trace.m_monitor = (bool?)xml.Attribute("monitor"); _trace.m_nr = (int?)xml.Attribute("nr"); _trace.m_parse = (bool?)xml.Attribute("parse"); _trace.m_protpath = (string)xml.Attribute("protpath"); _trace.m_rfile = (string)xml.Attribute("rfile"); _trace.m_size = (int?)xml.Attribute("size"); _trace.m_unique = (bool?)xml.Attribute("unique"); return(_trace); }
public void Update(trace element) { if (element.m_automatic.HasValue == true) { this.automatic = element.automatic; } if (element.m_byte.HasValue == true) { this.@byte = element.@byte; } if (element.m_calc.HasValue == true) { this.calc = element.calc; } if (element.m_debug.HasValue == true) { this.debug = element.debug; } if (element.m_dumpsize.HasValue == true) { this.dumpsize = element.dumpsize; } if (element.m_exceptionfile.HasValue == true) { this.exceptionfile = element.exceptionfile; } if (element.m_gfile != null) { this.gfile = element.gfile; } if (element.m_info.HasValue == true) { this.info = element.info; } if (element.m_invoke != null) { this.invoke = element.invoke; } if (element.m_invokeasync.HasValue == true) { this.invokeasync = element.invokeasync; } if (element.m_listen2all.HasValue == true) { this.listen2all = element.listen2all; } if (element.m_meminfo.HasValue == true) { this.meminfo = element.meminfo; } if (element.m_monitor.HasValue == true) { this.monitor = element.monitor; } if (element.m_nr.HasValue == true) { this.nr = element.nr; } if (element.m_parse.HasValue == true) { this.parse = element.parse; } if (element.m_protpath != null) { this.protpath = element.protpath; } if (element.m_rfile != null) { this.rfile = element.rfile; } if (element.m_size.HasValue == true) { this.size = element.size; } if (element.m_unique.HasValue == true) { this.unique = element.unique; } }