| 66 | } |
| 67 | |
| 68 | boost::optional<OutputMeter> EnergyManagementSystemSensor_Impl::outputMeter() const { |
| 69 | boost::optional<OutputMeter> value = optionalOutputMeter(); |
| 70 | if (!value.is_initialized()) { |
| 71 | LOG(Info, " does not have an Output Meter attached."); |
| 72 | return value; |
| 73 | } |
| 74 | return value.get(); |
| 75 | } |
| 76 | |
| 77 | std::string EnergyManagementSystemSensor_Impl::outputVariableOrMeterName() const { |
| 78 | OptionalString results = getString(OS_EnergyManagementSystem_SensorFields::OutputVariableorOutputMeterName, true); |