internal STRUCTURE_MODULE(PFSSection Section)
    {
      _pfsHandle = Section;

      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
        case "CROSSSECTIONS":
          CROSSSECTIONS = new CROSSSECTIONS(sub);
          break;
        case "WEIR":
          WEIR = new WEIR(sub);
          break;
        case "CULVERTS":
          CULVERTS = new WEIR(sub);
          break;
        case "PUMPS":
          PUMPS = new WEIR(sub);
          break;
        case "REGULATING_STR":
          REGULATING_STR = new WEIR(sub);
          break;
        case "CONTROL_STR":
          CONTROL_STR = new WEIR(sub);
          break;
        case "DAMBREAK_STR":
          DAMBREAK_STR = new WEIR(sub);
          break;
        case "BRIDGE":
          BRIDGE = new WEIR(sub);
          break;
        case "USER_DEFINED":
          USER_DEFINED = new WEIR(sub);
          break;
        case "TABULATED":
          TABULATED = new WEIR(sub);
          break;
        case "ENERGYBALANCE":
          ENERGYBALANCE = new WEIR(sub);
          break;
        case "MIKE12_HYDRAU":
          MIKE12_HYDRAU = new WEIR(sub);
          break;
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }

      Structure_Version = new Structure_Version(_pfsHandle.GetKeyword("Structure_Version", 1));
    }
    public STRUCTURE_MODULE(string pfsname)
    {
      _pfsHandle = new PFSSection(pfsname);

      Structure_Version = new Structure_Version("Structure_Version");
      _pfsHandle.AddKeyword(Structure_Version._keyword);
      CROSSSECTIONS = new CROSSSECTIONS("CROSSSECTIONS" );
      _pfsHandle.AddSection(CROSSSECTIONS._pfsHandle);

      WEIR = new WEIR("WEIR" );
      _pfsHandle.AddSection(WEIR._pfsHandle);

      CULVERTS = new WEIR("CULVERTS" );
      _pfsHandle.AddSection(CULVERTS._pfsHandle);

      PUMPS = new WEIR("PUMPS" );
      _pfsHandle.AddSection(PUMPS._pfsHandle);

      REGULATING_STR = new WEIR("REGULATING_STR" );
      _pfsHandle.AddSection(REGULATING_STR._pfsHandle);

      CONTROL_STR = new WEIR("CONTROL_STR" );
      _pfsHandle.AddSection(CONTROL_STR._pfsHandle);

      DAMBREAK_STR = new WEIR("DAMBREAK_STR" );
      _pfsHandle.AddSection(DAMBREAK_STR._pfsHandle);

      BRIDGE = new WEIR("BRIDGE" );
      _pfsHandle.AddSection(BRIDGE._pfsHandle);

      USER_DEFINED = new WEIR("USER_DEFINED" );
      _pfsHandle.AddSection(USER_DEFINED._pfsHandle);

      TABULATED = new WEIR("TABULATED" );
      _pfsHandle.AddSection(TABULATED._pfsHandle);

      ENERGYBALANCE = new WEIR("ENERGYBALANCE" );
      _pfsHandle.AddSection(ENERGYBALANCE._pfsHandle);

      MIKE12_HYDRAU = new WEIR("MIKE12_HYDRAU" );
      _pfsHandle.AddSection(MIKE12_HYDRAU._pfsHandle);

    }
Example #3
0
        public STRUCTURE_MODULE(string pfsname)
        {
            _pfsHandle = new PFSSection(pfsname);

            Structure_Version = new Structure_Version("Structure_Version");
            _pfsHandle.AddKeyword(Structure_Version._keyword);
            CROSSSECTIONS = new CROSSSECTIONS("CROSSSECTIONS");
            _pfsHandle.AddSection(CROSSSECTIONS._pfsHandle);

            WEIR = new WEIR("WEIR");
            _pfsHandle.AddSection(WEIR._pfsHandle);

            CULVERTS = new WEIR("CULVERTS");
            _pfsHandle.AddSection(CULVERTS._pfsHandle);

            PUMPS = new WEIR("PUMPS");
            _pfsHandle.AddSection(PUMPS._pfsHandle);

            REGULATING_STR = new WEIR("REGULATING_STR");
            _pfsHandle.AddSection(REGULATING_STR._pfsHandle);

            CONTROL_STR = new WEIR("CONTROL_STR");
            _pfsHandle.AddSection(CONTROL_STR._pfsHandle);

            DAMBREAK_STR = new WEIR("DAMBREAK_STR");
            _pfsHandle.AddSection(DAMBREAK_STR._pfsHandle);

            BRIDGE = new WEIR("BRIDGE");
            _pfsHandle.AddSection(BRIDGE._pfsHandle);

            USER_DEFINED = new WEIR("USER_DEFINED");
            _pfsHandle.AddSection(USER_DEFINED._pfsHandle);

            TABULATED = new WEIR("TABULATED");
            _pfsHandle.AddSection(TABULATED._pfsHandle);

            ENERGYBALANCE = new WEIR("ENERGYBALANCE");
            _pfsHandle.AddSection(ENERGYBALANCE._pfsHandle);

            MIKE12_HYDRAU = new WEIR("MIKE12_HYDRAU");
            _pfsHandle.AddSection(MIKE12_HYDRAU._pfsHandle);
        }
Example #4
0
        internal STRUCTURE_MODULE(PFSSection Section)
        {
            _pfsHandle = Section;

            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                case "CROSSSECTIONS":
                    CROSSSECTIONS = new CROSSSECTIONS(sub);
                    break;

                case "WEIR":
                    WEIR = new WEIR(sub);
                    break;

                case "CULVERTS":
                    CULVERTS = new WEIR(sub);
                    break;

                case "PUMPS":
                    PUMPS = new WEIR(sub);
                    break;

                case "REGULATING_STR":
                    REGULATING_STR = new WEIR(sub);
                    break;

                case "CONTROL_STR":
                    CONTROL_STR = new WEIR(sub);
                    break;

                case "DAMBREAK_STR":
                    DAMBREAK_STR = new WEIR(sub);
                    break;

                case "BRIDGE":
                    BRIDGE = new WEIR(sub);
                    break;

                case "USER_DEFINED":
                    USER_DEFINED = new WEIR(sub);
                    break;

                case "TABULATED":
                    TABULATED = new WEIR(sub);
                    break;

                case "ENERGYBALANCE":
                    ENERGYBALANCE = new WEIR(sub);
                    break;

                case "MIKE12_HYDRAU":
                    MIKE12_HYDRAU = new WEIR(sub);
                    break;

                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }

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