Exemplo n.º 1
0
        public override void Parse(ActionParser parser)
        {
            if (!parser.PreSix)
            {
                ClassID = parser.ReadTokenOrUnicodeString();
            }
            Key   = parser.ReadTokenOrString();
            Type  = parser.ReadTokenOrString();
            Value = parser.ReadTokenOrString();

            DebugOutput.Dump($"Enmr: c = {ClassID}, k = {Key}, t = {Type}, v = {Value}");
        }
Exemplo n.º 2
0
 public override void Parse(ActionParser parser)
 {
     if (parser.PreSix)
     {
         Type  = parser.ReadFourByteString();
         Value = parser.ReadFourByteString();
     }
     else
     {
         Type  = parser.ReadTokenOrString();
         Value = parser.ReadTokenOrString();
     }
 }
Exemplo n.º 3
0
        public override void Parse(ActionParser parser)
        {
            if (!parser.PreSix)
            {
                ClassID = parser.ReadTokenOrUnicodeString();
            }
            Key   = parser.ReadTokenOrString();
            Type  = parser.ReadTokenOrString();
            Value = parser.ReadTokenOrString();

            DebugOutput.Dump("Enmr: c = {0}, k = {1}, t = {2}, v = {3}",
                             ClassID, Key, Type, Value);
        }
Exemplo n.º 4
0
        public override void Parse(ActionParser parser)
        {
            if (!parser.PreSix)
            {
              ClassID = parser.ReadTokenOrUnicodeString();
            }
              Key = parser.ReadTokenOrString();
              Type = parser.ReadTokenOrString();
              Value = parser.ReadTokenOrString();

              DebugOutput.Dump("Enmr: c = {0}, k = {1}, t = {2}, v = {3}",
               ClassID, Key, Type, Value);
        }
Exemplo n.º 5
0
 public override void Parse(ActionParser parser)
 {
     if (parser.PreSix)
     {
       Type = parser.ReadFourByteString();
       Value = parser.ReadFourByteString();
     }
       else
     {
       Type = parser.ReadTokenOrString();
       Value = parser.ReadTokenOrString();
     }
 }
Exemplo n.º 6
0
        public override void Parse(ActionParser parser)
        {
            if (!parser.PreSix)
            {
                ClassID = parser.ReadTokenOrUnicodeString();
            }
            ClassID2 = parser.ReadTokenOrString();
            Key      = parser.ReadTokenOrUnicodeString();

            DebugOutput.Dump("Name: c = {ClassID}, c2 = {ClassID2}, k = {Key}");
        }
Exemplo n.º 7
0
        public override void Parse(ActionParser parser)
        {
            if (!parser.PreSix)
            {
              ClassID = parser.ReadTokenOrUnicodeString();
            }
              ClassID2 = parser.ReadTokenOrString();
              Key = parser.ReadTokenOrUnicodeString();

              DebugOutput.Dump("Name: c = {0}, c2 = {1}, k = {2}", ClassID,
               ClassID2, Key);
        }
Exemplo n.º 8
0
        public override void Parse(ActionParser parser)
        {
            if (parser.PreSix)
            {
                _classID2 = parser.ReadFourByteString();
            }
            else
            {
                _classID = parser.ReadUnicodeString();
                DebugOutput.Dump("ClassID: " + _classID);
                _classID2 = parser.ReadTokenOrString();
            }

            DebugOutput.Dump("ClassID2: " + _classID2);

            int numberOfItems = parser.ReadInt32();

            DebugOutput.Dump("NumberOfItems: " + numberOfItems);

            DebugOutput.Level++;
            _children.Parse(parser, numberOfItems);
            DebugOutput.Level--;
        }
