src/model/DefaultSurfaceConstructions_Impl.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_IMPL_HPP | ||
| 7 | #define MODEL_DEFAULTSURFACECONSTRUCTIONS_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ResourceObject_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class ConstructionBase; | ||
| 16 | class DefaultSurfaceConstructions; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | /** DefaultSurfaceConstructions_Impl is a ResourceObject_Impl that is the implementation class for DefaultSurfaceConstructions.*/ | ||
| 21 | class MODEL_API DefaultSurfaceConstructions_Impl : public ResourceObject_Impl | ||
| 22 | { | ||
| 23 | |||
| 24 | public: | ||
| 25 | /** @name Constructors and Destructors */ | ||
| 26 | //@{ | ||
| 27 | |||
| 28 | DefaultSurfaceConstructions_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 29 | |||
| 30 | DefaultSurfaceConstructions_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 31 | |||
| 32 | DefaultSurfaceConstructions_Impl(const DefaultSurfaceConstructions_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 33 | |||
| 34 | 1471 | virtual ~DefaultSurfaceConstructions_Impl() override = default; | |
| 35 | |||
| 36 | //@} | ||
| 37 | |||
| 38 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 39 | |||
| 40 | virtual IddObjectType iddObjectType() const override; | ||
| 41 | |||
| 42 | /** @name Getters */ | ||
| 43 | //@{ | ||
| 44 | |||
| 45 | boost::optional<ConstructionBase> floorConstruction() const; | ||
| 46 | |||
| 47 | boost::optional<ConstructionBase> wallConstruction() const; | ||
| 48 | |||
| 49 | boost::optional<ConstructionBase> roofCeilingConstruction() const; | ||
| 50 | |||
| 51 | //@} | ||
| 52 | /** @name Setters */ | ||
| 53 | //@{ | ||
| 54 | |||
| 55 | bool setFloorConstruction(const ConstructionBase& construction); | ||
| 56 | |||
| 57 | void resetFloorConstruction(); | ||
| 58 | |||
| 59 | bool setWallConstruction(const ConstructionBase& construction); | ||
| 60 | |||
| 61 | void resetWallConstruction(); | ||
| 62 | |||
| 63 | bool setRoofCeilingConstruction(const ConstructionBase& construction); | ||
| 64 | |||
| 65 | void resetRoofCeilingConstruction(); | ||
| 66 | |||
| 67 | //@} | ||
| 68 | |||
| 69 | /// Merge this object with other one, keep fields from this object if set otherwise set to value from other. | ||
| 70 | void merge(const DefaultSurfaceConstructions& other); | ||
| 71 | |||
| 72 | protected: | ||
| 73 | private: | ||
| 74 | REGISTER_LOGGER("openstudio.model.DefaultSurfaceConstructions"); | ||
| 75 | |||
| 76 | boost::optional<ModelObject> floorConstructionAsModelObject() const; | ||
| 77 | boost::optional<ModelObject> wallConstructionAsModelObject() const; | ||
| 78 | boost::optional<ModelObject> roofCeilingConstructionAsModelObject() const; | ||
| 79 | |||
| 80 | bool setFloorConstructionAsModelObject(boost::optional<ModelObject> modelObject); | ||
| 81 | bool setWallConstructionAsModelObject(boost::optional<ModelObject> modelObject); | ||
| 82 | bool setRoofCeilingConstructionAsModelObject(boost::optional<ModelObject> modelObject); | ||
| 83 | }; | ||
| 84 | |||
| 85 | } // namespace detail | ||
| 86 | |||
| 87 | } // namespace model | ||
| 88 | } // namespace openstudio | ||
| 89 | |||
| 90 | #endif // MODEL_DEFAULTSURFACECONSTRUCTIONS_IMPL_HPP | ||
| 91 |