Exemple #1
0
        public PftContext
        (
            PftContext parent
        )
        {
            _parent = parent;

            PftOutputBuffer parentBuffer = (parent == null)
                ? null
                : parent.Output;

            Output = new PftOutputBuffer(parentBuffer);

            Globals = (parent == null)
                ? new PftGlobalManager()
                : parent.Globals;

            Record = (parent == null)
                ? new IrbisRecord()
                : parent.Record;

            Client = (parent == null)
                ? new ManagedClient64()
                : parent.Client;
        }
        public PftContext
        (
            PftFormatter formatter,
            PftContext parent
        )
        {
            _formatter = formatter;

            _parent = parent;

            PftOutputBuffer parentBuffer = (parent == null)
                ? null
                : parent.Output;

            Output = new PftOutputBuffer(parentBuffer);

            Globals = (parent == null)
                ? new PftGlobalManager()
                : parent.Globals;

            // Переменные в каждом контексте свои
            Variables = new PftVariableManager();

            // Процедуры в каждом контексте свои
            Procedures = new PftProcedureManager();

            Record = (parent == null)
                ? new IrbisRecord()
                : parent.Record;

            Client = (parent == null)
                ? new ManagedClient64()
                : parent.Client;
        }
 public PftOutputBuffer
 (
     PftOutputBuffer parent
 )
 {
     _parent  = parent;
     _normal  = new StringWriter();
     _warning = new StringWriter();
     _error   = new StringWriter();
 }
        public PftOutputBuffer Push()
        {
            PftOutputBuffer result = new PftOutputBuffer(this);

            return(result);
        }