src/model/WeatherFileConditionType.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 "WeatherFileConditionType.hpp" | ||
| 7 | #include "WeatherFileConditionType_Impl.hpp" | ||
| 8 | #include "Site.hpp" | ||
| 9 | #include "Site_Impl.hpp" | ||
| 10 | |||
| 11 | #include "../utilities/core/Assert.hpp" | ||
| 12 | |||
| 13 | #include <utilities/idd/IddEnums.hxx> | ||
| 14 | |||
| 15 | namespace openstudio { | ||
| 16 | namespace model { | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | 3 | WeatherFileConditionType_Impl::WeatherFileConditionType_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 21 | 3 | : SizingPeriod_Impl(idfObject, model, keepHandle) { | |
| 22 |
4/6✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 3 times.
✗ Branch 13 not taken.
|
3 | OS_ASSERT(idfObject.iddObject().type() == WeatherFileConditionType::iddObjectType()); |
| 23 | 3 | } | |
| 24 | |||
| 25 | ✗ | WeatherFileConditionType_Impl::WeatherFileConditionType_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, | |
| 26 | ✗ | bool keepHandle) | |
| 27 | ✗ | : SizingPeriod_Impl(other, model, keepHandle) { | |
| 28 | ✗ | OS_ASSERT(other.iddObject().type() == WeatherFileConditionType::iddObjectType()); | |
| 29 | ✗ | } | |
| 30 | |||
| 31 | ✗ | WeatherFileConditionType_Impl::WeatherFileConditionType_Impl(const WeatherFileConditionType_Impl& other, Model_Impl* model, bool keepHandle) | |
| 32 | ✗ | : SizingPeriod_Impl(other, model, keepHandle) {} | |
| 33 | |||
| 34 | // Get all output variable names that could be associated with this object. | ||
| 35 | ✗ | const std::vector<std::string>& WeatherFileConditionType_Impl::outputVariableNames() const { | |
| 36 | ✗ | static const std::vector<std::string> result; | |
| 37 | ✗ | return result; | |
| 38 | } | ||
| 39 | |||
| 40 | ✗ | IddObjectType WeatherFileConditionType_Impl::iddObjectType() const { | |
| 41 | ✗ | return WeatherFileConditionType::iddObjectType(); | |
| 42 | } | ||
| 43 | |||
| 44 | ✗ | void WeatherFileConditionType_Impl::ensureNoLeapDays() { | |
| 45 | // nothing to do | ||
| 46 | ✗ | } | |
| 47 | |||
| 48 | } // namespace detail | ||
| 49 | |||
| 50 | /// constructor | ||
| 51 | 3 | WeatherFileConditionType::WeatherFileConditionType(const Model& model) : SizingPeriod(WeatherFileConditionType::iddObjectType(), model) { | |
| 52 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 3 times.
✗ Branch 5 not taken.
|
3 | OS_ASSERT(getImpl<detail::WeatherFileConditionType_Impl>()); |
| 53 | 3 | } | |
| 54 | |||
| 55 | // constructor | ||
| 56 | ✗ | WeatherFileConditionType::WeatherFileConditionType(std::shared_ptr<detail::WeatherFileConditionType_Impl> impl) : SizingPeriod(std::move(impl)) {} | |
| 57 | |||
| 58 | 7605 | IddObjectType WeatherFileConditionType::iddObjectType() { | |
| 59 |
1/1✓ Branch 1 taken 7605 times.
|
7605 | IddObjectType result(IddObjectType::OS_SizingPeriod_WeatherFileConditionType); |
| 60 | 7605 | return result; | |
| 61 | } | ||
| 62 | |||
| 63 | } // namespace model | ||
| 64 | } // namespace openstudio | ||
| 65 |