Example #1
0
            protected void AddSpools(SpoolSpace Memory)
            {
                string lname = this._Parameters[0].NameOf();

                Memory.Add(lname, new Spool.RecordSpindle(lname, this._Parameters[0].Columns));
                string rname = this._Parameters[1].NameOf();

                Memory.Add(rname, new Spool.RecordSpindle(rname, this._Parameters[1].Columns));
            }
Example #2
0
 public void BindTables(SpoolSpace Memory)
 {
     foreach (Expression x in this._Parameters.AllTables)
     {
         Memory.Add(x.NameOf(), new Spool.RecordSpindle(x.NameOf(), x.Columns));
         this._BoundTables.Add(x.NameOf());
     }
 }
Example #3
0
        public void Bind(SpoolSpace Context)
        {
            if (this._Parameters.Count != this._ParameterNames.Count)
            {
                throw new Exception(string.Format("Arguments for '{0}' are invalid; expecting {1} parameter(s) but recieved {2}", this._Name, this._ParameterNames.Count, this._Parameters.Count));
            }

            this.BindTables(Context);

            Context.Drop(this._Name);
            Context.Add(this._Name, new Spool.HeapSpindle(this._Name));

            for (int i = 0; i < this._ParameterNames.Count; i++)
            {
                Context[this._Name].Declare(this._ParameterNames[i], this._Parameters[i].Evaluate(Context));
            }
        }
Example #4
0
 private void ForEachTable(SpoolSpace Memory, Table Value)
 {
     //Memory[this._LibName].Declare(this._VarName, CellValues.NullARRAY);
     Memory.Add(this._VarName, new Spool.RecordSpindle(this._VarName, Value.Columns));
     using (RecordReader rr = Value.OpenReader())
     {
         while (rr.CanAdvance)
         {
             Memory[this._VarName].Set(rr.ReadNext());
             this.InvokeChildren(Memory);
             if (this.RaiseElement == RaiseAlert.Break || this.RaiseElement == RaiseAlert.Return || this.RaiseElement == RaiseAlert.Exit)
             {
                 break;
             }
         }
     }
     Memory.Drop(this._VarName);
 }
Example #5
0
            private void AddSpools(SpoolSpace Memory)
            {
                string name = this._Parameters[0].NameOf();

                Memory.Add(name, new Spool.RecordSpindle(name, this._Parameters[0].Columns));
            }
Example #6
0
 private void AddSpools(SpoolSpace Memory)
 {
     Memory.Add(this._SpoolName, new Spool.RecordSpindle(this._SpoolName, this._Parameters[0].Columns));
     Memory.Add(this._SpoolNameLive, new Spool.RecordSpindle(this._SpoolNameLive, this._Fields.Columns));
 }