src/energyplus/ForwardTranslator/ForwardTranslateInteriorPartitionSurfaceGroup.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /*********************************************************************************************************************** | ||
| 2 | * OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC. | ||
| 3 | * See also https://openstudio.net/license | ||
| 4 | ***********************************************************************************************************************/ | ||
| 5 | |||
| 6 | #include "../ForwardTranslator.hpp" | ||
| 7 | |||
| 8 | #include "../../model/Model.hpp" | ||
| 9 | #include "../../model/InteriorPartitionSurfaceGroup.hpp" | ||
| 10 | #include "../../model/InteriorPartitionSurfaceGroup_Impl.hpp" | ||
| 11 | #include "../../model/InteriorPartitionSurface.hpp" | ||
| 12 | |||
| 13 | #include "../../utilities/idd/IddEnums.hpp" | ||
| 14 | #include <utilities/idd/IddFactory.hxx> | ||
| 15 | |||
| 16 | using namespace openstudio::model; | ||
| 17 | |||
| 18 | using namespace std; | ||
| 19 | |||
| 20 | namespace openstudio { | ||
| 21 | |||
| 22 | namespace energyplus { | ||
| 23 | |||
| 24 | 135 | boost::optional<IdfObject> ForwardTranslator::translateInteriorPartitionSurfaceGroup(model::InteriorPartitionSurfaceGroup& modelObject) { | |
| 25 |
1/1✓ Branch 1 taken 135 times.
|
135 | InteriorPartitionSurfaceVector interiorPartitionSurfaces = modelObject.interiorPartitionSurfaces(); |
| 26 |
1/1✓ Branch 3 taken 135 times.
|
135 | std::sort(interiorPartitionSurfaces.begin(), interiorPartitionSurfaces.end(), WorkspaceObjectNameLess()); |
| 27 |
2/2✓ Branch 4 taken 166 times.
✓ Branch 5 taken 135 times.
|
301 | for (InteriorPartitionSurface& interiorPartitionSurface : interiorPartitionSurfaces) { |
| 28 |
1/1✓ Branch 1 taken 166 times.
|
166 | translateAndMapModelObject(interiorPartitionSurface); |
| 29 | } | ||
| 30 | |||
| 31 | 270 | return boost::none; | |
| 32 | 135 | } | |
| 33 | |||
| 34 | } // namespace energyplus | ||
| 35 | |||
| 36 | } // namespace openstudio | ||
| 37 |