public MOUSE_PUMPS(string pfsname)
    {
      _pfsHandle = new PFSSection(pfsname);

      Pumps = new List<Pump>();
      _pfsHandle.AddKeyword(new PFSKeyword("SYNTAX_VERSION", PFSParameterType.Integer, 0));

      _pfsHandle.AddKeyword(new PFSKeyword("UNIT_TYPE", PFSParameterType.Integer, 0));

      PumpHeader = new PumpHeader("PumpHeader");
      _pfsHandle.AddKeyword(PumpHeader._keyword);
    }
Exemple #2
0
        public MOUSE_PUMPS(string pfsname)
        {
            _pfsHandle = new PFSSection(pfsname);

            Pumps = new List <Pump>();
            _pfsHandle.AddKeyword(new PFSKeyword("SYNTAX_VERSION", PFSParameterType.Integer, 0));

            _pfsHandle.AddKeyword(new PFSKeyword("UNIT_TYPE", PFSParameterType.Integer, 0));

            PumpHeader = new PumpHeader("PumpHeader");
            _pfsHandle.AddKeyword(PumpHeader._keyword);
        }
    internal MOUSE_PUMPS(PFSSection Section)
    {
      _pfsHandle = Section;

      Pumps = new List<Pump>();
      for (int i = 1; i <= Section.GetKeywordsNo("Pump"); i++)
        Pumps.Add(new Pump(Section.GetKeyword("Pump",i)));
      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }

      PumpHeader = new PumpHeader(_pfsHandle.GetKeyword("PumpHeader", 1));
    }
Exemple #4
0
        internal MOUSE_PUMPS(PFSSection Section)
        {
            _pfsHandle = Section;

            Pumps = new List <Pump>();
            for (int i = 1; i <= Section.GetKeywordsNo("Pump"); i++)
            {
                Pumps.Add(new Pump(Section.GetKeyword("Pump", i)));
            }
            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }

            PumpHeader = new PumpHeader(_pfsHandle.GetKeyword("PumpHeader", 1));
        }