PGROUTING
3.2
pgr_messages.cpp
Go to the documentation of this file.
1
/*PGR-GNU*****************************************************************
2
3
FILE: pgr_pickDeliver.h
4
5
Copyright (c) 2015 pgRouting developers
6
Mail:
[email protected]
7
8
------
9
10
This program is free software; you can redistribute it and/or modify
11
it under the terms of the GNU General Public License as published by
12
the Free Software Foundation; either version 2 of the License, or
13
(at your option) any later version.
14
15
This program is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
GNU General Public License for more details.
19
20
You should have received a copy of the GNU General Public License
21
along with this program; if not, write to the Free Software
22
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23
24
********************************************************************PGR-GNU*/
25
26
27
#include <string>
28
#include <sstream>
29
#include "
cpp_common/pgr_messages.h
"
30
31
namespace
pgrouting
{
32
33
34
35
std::string
36
Pgr_messages::get_log
()
const
{
37
auto
str =
log
.str();
38
return
str;
39
}
40
41
std::string
42
Pgr_messages::get_notice
()
const
{
43
auto
str =
notice
.str();
44
return
str;
45
}
46
47
bool
48
Pgr_messages::has_error
()
const
{
49
return
!
error
.str().empty();
50
}
51
52
std::string
53
Pgr_messages::get_error
()
const
{
54
auto
str =
error
.str();
55
return
str;
56
}
57
58
void
59
Pgr_messages::clear
() {
60
log
.str(
""
);
61
log
.clear();
62
63
notice
.str(
""
);
64
notice
.clear();
65
66
error
.str(
""
);
67
error
.clear();
68
}
69
70
71
}
// namespace pgrouting
pgr_messages.h
pgrouting::Pgr_messages::error
std::ostringstream error
Stores the error information.
Definition:
pgr_messages.h:85
pgrouting::Pgr_messages::log
std::ostringstream log
Stores the hint information.
Definition:
pgr_messages.h:81
pgrouting::Pgr_messages::get_error
std::string get_error() const
get_error
Definition:
pgr_messages.cpp:53
pgrouting::Pgr_messages::get_notice
std::string get_notice() const
get_notice
Definition:
pgr_messages.cpp:42
pgrouting::Pgr_messages::get_log
std::string get_log() const
get_log
Definition:
pgr_messages.cpp:36
pgrouting::Pgr_messages::clear
void clear()
clear
Definition:
pgr_messages.cpp:59
pgrouting::Pgr_messages::has_error
bool has_error() const
get_error
Definition:
pgr_messages.cpp:48
pgrouting::Pgr_messages::notice
std::ostringstream notice
Stores the notice information.
Definition:
pgr_messages.h:83
pgrouting
Book keeping class for swapping orders between vehicles.
Definition:
pgr_alphaShape.cpp:56
src
cpp_common
pgr_messages.cpp
Generated on Tue May 25 2021 15:09:48 for PGROUTING by
1.8.17