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