Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.DataProcessor/DataProcessor.cs @ 6133

Last change on this file since 6133 was 6133, checked in by gkronber, 14 years ago

#1471: imported generic parts of DataImporter from private code base

File size: 1.2 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Xml;
6using HeuristicLab.DataImporter.DbExplorer.Interfaces;
7using HeuristicLab.DataImporter.Data;
8using HeuristicLab.DataImporter.Data.Model;
9using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
10
11namespace HeuristicLab.DataImporter.DataProcessor {
12  [StorableClass]
13  public class DataProcessor{
14    public DataProcessor() {
15      this.commandChain = new CommandChain();
16      this.dataSet = new DataSet();
17    }
18
19    public DataProcessor(DataSet ds) {
20      this.commandChain = new CommandChain();
21      this.dataSet = ds;
22    }
23
24    private IDbExplorer dbExplorer;
25    public IDbExplorer DatabaseExplorer {
26      get { return this.dbExplorer; }
27      set { this.dbExplorer = value; }
28    }
29
30    [Storable]
31    private DataSet dataSet;
32    public DataSet DataSet {
33      get { return this.dataSet; }
34    }
35
36    private CommandChain commandChain;
37    public CommandChain CommandChain {
38      get { return this.commandChain; }
39    }
40
41    public void Reset() {
42      this.dataSet = new DataSet();
43      this.commandChain.Clear();
44    }
45  }
46}
Note: See TracBrowser for help on using the repository browser.