コード例 #1
0
    public MOUSE_WEIRS(string pfsname)
    {
      _pfsHandle = new PFSSection(pfsname);

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

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

      WeirHeader = new WeirHeader("WeirHeader");
      _pfsHandle.AddKeyword(WeirHeader._keyword);
    }
コード例 #2
0
        public MOUSE_WEIRS(string pfsname)
        {
            _pfsHandle = new PFSSection(pfsname);

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

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

            WeirHeader = new WeirHeader("WeirHeader");
            _pfsHandle.AddKeyword(WeirHeader._keyword);
        }
コード例 #3
0
    internal MOUSE_WEIRS(PFSSection Section)
    {
      _pfsHandle = Section;

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

      WeirHeader = new WeirHeader(_pfsHandle.GetKeyword("WeirHeader", 1));
    }
コード例 #4
0
        internal MOUSE_WEIRS(PFSSection Section)
        {
            _pfsHandle = Section;

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

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