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 | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.Xml;
|
---|
6 | using HeuristicLab.DataImporter.DbExplorer.Interfaces;
|
---|
7 | using HeuristicLab.DataImporter.Data;
|
---|
8 | using HeuristicLab.DataImporter.Data.Model;
|
---|
9 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
10 |
|
---|
11 | namespace 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.