[Positioning] Result: operator<< displays area

If the result point is in a known area, the area's name is displayed
(this changes the output of OutputTerminal).
This commit is contained in:
Matteo Cypriani 2011-07-29 00:06:40 +02:00
parent 8295666178
commit 089c8e3f8f
1 changed files with 2 additions and 1 deletions

View File

@ -99,7 +99,8 @@ std::ostream& operator<<(ostream &os, const Result &r)
{
os
<< "The result of the algorithm " << r.algorithm
<< " is: " << r.position ;
<< " is: " << r.position
<< " (area: « " << r.in_which_area() << " »)" ;
if (r.error >= 0)
os << ", error = " << r.error << " m" ;
return os ;