src/model/WindowDataFile.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_WINDOWDATAFILE_HPP | ||
| 7 | #define MODEL_WINDOWDATAFILE_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ConstructionBase.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | namespace detail { | ||
| 16 | class WindowDataFile_Impl; | ||
| 17 | } | ||
| 18 | |||
| 19 | /** WindowDataFile is a ConstructionBase that wraps EnergyPlus IDD object | ||
| 20 | * 'Construction:WindowDataFile'. WindowDataFile is an alternative to Construction that isFenestration. */ | ||
| 21 | class MODEL_API WindowDataFile : public ConstructionBase | ||
| 22 | { | ||
| 23 | public: | ||
| 24 | /** @name Constructors and Destructors */ | ||
| 25 | //@{ | ||
| 26 | |||
| 27 | explicit WindowDataFile(const Model& model); | ||
| 28 | |||
| 29 | 5 | virtual ~WindowDataFile() override = default; | |
| 30 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 31 | ✗ | WindowDataFile(const WindowDataFile& other) = default; | |
| 32 | 2 | WindowDataFile(WindowDataFile&& other) = default; | |
| 33 | 1 | WindowDataFile& operator=(const WindowDataFile&) = default; | |
| 34 | ✗ | WindowDataFile& operator=(WindowDataFile&&) = default; | |
| 35 | |||
| 36 | //@} | ||
| 37 | /** @name Static Methods */ | ||
| 38 | //@{ | ||
| 39 | |||
| 40 | static IddObjectType iddObjectType(); | ||
| 41 | |||
| 42 | //@} | ||
| 43 | protected: | ||
| 44 | /// @cond | ||
| 45 | using ImplType = detail::WindowDataFile_Impl; | ||
| 46 | |||
| 47 | friend class Model; | ||
| 48 | friend class openstudio::IdfObject; | ||
| 49 | friend class detail::WindowDataFile_Impl; | ||
| 50 | |||
| 51 | explicit WindowDataFile(std::shared_ptr<detail::WindowDataFile_Impl> impl); | ||
| 52 | |||
| 53 | /// @endcond | ||
| 54 | private: | ||
| 55 | REGISTER_LOGGER("openstudio.model.WindowDataFile"); | ||
| 56 | }; | ||
| 57 | |||
| 58 | /** \relates WindowDataFile */ | ||
| 59 | using OptionalWindowDataFile = boost::optional<WindowDataFile>; | ||
| 60 | |||
| 61 | /** \relates WindowDataFile */ | ||
| 62 | using WindowDataFileVector = std::vector<WindowDataFile>; | ||
| 63 | |||
| 64 | } // namespace model | ||
| 65 | } // namespace openstudio | ||
| 66 | |||
| 67 | #endif // MODEL_WINDOWDATAFILE_HPP | ||
| 68 |