| 166 | } |
| 167 | |
| 168 | boost::optional<InstallLocationType> OutputMeter_Impl::installLocationType() const { |
| 169 | boost::optional<InstallLocationType> result; |
| 170 | std::string myName = name(); |
| 171 | boost::smatch matches; |
| 172 | if (boost::regex_search(myName, matches, OutputMeter::meterRegex())) { |
| 173 | if (matches[4].matched) { |
| 174 | result = InstallLocationType(std::string(matches[4].first, matches[4].second)); |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | return result; |
| 179 | } |
| 180 | |
| 181 | boost::optional<std::string> OutputMeter_Impl::specificInstallLocation() const { |
| 182 | boost::optional<std::string> result; |