Exemplo n.º 9
0
        public override void Parse(ActionParser parser)
        {
            if (parser.PreSix)
            {
                _classID2 = parser.ReadTokenOrString();
                DebugOutput.Dump("ClassID2: " + _classID2);

                int numberOfItems = parser.ReadInt32();
                DebugOutput.Dump("NumberOfItems: " + numberOfItems);
            }
            else
            {
                int numberOfItems = parser.ReadInt32();
                DebugOutput.Dump("NumberOfItems: " + numberOfItems);

                _classID = parser.ReadUnicodeString();
                DebugOutput.Dump("ClassID: " + _classID);

                _classID2 = parser.ReadTokenOrString();
                DebugOutput.Dump("ClassID2: " + _classID2);
            }

            int numberOfFields = parser.ReadInt32();

            DebugOutput.Dump("NumberOfFields: " + numberOfFields);

            for (int i = 0; i < numberOfFields; i++)
            {
                string key  = parser.ReadTokenOrString();
                string type = parser.ReadFourByteString();
                _units = parser.ReadFourByteString();

                DebugOutput.Dump("key: {0} ({1}) {2}", key, type, _units);

                int numberOfItems = parser.ReadInt32();
                DebugOutput.Dump("NumberOfItems2: " + numberOfItems);

                switch (type)
                {
                case "UnFl":
                    for (int j = 0; j < numberOfItems; j++)
                    {
                        double val = parser.ReadDouble();

                        Coordinate <double> c;
                        if (i == 0)
                        {
                            c = new Coordinate <double>();
                            _value.Add(c);
                            c.X = val;
                        }
                        else
                        {
                            _value[j].Y = val;
                        }
                    }
                    break;

                default:
                    Console.WriteLine("ObAr:Unknown type: " + type);
                    break;
                }
            }
        }
Exemplo n.º 10
0
        public override void Parse(ActionParser parser)
        {
            if (parser.PreSix)
            {
              _classID2 = parser.ReadFourByteString();
            }
              else
            {
              _classID = parser.ReadUnicodeString();
              DebugOutput.Dump("ClassID: " + _classID);
              _classID2 = parser.ReadTokenOrString();
            }

              DebugOutput.Dump("ClassID2: " + _classID2);

              int numberOfItems = parser.ReadInt32();
              DebugOutput.Dump("NumberOfItems: " + numberOfItems);

              DebugOutput.Level++;
              _children.Parse(parser, numberOfItems);
              DebugOutput.Level--;
        }
Exemplo n.º 11
0
        public override void Parse(ActionParser parser)
        {
            if (parser.PreSix)
            {
              _classID2 = parser.ReadTokenOrString();
              DebugOutput.Dump("ClassID2: " + _classID2);

              int numberOfItems = parser.ReadInt32();
              DebugOutput.Dump("NumberOfItems: " + numberOfItems);
            }
              else
            {
              int numberOfItems = parser.ReadInt32();
              DebugOutput.Dump("NumberOfItems: " + numberOfItems);

              _classID = parser.ReadUnicodeString();
              DebugOutput.Dump("ClassID: " + _classID);

              _classID2 = parser.ReadTokenOrString();
              DebugOutput.Dump("ClassID2: " + _classID2);
            }

              int numberOfFields = parser.ReadInt32();
              DebugOutput.Dump("NumberOfFields: " + numberOfFields);

              for (int i = 0; i < numberOfFields; i++)
            {
              string key = parser.ReadTokenOrString();
              string type = parser.ReadFourByteString();
              _units = parser.ReadFourByteString();

              DebugOutput.Dump("key: {0} ({1}) {2}", key, type, _units);

              int numberOfItems = parser.ReadInt32();
              DebugOutput.Dump("NumberOfItems2: " + numberOfItems);

              switch (type)
            {
            case "UnFl":
              for (int j = 0; j < numberOfItems; j++)
            {
              double val = parser.ReadDouble();

              Coordinate<double> c;
              if (i == 0)
            {
              c = new Coordinate<double>();
              _value.Add(c);
              c.X = val;
            }
              else
            {
              _value[j].Y = val;
            }
            }
              break;
            default:
              Console.WriteLine("ObAr:Unknown type: " + type);
              break;
            }
            }
        }