Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/16/10 17:06:45 (13 years ago)
Author:
swinkler
Message:

Worked on symbolic expression tree formatters: Added interface, founded new project for formatters. (#1270)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SmalltalkExport/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/SymbolicExpressionTreeStringFormatter.cs

    r4803 r4820  
    2121
    2222using System.Text;
     23using HeuristicLab.Core;
     24using HeuristicLab.Common;
     25using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2326
    2427namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding {
    25  
    26   public class SymbolicExpressionTreeStringFormatter {
    27    
     28
     29  [Item("SymbolicExpressionTreeStringFormatter", "The default string formatter for symbolic expression trees.")]
     30  [StorableClass]
     31  public class SymbolicExpressionTreeStringFormatter : NamedItem, ISymbolicExpressionTreeStringFormatter {
     32
    2833    public bool Indent { get; set; }
    29    
     34
     35    [StorableConstructor]
     36    protected SymbolicExpressionTreeStringFormatter(bool deserializing) : base(deserializing) { }
     37    protected SymbolicExpressionTreeStringFormatter(SymbolicExpressionTreeStringFormatter original, Cloner cloner) : base(original, cloner) { }
    3038    public SymbolicExpressionTreeStringFormatter()
    3139      : base() {
     
    5967      return strBuilder.ToString();
    6068    }
     69
     70    public override IDeepCloneable Clone(Cloner cloner) {
     71      return new SymbolicExpressionTreeStringFormatter(this, cloner);
     72    }
     73
    6174  }
     75
    6276}
Note: See TracChangeset for help on using the changeset viewer.