src/model/SurfacePropertyExposedFoundationPerimeter_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_SURFACEPROPERTYEXPOSEDFOUNDATIONPERIMETER_IMPL_HPP | ||
| 7 | #define MODEL_SURFACEPROPERTYEXPOSEDFOUNDATIONPERIMETER_IMPL_HPP | ||
| 8 | |||
| 9 | #include <vector> | ||
| 10 | #include "ModelAPI.hpp" | ||
| 11 | #include "ModelObject_Impl.hpp" | ||
| 12 | |||
| 13 | namespace openstudio { | ||
| 14 | namespace model { | ||
| 15 | |||
| 16 | class Surface; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | /** SurfacePropertyExposedFoundationPerimeter_Impl is a ModelObject_Impl that is the implementation class for SurfacePropertyExposedFoundationPerimeter.*/ | ||
| 21 | class MODEL_API SurfacePropertyExposedFoundationPerimeter_Impl : public ModelObject_Impl | ||
| 22 | { | ||
| 23 | |||
| 24 | public: | ||
| 25 | /** @name Constructors and Destructors */ | ||
| 26 | //@{ | ||
| 27 | |||
| 28 | SurfacePropertyExposedFoundationPerimeter_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 29 | |||
| 30 | SurfacePropertyExposedFoundationPerimeter_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 31 | |||
| 32 | SurfacePropertyExposedFoundationPerimeter_Impl(const SurfacePropertyExposedFoundationPerimeter_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 33 | |||
| 34 | 20 | virtual ~SurfacePropertyExposedFoundationPerimeter_Impl() override = default; | |
| 35 | |||
| 36 | //@} | ||
| 37 | /** @name Virtual Methods */ | ||
| 38 | //@{ | ||
| 39 | |||
| 40 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 41 | |||
| 42 | virtual IddObjectType iddObjectType() const override; | ||
| 43 | |||
| 44 | //@} | ||
| 45 | /** @name Getters */ | ||
| 46 | //@{ | ||
| 47 | |||
| 48 | Surface surface() const; | ||
| 49 | |||
| 50 | std::string exposedPerimeterCalculationMethod() const; | ||
| 51 | |||
| 52 | boost::optional<double> totalExposedPerimeter(); | ||
| 53 | |||
| 54 | double exposedPerimeterFraction() const; | ||
| 55 | |||
| 56 | bool isExposedPerimeterFractionDefaulted() const; | ||
| 57 | |||
| 58 | //@} | ||
| 59 | /** @name Setters */ | ||
| 60 | //@{ | ||
| 61 | |||
| 62 | bool setExposedPerimeterCalculationMethod(const std::string& exposedPerimeterCalculationMethod); | ||
| 63 | |||
| 64 | bool setTotalExposedPerimeter(double totalExposedPerimeter); | ||
| 65 | |||
| 66 | bool setExposedPerimeterFraction(double exposedPerimeterFraction); | ||
| 67 | |||
| 68 | void resetExposedPerimeterFraction(); | ||
| 69 | |||
| 70 | virtual bool setParent(ParentObject& newParent) override; | ||
| 71 | |||
| 72 | virtual boost::optional<ParentObject> parent() const override; | ||
| 73 | |||
| 74 | //@} | ||
| 75 | /** @name Other */ | ||
| 76 | //@{ | ||
| 77 | |||
| 78 | //@} | ||
| 79 | protected: | ||
| 80 | private: | ||
| 81 | − | REGISTER_LOGGER("openstudio.model.SurfacePropertyExposedFoundationPerimeter"); | |
| 82 | |||
| 83 | boost::optional<Surface> optionalSurface() const; | ||
| 84 | }; | ||
| 85 | |||
| 86 | } // namespace detail | ||
| 87 | |||
| 88 | } // namespace model | ||
| 89 | } // namespace openstudio | ||
| 90 | |||
| 91 | #endif // MODEL_SURFACEPROPERTYEXPOSEDFOUNDATIONPERIMETER_IMPL_HPP | ||
| 92 |