Osmium
0.1
|
#include <geometry.hpp>
Public Member Functions | |
LonLatListWriter (std::ostream &out, char delim_lonlat=' ', char delim_items=',') | |
void | operator() (const TLonLat &lonlat) |
Private Attributes | |
std::ostream & | m_out |
char | m_delim_lonlat |
char | m_delim_items |
bool | m_first |
This helper class is used for writing out lists of coordinates to an output stream. It is intended to be used as a functor argument in a for_each() call iterating over something that holds a list of TLonLat objects.
TLonLat | A class that has the methods 'double lon();' and 'double lat();' |
Osmium::Geometry::LonLatListWriter< TLonLat >::LonLatListWriter | ( | std::ostream & | out, |
char | delim_lonlat = ' ' , |
||
char | delim_items = ',' |
||
) | [inline] |
out | The output stream |
delim_lonlat | The delimiter between longitude and latitude |
delim_items | The delimiter between consecutive coordinates |
void Osmium::Geometry::LonLatListWriter< TLonLat >::operator() | ( | const TLonLat & | lonlat | ) | [inline] |
char Osmium::Geometry::LonLatListWriter< TLonLat >::m_delim_items [private] |
char Osmium::Geometry::LonLatListWriter< TLonLat >::m_delim_lonlat [private] |
bool Osmium::Geometry::LonLatListWriter< TLonLat >::m_first [private] |
std::ostream& Osmium::Geometry::LonLatListWriter< TLonLat >::m_out [private] |