view datagear/command/CommandBuilder.cs @ 11:1f7d4f168b89

socket test
author riono <e165729@ie.u-ryukyu.ac.jp>
date Thu, 19 Nov 2020 03:05:28 +0900
parents ce6906edcbf4
children 277dd59bf1e2
line wrap: on
line source

using System;
using Christie_net.codegear;
using Christie_net.datagear.dg;

namespace Christie_net.datagear.command {
public class CommandBuilder {
    protected internal CommandTypeEtx type;
    protected internal string key = null;
    protected internal string toDgmName = null; // for take
    protected internal string fromDgmname = "local"; // for remotetake/reply
    protected internal int? cgmID = null; // for local meta
    protected internal CodeGear cg = null; // for localtake
    protected internal DataGear<object> dg = null; // for put/localtake/reply
    protected internal Type clazz = null; // for remote
    //protected internal Connection connection = null; // for reply
    
    //private CommandFactory factory = new CommandFactory();

    public CommandBuilder init(CommandTypeEtx type) {
        this.type = type;
        this.key = null;
        this.toDgmName = null;
        this.fromDgmname = "local";
        this.cgmID = null;
        this.cg = null;
        this.dg = null;
        this.clazz = null;
        //this.connection = null;
        return this;
    }
    
    
}
}