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