예제 #1
0
 /// <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;
 }
예제 #2
0
        public DataObjectEntrySymbol( string objectid, string entryname,  Engine engine = null)
            : base()
        {
            // default engine
            _engine = engine;
            this.ID = objectid + "." + entryname;
            _scope = null;

            this.NodeType = otXPTNodeType.DataObjectSymbol;
        }
예제 #3
0
 /// <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;
 }
예제 #4
0
 public Variable(string id, IDataType datatype, IXPTree scope)
     : base(engine: null)
 {
     _id = id;
     _datatype = datatype;
     _scope = scope;
     this.NodeType = otXPTNodeType.Variable;
 }
예제 #5
0
 /// <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;
 }
예제 #6
0
 /// <summary>
 /// Add a node 
 /// </summary>
 /// <param name="node"></param>
 /// <returns></returns>
 public bool Add(IXPTree node)
 {
     this.Nodes.Add(node);
     return true;
 }