| 140 | } |
| 141 | |
| 142 | boost::optional<EndUseType> OutputMeter_Impl::endUseType() const { |
| 143 | boost::optional<EndUseType> result; |
| 144 | std::string myName = name(); |
| 145 | boost::smatch matches; |
| 146 | if (boost::regex_search(myName, matches, OutputMeter::meterRegex())) { |
| 147 | if (matches[2].matched) { |
| 148 | result = EndUseType(std::string(matches[2].first, matches[2].second)); |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | return result; |
| 153 | } |
| 154 | |
| 155 | boost::optional<FuelType> OutputMeter_Impl::fuelType() const { |
| 156 | boost::optional<FuelType> result; |