pgRouting  2.2
pgRouting extends the PostGIS / PostgreSQL geospatial database to provide geospatial routing functionality.
 All Classes Functions Variables Pages
msg_logger.hpp
1 /*PGR-GNU*****************************************************************
2 File: msg_logger.hpp
3 
4 Copyright (c) 2015 pgRouting developers
5 Mail: project@pgrouting.org
6 
7 Function's developer:
8 Copyright (c) 2015 Celia Virginia Vergara Castillo
9 Mail:
10 
11 ------
12 
13 This program is free software; you can redistribute it and/or modify
14 it under the terms of the GNU General Public License as published by
15 the Free Software Foundation; either version 2 of the License, or
16 (at your option) any later version.
17 
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
22 
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software
25 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 
27 ********************************************************************PGR-GNU*/
28 
29 #pragma once
30 
31 #include "./../../common/src/pgr_types.h"
32 
33 void
34 PGR_LOG_POINTS(
35  std::ostringstream &log,
36  const std::vector< Point_on_edge_t > &points,
37  const std::string &title) {
38  log << title << "\n";
39  for (const auto &p : points) {
40  log << p.pid << "\t"
41  << p.edge_id << "\t"
42  << p.fraction << "\t"
43  << p.side << "\n";
44  }
45 }