src/model/WeatherFileDays.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_WEATHERFILEDAYS_HPP | ||
| 7 | #define MODEL_WEATHERFILEDAYS_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "SizingPeriod.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | namespace detail { | ||
| 16 | class WeatherFileDays_Impl; | ||
| 17 | } // namespace detail | ||
| 18 | |||
| 19 | class MODEL_API WeatherFileDays : public SizingPeriod | ||
| 20 | { | ||
| 21 | public: | ||
| 22 | // constructor | ||
| 23 | explicit WeatherFileDays(const Model& model); | ||
| 24 | |||
| 25 | 5 | virtual ~WeatherFileDays() override = default; | |
| 26 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 27 | ✗ | WeatherFileDays(const WeatherFileDays& other) = default; | |
| 28 | ✗ | WeatherFileDays(WeatherFileDays&& other) = default; | |
| 29 | ✗ | WeatherFileDays& operator=(const WeatherFileDays&) = default; | |
| 30 | ✗ | WeatherFileDays& operator=(WeatherFileDays&&) = default; | |
| 31 | |||
| 32 | static IddObjectType iddObjectType(); | ||
| 33 | |||
| 34 | protected: | ||
| 35 | using ImplType = detail::WeatherFileDays_Impl; | ||
| 36 | |||
| 37 | friend class Model; | ||
| 38 | friend class openstudio::IdfObject; | ||
| 39 | |||
| 40 | // constructor | ||
| 41 | explicit WeatherFileDays(std::shared_ptr<detail::WeatherFileDays_Impl> impl); | ||
| 42 | |||
| 43 | private: | ||
| 44 | REGISTER_LOGGER("openstudio.model.WeatherFileDays"); | ||
| 45 | }; | ||
| 46 | |||
| 47 | /** \relates WeatherFileDays */ | ||
| 48 | using OptionalWeatherFileDays = boost::optional<WeatherFileDays>; | ||
| 49 | |||
| 50 | /** \relates WeatherFileDays */ | ||
| 51 | using WeatherFileDaysVector = std::vector<WeatherFileDays>; | ||
| 52 | |||
| 53 | } // namespace model | ||
| 54 | } // namespace openstudio | ||
| 55 | |||
| 56 | #endif // MODEL_WEATHERFILEDAYS_HPP | ||
| 57 |