src/model/OutputSchedules.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_OUTPUTSCHEDULES_HPP | ||
| 7 | #define MODEL_OUTPUTSCHEDULES_HPP | ||
| 8 | |||
| 9 | #include <model/ModelAPI.hpp> | ||
| 10 | #include "ModelObject.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | namespace detail { | ||
| 16 | |||
| 17 | class OutputSchedules_Impl; | ||
| 18 | |||
| 19 | } // namespace detail | ||
| 20 | |||
| 21 | /** OutputSchedules is a ModelObject that wraps the OpenStudio IDD object 'OS:Output:Schedules'. */ | ||
| 22 | class MODEL_API OutputSchedules : public ModelObject | ||
| 23 | { | ||
| 24 | public: | ||
| 25 | /** @name Constructors and Destructors */ | ||
| 26 | //@{ | ||
| 27 | |||
| 28 | 27 | virtual ~OutputSchedules() override = default; | |
| 29 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 30 | 6 | OutputSchedules(const OutputSchedules& other) = default; | |
| 31 | 6 | OutputSchedules(OutputSchedules&& other) = default; | |
| 32 | ✗ | OutputSchedules& operator=(const OutputSchedules&) = default; | |
| 33 | ✗ | OutputSchedules& operator=(OutputSchedules&&) = default; | |
| 34 | |||
| 35 | //@} | ||
| 36 | |||
| 37 | static IddObjectType iddObjectType(); | ||
| 38 | |||
| 39 | static std::vector<std::string> keyFieldValues(); | ||
| 40 | static std::vector<std::string> validKeyFieldValues(); | ||
| 41 | |||
| 42 | /** @name Getters */ | ||
| 43 | //@{ | ||
| 44 | |||
| 45 | std::string keyField() const; | ||
| 46 | |||
| 47 | //@} | ||
| 48 | /** @name Setters */ | ||
| 49 | //@{ | ||
| 50 | |||
| 51 | bool setKeyField(const std::string& keyField); | ||
| 52 | |||
| 53 | //@} | ||
| 54 | /** @name Other */ | ||
| 55 | //@{ | ||
| 56 | |||
| 57 | //@} | ||
| 58 | protected: | ||
| 59 | /// @cond | ||
| 60 | using ImplType = detail::OutputSchedules_Impl; | ||
| 61 | |||
| 62 | explicit OutputSchedules(std::shared_ptr<detail::OutputSchedules_Impl> impl); | ||
| 63 | |||
| 64 | friend class detail::OutputSchedules_Impl; | ||
| 65 | friend class Model; | ||
| 66 | friend class IdfObject; | ||
| 67 | friend class openstudio::detail::IdfObject_Impl; | ||
| 68 | explicit OutputSchedules(Model& model); | ||
| 69 | |||
| 70 | /// @endcond | ||
| 71 | private: | ||
| 72 | REGISTER_LOGGER("openstudio.model.OutputSchedules"); | ||
| 73 | }; | ||
| 74 | |||
| 75 | /** \relates OutputSchedules*/ | ||
| 76 | using OptionalOutputSchedules = boost::optional<OutputSchedules>; | ||
| 77 | |||
| 78 | /** \relates OutputSchedules*/ | ||
| 79 | using OutputSchedulesVector = std::vector<OutputSchedules>; | ||
| 80 | |||
| 81 | } // namespace model | ||
| 82 | } // namespace openstudio | ||
| 83 | |||
| 84 | #endif // MODEL_OUTPUTSCHEDULES_HPP | ||
| 85 |