Exemple #1
0
        static void Main(string[] args)
        {
            string fileName;
            PhysicalParser parser;
            Record record;

            if (args.Length < 1)
            {
                Console.WriteLine("Usage:");
                Console.WriteLine("    PQDIFDump FILENAME");
                Environment.Exit(0);
            }

            fileName = args[0];
            parser = new PhysicalParser(fileName);
            parser.Open();

            while (parser.HasNextRecord())
            {
                record = parser.NextRecord();
                Console.WriteLine(record);
                Console.WriteLine();
            }

            Console.ReadLine();
        }
Exemple #2
0
 /// <summary>
 /// Creates a new instance of the <see cref="LogicalParser"/> class.
 /// </summary>
 /// <param name="fileName">Name of the PQDIF file to be parsed.</param>
 public LogicalParser(string fileName)
 {
     m_physicalParser = new PhysicalParser(fileName);
 }