src/model/InfraredTransparentMaterial.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 "InfraredTransparentMaterial.hpp" | ||
| 7 | #include "InfraredTransparentMaterial_Impl.hpp" | ||
| 8 | |||
| 9 | #include <utilities/idd/OS_Material_InfraredTransparent_FieldEnums.hxx> | ||
| 10 | #include <utilities/idd/IddEnums.hxx> | ||
| 11 | |||
| 12 | #include "../utilities/core/Assert.hpp" | ||
| 13 | |||
| 14 | namespace openstudio { | ||
| 15 | namespace model { | ||
| 16 | |||
| 17 | namespace detail { | ||
| 18 | |||
| 19 | 1 | InfraredTransparentMaterial_Impl::InfraredTransparentMaterial_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 20 | 1 | : ModelPartitionMaterial_Impl(idfObject, model, keepHandle) { | |
| 21 |
4/6✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 10 not taken.
✓ Branch 11 taken 1 time.
✗ Branch 13 not taken.
|
1 | OS_ASSERT(idfObject.iddObject().type() == InfraredTransparentMaterial::iddObjectType()); |
| 22 | 1 | } | |
| 23 | |||
| 24 | ✗ | InfraredTransparentMaterial_Impl::InfraredTransparentMaterial_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, | |
| 25 | ✗ | bool keepHandle) | |
| 26 | ✗ | : ModelPartitionMaterial_Impl(other, model, keepHandle) { | |
| 27 | ✗ | OS_ASSERT(other.iddObject().type() == InfraredTransparentMaterial::iddObjectType()); | |
| 28 | ✗ | } | |
| 29 | |||
| 30 | 1 | InfraredTransparentMaterial_Impl::InfraredTransparentMaterial_Impl(const InfraredTransparentMaterial_Impl& other, Model_Impl* model, | |
| 31 | 1 | bool keepHandle) | |
| 32 | 1 | : ModelPartitionMaterial_Impl(other, model, keepHandle) {} | |
| 33 | |||
| 34 | ✗ | const std::vector<std::string>& InfraredTransparentMaterial_Impl::outputVariableNames() const { | |
| 35 | ✗ | static const std::vector<std::string> result; | |
| 36 | ✗ | return result; | |
| 37 | } | ||
| 38 | |||
| 39 | ✗ | IddObjectType InfraredTransparentMaterial_Impl::iddObjectType() const { | |
| 40 | ✗ | return InfraredTransparentMaterial::iddObjectType(); | |
| 41 | } | ||
| 42 | |||
| 43 | } // namespace detail | ||
| 44 | |||
| 45 | 1 | InfraredTransparentMaterial::InfraredTransparentMaterial(const Model& model) | |
| 46 | 1 | : ModelPartitionMaterial(InfraredTransparentMaterial::iddObjectType(), model) { | |
| 47 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 1 time.
✗ Branch 5 not taken.
|
1 | OS_ASSERT(getImpl<detail::InfraredTransparentMaterial_Impl>()); |
| 48 | |||
| 49 | // TODO: Appropriately handle the following required object-list fields. | ||
| 50 | 1 | bool ok = true; | |
| 51 | // ok = setHandle(); | ||
| 52 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 53 | 1 | } | |
| 54 | |||
| 55 | 7602 | IddObjectType InfraredTransparentMaterial::iddObjectType() { | |
| 56 |
1/1✓ Branch 1 taken 7602 times.
|
7602 | return {IddObjectType::OS_Material_InfraredTransparent}; |
| 57 | } | ||
| 58 | |||
| 59 | /// @cond | ||
| 60 | 2 | InfraredTransparentMaterial::InfraredTransparentMaterial(std::shared_ptr<detail::InfraredTransparentMaterial_Impl> impl) | |
| 61 |
1/1✓ Branch 3 taken 2 times.
|
2 | : ModelPartitionMaterial(std::move(impl)) {} |
| 62 | /// @endcond | ||
| 63 | |||
| 64 | } // namespace model | ||
| 65 | } // namespace openstudio | ||
| 66 |