| 556 | } |
| 557 | |
| 558 | int SqlFile_Impl::insertZone(const std::string& t_name, double t_relNorth, double t_originX, double t_originY, double t_originZ, double t_centroidX, |
| 559 | double t_centroidY, double t_centroidZ, int t_ofType, double t_multiplier, double t_listMultiplier, double t_minimumX, |
| 560 | double t_maximumX, double t_minimumY, double t_maximumY, double t_minimumZ, double t_maximumZ, double t_ceilingHeight, |
| 561 | double t_volume, int t_insideConvectionAlgo, int t_outsideConvectionAlgo, double t_floorArea, |
| 562 | double t_extGrossWallArea, double t_extNetWallArea, double t_extWindowArea, bool t_isPartOfTotalArea) { |
| 563 | int zoneIndex = getNextIndex("zones", "ZoneIndex"); |
| 564 | |
| 565 | execAndThrowOnError("insert into zones (ZoneIndex, ZoneName, RelNorth, OriginX, OriginY, OriginZ, CentroidX, CentroidY, CentroidZ, OfType, " |
| 566 | "Multiplier, ListMultiplier, MinimumX, MaximumX, MinimumY, MaximumY, MinimumZ, MaximumZ, CeilingHeight, Volume, " |
| 567 | "InsideConvectionAlgo, OutsideConvectionAlgo, FloorArea, ExtGrossWallArea, ExtNetWallArea, ExtWindowArea, IsPartOfTotalArea) " |
| 568 | "values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", |
| 569 | // Bind Args |
| 570 | zoneIndex, t_name, t_relNorth, t_originX, t_originY, t_originZ, t_centroidX, t_centroidY, t_centroidZ, t_ofType, t_multiplier, |
| 571 | t_listMultiplier, t_minimumX, t_maximumX, t_minimumY, t_maximumY, t_minimumZ, t_maximumZ, t_ceilingHeight, t_volume, |
| 572 | t_insideConvectionAlgo, t_outsideConvectionAlgo, t_floorArea, t_extGrossWallArea, t_extNetWallArea, t_extWindowArea, |
| 573 | t_isPartOfTotalArea); |
| 574 | |
| 575 | return zoneIndex; |
| 576 | } |
| 577 | |
| 578 | void SqlFile_Impl::insertIlluminanceMap(const std::string& t_zoneName, const std::string& t_name, const std::string& t_environmentName, |
| 579 | const std::vector<DateTime>& t_times, const std::vector<double>& t_xs, const std::vector<double>& t_ys, |
nothing calls this directly
no test coverage detected