/// <summary> /// constructor in /// </summary> /// <param name="handle"></param> /// <param name="Type"></param> /// <param name="scope"></param> public DataObjectSymbol(string id, Engine engine = null) : base(engine: engine) { _engine = engine; // first this.ID = id; _scope = null; this.NodeType = otXPTNodeType.DataObjectSymbol; }
public DataObjectEntrySymbol( string objectid, string entryname, Engine engine = null) : base() { // default engine _engine = engine; this.ID = objectid + "." + entryname; _scope = null; this.NodeType = otXPTNodeType.DataObjectSymbol; }
/// <summary> /// constructor in /// </summary> /// <param name="handle"></param> /// <param name="Type"></param> /// <param name="scope"></param> public DataObjectEntrySymbol(string id, Engine engine = null) : base(engine: engine) { _scope = null; _engine = engine; this.ID = id; this.NodeType = otXPTNodeType.DataObjectSymbol; }
public Variable(string id, IDataType datatype, IXPTree scope) : base(engine: null) { _id = id; _datatype = datatype; _scope = scope; this.NodeType = otXPTNodeType.Variable; }
/// <summary> /// constructor /// </summary> /// <param name="handle"></param> /// <param name="typeID"></param> /// <param name="scope"></param> public Variable(string id, otDataType typeID, IXPTree scope) : base(engine: null) { _id = id; _datatype = Core.DataType.GetDataType (typeID); _scope = scope; this.NodeType = otXPTNodeType.Variable; }
/// <summary> /// Add a node /// </summary> /// <param name="node"></param> /// <returns></returns> public bool Add(IXPTree node) { this.Nodes.Add(node); return true; }