/// <summary> /// Creates a deep copy of the given object. /// </summary> public override IFormat Clone() { SeparatorSeriesFormat other = new SeparatorSeriesFormat( Name ); CloneTo( other ); other.Separator = Separator; other.Anchor = null; if ( Anchor != null ) { other.Anchor = Anchor.ForCell( Anchor.Row, Anchor.Column ); } return other; }
/// <summary> /// Creates a deep copy of the given object. /// </summary> public override IFormat Clone() { SeparatorSeriesFormat other = new SeparatorSeriesFormat(Name); CloneTo(other); other.Separator = Separator; other.Anchor = null; if (Anchor != null) { other.Anchor = Anchor.ForCell(Anchor.Row, Anchor.Column); } return(other); }
private DataTable Parse( SeparatorSeriesFormat format, string file ) { var rawTable = CsvReader.Read( file, format.Separator ); return format.ToFormattedTable( rawTable ); }
public override void SetUp() { base.SetUp(); myFormat = new SeparatorSeriesFormat( "test" ); myFormat.Separator = ";"; myFormat.Anchor = Anchor.ForRow( new StringContainsLocator( 1, "DE0005151005" ) ); myFormat.Expand = CellDimension.Row; myFormat.TimeAxisPosition = 0; myFormat.SeriesNamePosition = 1; myFormat.SkipColumns = new int[] { 0, 2, 3 }; myFormat.SkipRows = new int[] { 1 }; myEpsFile = Path.Combine( TestDataRoot, "Recognition", "eps.csv" ); }