public bool Accept(XVisitor visitor) { if (!visitor.Precondition()) { return(false); } visitor.Init(this); visitor.VisitLogPre(this); foreach (XExtension ext in this.extensions) { ext.Accept(visitor, this); } foreach (IXEventClassifier classif in this.classifiers) { classif.Accept(visitor, this); } foreach (XAttribute attr in this.attributes.Values) { attr.Accept(visitor, this); } foreach (IXTrace trace in this) { trace.Accept(visitor, this); } visitor.VisitLogPost(this); return(true); }
public void Accept(XVisitor visitor, XTrace trace) { visitor.VisitEventPre(this, trace); foreach (XAttribute attribute in this.attributes.Values) { attribute.Accept(visitor, this); } visitor.VisitEventPost(this, trace); }
public void Accept(XVisitor visitor, XLog log) { visitor.VisitTracePre(this, log); foreach (XAttribute attribute in this.attributes.Values) { attribute.Accept(visitor, this); } foreach (IXEvent evt in this) { evt.Accept(visitor, this); } visitor.VisitTracePost(this, log); }