Mercurial > hg > Database > Christie-sharp
comparison datagear/command/Command.cs @ 8:e6f5b7d14dd1
update DataGears
author | riono <e165729@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 12 Oct 2020 00:49:32 +0900 |
parents | 5c334a1fbc5e |
children | ce6906edcbf4 |
comparison
equal
deleted
inserted
replaced
7:f48a2df9da65 | 8:e6f5b7d14dd1 |
---|---|
1 using System; | 1 using System; |
2 using System.Data.Common; | |
3 using Christie_net.codegear; | 2 using Christie_net.codegear; |
4 using Christie_net.datagear.dg; | 3 using Christie_net.datagear.dg; |
5 | 4 |
6 namespace Christie_net.datagear.command { | 5 namespace Christie_net.datagear.command { |
7 public abstract class Command { | 6 public abstract class Command { |
8 public CommandType type; | 7 public CodeGear cg; // for localtake |
9 public string key = null; | 8 public int cgmID = -1; // for localtake |
10 public string toDgmName = null; // for take | 9 public Type clazz; // for remote |
11 public string fromDgmName = "local"; // for remotetake/reply | 10 public Connection connection = null; // for reply |
12 public int cgmID = -1; // for localtake | 11 public DataGear<Type> dg; // for put/localtake/reply |
13 public CodeGear cg = null; // for localtake | 12 public string fromDgmName = "local"; // for remotetake/reply |
14 public DataGear<Type> dg = null; // for put/localtake/reply | 13 public string key; |
15 public Type clazz = null; // for remote | 14 public string toDgmName; // for take |
16 public Connection connection = null; // for reply | 15 public CommandType type; |
17 | 16 |
18 public Command(CommandBuilder cb) { | 17 public Command(CommandBuilder cb) { |
19 this.type = type; | 18 type = type; |
20 this.key = null; | 19 key = null; |
21 this.toDgmName = null; | 20 toDgmName = null; |
22 this.fromDgmName = "local"; | 21 fromDgmName = "local"; |
23 this.cgmID = null; | 22 cgmID = null; |
24 this.cg = null; | 23 cg = null; |
25 this.dg = null; | 24 dg = null; |
26 this.clazz = null; | 25 clazz = null; |
27 this.connection = null; | 26 connection = null; |
28 } | 27 } |
29 | 28 |
30 // instead of any Constoractor args | 29 // instead of any Constoractor args |
31 protected void CheckNeedParam(ComanndBuilder cb) { | 30 protected void CheckNeedParam(ComanndBuilder cb) { } |
32 | 31 |
33 } | 32 public abstract void Execute(); |
34 | 33 |
35 public abstract void Execute(); | 34 public abstract |
36 | |
37 public abstract | |
38 } | |
39 } | 35 } |
36 } |