src/model/ExteriorLoadDefinition_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_EXTERIORLOADDEFINITION_IMPL_HPP | ||
| 7 | #define MODEL_EXTERIORLOADDEFINITION_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ResourceObject_Impl.hpp" | ||
| 10 | |||
| 11 | namespace openstudio { | ||
| 12 | namespace model { | ||
| 13 | |||
| 14 | // forward declaration | ||
| 15 | class ExteriorLoadInstance; | ||
| 16 | class ExteriorLoadDefinition; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | class MODEL_API ExteriorLoadDefinition_Impl : public ResourceObject_Impl | ||
| 21 | { | ||
| 22 | public: | ||
| 23 | // Construct completely new object. | ||
| 24 | ExteriorLoadDefinition_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 25 | |||
| 26 | // Construct from existing workspace object (typically when Model is being constructed | ||
| 27 | // from Workspace). | ||
| 28 | ExteriorLoadDefinition_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 29 | |||
| 30 | // Clone copy constructor. | ||
| 31 | ExteriorLoadDefinition_Impl(const ExteriorLoadDefinition_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | 69 | virtual ~ExteriorLoadDefinition_Impl() override = default; | |
| 34 | |||
| 35 | /// Removes the definition and all instances. | ||
| 36 | virtual std::vector<openstudio::IdfObject> remove() override; | ||
| 37 | |||
| 38 | /// Returns all instances of this definition. | ||
| 39 | std::vector<ExteriorLoadInstance> instances() const; | ||
| 40 | |||
| 41 | /** Returns the number of instances of this exterior load definition. | ||
| 42 | ExteriorLoadInstance multipliers are included in the result **/ | ||
| 43 | int quantity() const; | ||
| 44 | |||
| 45 | private: | ||
| 46 | REGISTER_LOGGER("openstudio.model.ExteriorLoadDefinition"); | ||
| 47 | }; | ||
| 48 | |||
| 49 | } // namespace detail | ||
| 50 | |||
| 51 | } // namespace model | ||
| 52 | } // namespace openstudio | ||
| 53 | |||
| 54 | #endif // MODEL_EXTERIORLOADDEFINITION_IMPL_HPP | ||
| 55 |