equal
deleted
inserted
replaced
252 reader.read(is, value); |
252 reader.read(is, value); |
253 typename Inverse::const_iterator it = inverse.find(value); |
253 typename Inverse::const_iterator it = inverse.find(value); |
254 if (it != inverse.end()) { |
254 if (it != inverse.end()) { |
255 return it->second; |
255 return it->second; |
256 } else { |
256 } else { |
257 throw DataFormatError("Invalid label error"); |
257 ErrorMessage msg; |
|
258 msg << "Invalid label error: " << value; |
|
259 throw DataFormatError(msg.message()); |
258 } |
260 } |
259 } |
261 } |
260 }; |
262 }; |
261 |
263 |
262 template <typename _Item, typename _Reader> |
264 template <typename _Item, typename _Reader> |
290 reader.read(is, value); |
292 reader.read(is, value); |
291 typename Inverse::const_iterator it = inverse.find(value); |
293 typename Inverse::const_iterator it = inverse.find(value); |
292 if (it != inverse.end()) { |
294 if (it != inverse.end()) { |
293 return it->second; |
295 return it->second; |
294 } else { |
296 } else { |
295 throw DataFormatError("Invalid label error"); |
297 ErrorMessage msg; |
|
298 msg << "Invalid label error: " << value; |
|
299 throw DataFormatError(msg.message()); |
296 } |
300 } |
297 } |
301 } |
298 |
302 |
299 private: |
303 private: |
300 Inverse inverse; |
304 Inverse inverse; |