pgRouting
pgRouting extends the PostGIS / PostgreSQL geospatial database to provide geospatial routing functionality.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
msg_logger.hpp
Go to the documentation of this file.
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 <string>
32 #include <vector>
33 #include "./../../common/src/pgr_types.h"
34 
35 void
37  std::ostringstream &log,
38  const std::vector< Point_on_edge_t > &points,
39  const std::string &title) {
40  log << title << "\n";
41  for (const auto &p : points) {
42  log << p.pid << "\t"
43  << p.edge_id << "\t"
44  << p.fraction << "\t"
45  << p.side << "\n";
46  }
47 }
void PGR_LOG_POINTS(std::ostringstream &log, const std::vector< Point_on_edge_t > &points, const std::string &title)
Definition: msg_logger.hpp:36