src/energyplus/ForwardTranslator/ForwardTranslateShadingSurfaceGroup.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/ShadingSurfaceGroup.hpp" | ||
| 10 | #include "../../model/ShadingSurfaceGroup_Impl.hpp" | ||
| 11 | #include "../../model/ShadingSurface.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 | 468 | boost::optional<IdfObject> ForwardTranslator::translateShadingSurfaceGroup(model::ShadingSurfaceGroup& modelObject) { | |
| 25 | |||
| 26 |
1/1✓ Branch 1 taken 468 times.
|
468 | ShadingSurfaceVector shadingSurfaces = modelObject.shadingSurfaces(); |
| 27 |
1/1✓ Branch 3 taken 468 times.
|
468 | std::sort(shadingSurfaces.begin(), shadingSurfaces.end(), WorkspaceObjectNameLess()); |
| 28 |
2/2✓ Branch 4 taken 1210 times.
✓ Branch 5 taken 468 times.
|
1678 | for (ShadingSurface& shadingSurface : shadingSurfaces) { |
| 29 |
1/1✓ Branch 1 taken 1210 times.
|
1210 | translateAndMapModelObject(shadingSurface); |
| 30 | } | ||
| 31 | |||
| 32 | 936 | return boost::none; | |
| 33 | 468 | } | |
| 34 | |||
| 35 | } // namespace energyplus | ||
| 36 | |||
| 37 | } // namespace openstudio | ||
| 38 |