src/model/EnergyManagementSystemSensor_Impl.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_ENERGYMANAGEMENTSYSTEMSENSOR_IMPL_HPP | ||
| 7 | #define MODEL_ENERGYMANAGEMENTSYSTEMSENSOR_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ModelObject_Impl.hpp" | ||
| 11 | #include "OutputVariable.hpp" | ||
| 12 | #include "OutputVariable_Impl.hpp" | ||
| 13 | #include "OutputMeter.hpp" | ||
| 14 | #include "OutputMeter_Impl.hpp" | ||
| 15 | |||
| 16 | namespace openstudio { | ||
| 17 | namespace model { | ||
| 18 | |||
| 19 | class OutputVariable; | ||
| 20 | class OutputMeter; | ||
| 21 | |||
| 22 | namespace detail { | ||
| 23 | |||
| 24 | /** EnergyManagementSystemSensor_Impl is a ModelObject_Impl that is the implementation class for EnergyManagementSystemSensor.*/ | ||
| 25 | class MODEL_API EnergyManagementSystemSensor_Impl : public ModelObject_Impl | ||
| 26 | { | ||
| 27 | public: | ||
| 28 | /** @name Constructors and Destructors */ | ||
| 29 | //@{ | ||
| 30 | |||
| 31 | EnergyManagementSystemSensor_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | EnergyManagementSystemSensor_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 34 | |||
| 35 | EnergyManagementSystemSensor_Impl(const EnergyManagementSystemSensor_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 36 | |||
| 37 | 116 | virtual ~EnergyManagementSystemSensor_Impl() override = default; | |
| 38 | |||
| 39 | //@} | ||
| 40 | /** @name Virtual Methods */ | ||
| 41 | //@{ | ||
| 42 | |||
| 43 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 44 | |||
| 45 | virtual IddObjectType iddObjectType() const override; | ||
| 46 | |||
| 47 | //@} | ||
| 48 | /** @name Getters */ | ||
| 49 | //@{ | ||
| 50 | |||
| 51 | std::string keyName() const; | ||
| 52 | |||
| 53 | boost::optional<OutputVariable> outputVariable() const; | ||
| 54 | boost::optional<OutputMeter> outputMeter() const; | ||
| 55 | std::string outputVariableOrMeterName() const; | ||
| 56 | |||
| 57 | //@} | ||
| 58 | /** @name Setters */ | ||
| 59 | //@{ | ||
| 60 | |||
| 61 | bool setKeyName(const std::string& keyName); | ||
| 62 | |||
| 63 | bool setOutputVariable(const OutputVariable& outputVariable); | ||
| 64 | bool setOutputMeter(const OutputMeter& outputMeter); | ||
| 65 | bool setOutputVariableOrMeterName(const std::string& outputVariableOrMeterName); | ||
| 66 | |||
| 67 | //@} | ||
| 68 | /** @name Other */ | ||
| 69 | //@{ | ||
| 70 | |||
| 71 | //@} | ||
| 72 | protected: | ||
| 73 | private: | ||
| 74 | − | REGISTER_LOGGER("openstudio.model.EnergyManagementSystemSensor"); | |
| 75 | |||
| 76 | // Optional getters for use by methods like children() so can remove() if the constructor fails. | ||
| 77 | // There are other ways for the public versions of these getters to fail--perhaps all required | ||
| 78 | // objects should be returned as boost::optionals | ||
| 79 | boost::optional<OutputVariable> optionalOutputVariable() const; | ||
| 80 | boost::optional<OutputMeter> optionalOutputMeter() const; | ||
| 81 | }; | ||
| 82 | |||
| 83 | } // namespace detail | ||
| 84 | |||
| 85 | } // namespace model | ||
| 86 | } // namespace openstudio | ||
| 87 | |||
| 88 | #endif // MODEL_ENERGYMANAGEMENTSYSTEMSENSOR_IMPL_HPP | ||
| 89 |