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); }
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); }
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)); }
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)); }