Esempio n. 1
0
            private int points; // number of points in current figure

            /// <summary>
            /// Constructor
            /// </summary>
            /// <param name="reader">Input Reader</param>
            /// <param name="pipeline">Output pipeline</param>
            internal Parser(XmlReader reader, TypeWashedPipeline pipeline)
            {
                Debug.Assert(reader != null && pipeline != null, "reader or pipeline is null");
                this.reader   = reader;
                this.pipeline = pipeline;

                var nametable = this.reader.NameTable;

                this.gmlNamespace       = nametable.Add(GmlConstants.GmlNamespace);
                this.fullGlobeNamespace = nametable.Add(GmlConstants.FullGlobeNamespace);
            }
 /// <summary>
 /// Creates a parser with the given reader and pipeline
 /// </summary>
 /// <param name="reader">The reader that is the source of what is parsed.</param>
 /// <param name="pipeline">The pipeline to be called as the parser recognizes tokens.</param>
 /// <param name="allowOnlyTwoDimensions">if set to <c>true</c> allows only two dimensions.</param>
 public Parser(TextReader reader, TypeWashedPipeline pipeline, bool allowOnlyTwoDimensions)
 {
     this.lexer    = new WellKnownTextLexer(reader);
     this.pipeline = pipeline;
     this.allowOnlyTwoDimensions = allowOnlyTwoDimensions;
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SendToTypeWashedPipeline"/> class.
 /// </summary>
 /// <param name="pipeline">Spatial pipeline that will receive the pipeline method calls.</param>
 internal SendToTypeWashedPipeline(TypeWashedPipeline pipeline)
 {
     this.pipeline = pipeline;
 }