src/model/DefaultSurfaceConstructions.hpp
| 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 | #ifndef MODEL_DEFAULTSURFACECONSTRUCTIONS_HPP | ||
| 7 | #define MODEL_DEFAULTSURFACECONSTRUCTIONS_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ResourceObject.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class ConstructionBase; | ||
| 16 | |||
| 17 | namespace detail { | ||
| 18 | |||
| 19 | class DefaultSurfaceConstructions_Impl; | ||
| 20 | |||
| 21 | } // namespace detail | ||
| 22 | |||
| 23 | /** DefaultSurfaceConstructions is a ResourceObject that wraps the OpenStudio IDD object 'OS_DefaultSurfaceConstructions'. */ | ||
| 24 | class MODEL_API DefaultSurfaceConstructions : public ResourceObject | ||
| 25 | { | ||
| 26 | public: | ||
| 27 | /** @name Constructors and Destructors */ | ||
| 28 | //@{ | ||
| 29 | |||
| 30 | explicit DefaultSurfaceConstructions(const Model& model); | ||
| 31 | |||
| 32 | 85442 | virtual ~DefaultSurfaceConstructions() override = default; | |
| 33 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 34 | 105 | DefaultSurfaceConstructions(const DefaultSurfaceConstructions& other) = default; | |
| 35 | 63090 | DefaultSurfaceConstructions(DefaultSurfaceConstructions&& other) = default; | |
| 36 | ✗ | DefaultSurfaceConstructions& operator=(const DefaultSurfaceConstructions&) = default; | |
| 37 | 39 | DefaultSurfaceConstructions& operator=(DefaultSurfaceConstructions&&) = default; | |
| 38 | |||
| 39 | //@} | ||
| 40 | /** @name Static Methods */ | ||
| 41 | //@{ | ||
| 42 | |||
| 43 | static IddObjectType iddObjectType(); | ||
| 44 | |||
| 45 | //@} | ||
| 46 | /** @name Getters */ | ||
| 47 | //@{ | ||
| 48 | |||
| 49 | boost::optional<ConstructionBase> floorConstruction() const; | ||
| 50 | |||
| 51 | boost::optional<ConstructionBase> wallConstruction() const; | ||
| 52 | |||
| 53 | boost::optional<ConstructionBase> roofCeilingConstruction() const; | ||
| 54 | |||
| 55 | //@} | ||
| 56 | /** @name Setters */ | ||
| 57 | //@{ | ||
| 58 | |||
| 59 | bool setFloorConstruction(const ConstructionBase& construction); | ||
| 60 | |||
| 61 | void resetFloorConstruction(); | ||
| 62 | |||
| 63 | bool setWallConstruction(const ConstructionBase& construction); | ||
| 64 | |||
| 65 | void resetWallConstruction(); | ||
| 66 | |||
| 67 | bool setRoofCeilingConstruction(const ConstructionBase& construction); | ||
| 68 | |||
| 69 | void resetRoofCeilingConstruction(); | ||
| 70 | |||
| 71 | //@} | ||
| 72 | |||
| 73 | /// Merge this object with other one, keep fields from this object if set otherwise set to value from other. | ||
| 74 | void merge(const DefaultSurfaceConstructions& other); | ||
| 75 | |||
| 76 | protected: | ||
| 77 | /// @cond | ||
| 78 | using ImplType = detail::DefaultSurfaceConstructions_Impl; | ||
| 79 | |||
| 80 | friend class Model; | ||
| 81 | friend class openstudio::IdfObject; | ||
| 82 | |||
| 83 | explicit DefaultSurfaceConstructions(std::shared_ptr<detail::DefaultSurfaceConstructions_Impl> impl); | ||
| 84 | |||
| 85 | /// @endcond | ||
| 86 | private: | ||
| 87 | REGISTER_LOGGER("openstudio.model.DefaultSurfaceConstructions"); | ||
| 88 | }; | ||
| 89 | |||
| 90 | /** \relates DefaultSurfaceConstructions*/ | ||
| 91 | using OptionalDefaultSurfaceConstructions = boost::optional<DefaultSurfaceConstructions>; | ||
| 92 | |||
| 93 | /** \relates DefaultSurfaceConstructions*/ | ||
| 94 | using DefaultSurfaceConstructionsVector = std::vector<DefaultSurfaceConstructions>; | ||
| 95 | |||
| 96 | } // namespace model | ||
| 97 | } // namespace openstudio | ||
| 98 | |||
| 99 | #endif // MODEL_DEFAULTSURFACECONSTRUCTIONS_HPP | ||
| 100 |