protected virtual void Visit(HpglItem item) { Action <HpglItem> a; if (!funcmap.TryGetValue(item.GetType(), out a)) { throw new NotImplementedException(String.Format("Missing method for {0}", item.GetType().Name)); } a(item); }
protected override void Unprocessed(HpglItem item) { result.Add(item); }
protected virtual void Unprocessed(HpglItem item) { // }
protected virtual void ProcessItem(HpglItem item) { Send(item.HpglStr()); }