Exemple #1
0
        public override Object Attend()
        {
            TISCameraDriver driver    = TISCameraManager.GetReference().getDriver(camera);
            DriverOperation operation = driver.GetCurrentOperation();

            return(operation);
        }
Exemple #2
0
        // ...................................................................
        public IEnumerable <FormatInstruction> Match(DriverOperation Operation, string Text)
        {
            var result = this._drivers
                         .Where((driver) => driver.Abilities.HasFlag(Operation))
                         .SelectMany((driver) => driver.Match(Operation, Text))
                         .ToList();

            return(result);
        }
Exemple #3
0
        // ...................................................................
        public IEnumerable <FormatInstruction> Match(DriverOperation Operation, string Text)
        {
            if (!this._ruleIndex.Value.TryGetValue(Operation, out List <ISyntaxRule> rules))
            {
                return(new FormatInstruction[0]);
            }

            List <FormatInstruction> matches = rules
                                               .SelectMany((rule) => rule.Match(Text))
                                               .ToList();

            return(matches);
        }