Ejemplo n.º 1
0
        /// <summary>
        /// constructor
        /// </summary>
        /// <param name="block">extract block</param>
        /// <param name="feature">extract feature</param>
        public ExtractFeatureBlock(ExtractBlock block, string feature = "")
        {
            this.Block = block;
            var selectors = new List <ISelector>();

            if (string.IsNullOrEmpty(feature))
            {
                return;
            }

            var sp = feature.Replace("\r\n", "\n").Split('\n');

            foreach (var s in sp)
            {
                var selector = RuiJiBlockParser.ParserSelector(s);
                selectors.Add(selector);
            }

            ExtractFeature = new ExtractFeature();

            ExtractFeature.Features = selectors;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// constructor
 /// </summary>
 public ExtractFeatureBlock()
 {
     ExtractFeature = new ExtractFeature();
 }