Beispiel #1
0
        /// <summary>
        /// iscitava jednu iteraciju
        /// </summary>
        /// <returns></returns>
        public virtual textInputResult read(IPlatform platform, textInputResult __currentOutput = null)
        {
            if (__currentOutput != null)
            {
                currentOutput = __currentOutput;
            }
            if (currentOutput == null)
            {
                currentOutput = new textInputResult();
            }

            currentOutput = platform.read(currentOutput, inputReadMode.readKey, new selectZone(cursor.x, cursor.y, width, 1));

            //if (top_attachment is IApplyReading)
            //{
            //    IApplyReading r = top_attachment as IApplyReading;
            //    r.applyReading(platform, currentOutput);
            //}

            currentOutput = applyReading(platform, currentOutput);

            if (bottom_attachment is IApplyReading)
            {
                IApplyReading r = bottom_attachment as IApplyReading;
                r.applyReading(platform, currentOutput);
            }

            currentOutput.section = this;



            return(currentOutput);
        }
Beispiel #2
0
 /// <summary>
 /// Vrsi resetovanje/pripremu inputa za novo koriscenje, obrisace currentOutput
 /// </summary>
 public virtual void init()
 {
     currentOutput = new textInputResult();
     currentOutput.doKeepReading = true;
 }
Beispiel #3
0
        /// <summary>
        /// 2 Očitava ulaz
        /// </summary>
        //public abstract inputResultCollection read(inputResultCollection __results);

        /// <summary>
        /// Primena procitanog unosa
        /// </summary>
        /// <param name="platform"></param>
        /// <param name="__currentOutput"></param>
        /// <returns></returns>
        public abstract textInputResult applyReading(IPlatform platform, textInputResult __currentOutput);