src/model/EnergyManagementSystemProgramCallingManager.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_ENERGYMANAGEMENTSYSTEMPROGRAMCALLINGMANAGER_HPP | ||
| 7 | #define MODEL_ENERGYMANAGEMENTSYSTEMPROGRAMCALLINGMANAGER_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ModelObject.hpp" | ||
| 11 | #include "EnergyManagementSystemProgram.hpp" | ||
| 12 | |||
| 13 | namespace openstudio { | ||
| 14 | namespace model { | ||
| 15 | |||
| 16 | namespace detail { | ||
| 17 | |||
| 18 | class EnergyManagementSystemProgramCallingManager_Impl; | ||
| 19 | |||
| 20 | } // namespace detail | ||
| 21 | |||
| 22 | /** EnergyManagementSystemProgramCallingManager is a ModelObject that wraps the OpenStudio IDD object 'OS:EnergyManagementSystem:ProgramCallingManager'. */ | ||
| 23 | class MODEL_API EnergyManagementSystemProgramCallingManager : public ModelObject | ||
| 24 | { | ||
| 25 | public: | ||
| 26 | /** @name Constructors and Destructors */ | ||
| 27 | //@{ | ||
| 28 | |||
| 29 | explicit EnergyManagementSystemProgramCallingManager(const Model& model); | ||
| 30 | |||
| 31 | 285 | virtual ~EnergyManagementSystemProgramCallingManager() override = default; | |
| 32 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 33 | 24 | EnergyManagementSystemProgramCallingManager(const EnergyManagementSystemProgramCallingManager& other) = default; | |
| 34 | 123 | EnergyManagementSystemProgramCallingManager(EnergyManagementSystemProgramCallingManager&& other) = default; | |
| 35 | ✗ | EnergyManagementSystemProgramCallingManager& operator=(const EnergyManagementSystemProgramCallingManager&) = default; | |
| 36 | ✗ | EnergyManagementSystemProgramCallingManager& operator=(EnergyManagementSystemProgramCallingManager&&) = default; | |
| 37 | |||
| 38 | //@} | ||
| 39 | |||
| 40 | static IddObjectType iddObjectType(); | ||
| 41 | |||
| 42 | static std::vector<std::string> validCallingPointValues(); | ||
| 43 | |||
| 44 | /** @name Getters */ | ||
| 45 | //@{ | ||
| 46 | |||
| 47 | std::string callingPoint() const; | ||
| 48 | |||
| 49 | std::vector<EnergyManagementSystemProgram> programs() const; | ||
| 50 | |||
| 51 | boost::optional<EnergyManagementSystemProgram> getProgram(unsigned index) const; | ||
| 52 | |||
| 53 | //@} | ||
| 54 | /** @name Setters */ | ||
| 55 | //@{ | ||
| 56 | |||
| 57 | bool setCallingPoint(const std::string& callingPoint); | ||
| 58 | |||
| 59 | bool eraseProgram(unsigned index); | ||
| 60 | |||
| 61 | void erasePrograms(); | ||
| 62 | |||
| 63 | bool addProgram(const EnergyManagementSystemProgram& program); | ||
| 64 | |||
| 65 | bool setProgram(const EnergyManagementSystemProgram& program, unsigned index); | ||
| 66 | |||
| 67 | bool setPrograms(const std::vector<EnergyManagementSystemProgram>& programs); | ||
| 68 | |||
| 69 | //@} | ||
| 70 | /** @name Other */ | ||
| 71 | //@{ | ||
| 72 | |||
| 73 | //@} | ||
| 74 | protected: | ||
| 75 | /// @cond | ||
| 76 | using ImplType = detail::EnergyManagementSystemProgramCallingManager_Impl; | ||
| 77 | |||
| 78 | explicit EnergyManagementSystemProgramCallingManager(std::shared_ptr<detail::EnergyManagementSystemProgramCallingManager_Impl> impl); | ||
| 79 | |||
| 80 | friend class detail::EnergyManagementSystemProgramCallingManager_Impl; | ||
| 81 | friend class Model; | ||
| 82 | friend class IdfObject; | ||
| 83 | friend class openstudio::detail::IdfObject_Impl; | ||
| 84 | /// @endcond | ||
| 85 | private: | ||
| 86 | REGISTER_LOGGER("openstudio.model.EnergyManagementSystemProgramCallingManager"); | ||
| 87 | }; | ||
| 88 | |||
| 89 | /** \relates EnergyManagementSystemProgramCallingManager*/ | ||
| 90 | using OptionalEnergyManagementSystemProgramCallingManager = boost::optional<EnergyManagementSystemProgramCallingManager>; | ||
| 91 | |||
| 92 | /** \relates EnergyManagementSystemProgramCallingManager*/ | ||
| 93 | using EnergyManagementSystemProgramCallingManagerVector = std::vector<EnergyManagementSystemProgramCallingManager>; | ||
| 94 | |||
| 95 | } // namespace model | ||
| 96 | } // namespace openstudio | ||
| 97 | |||
| 98 | #endif // MODEL_ENERGYMANAGEMENTSYSTEMPROGRAMCALLINGMANAGER_HPP | ||
| 99 |