![]() |
vrpRouting
0.3
|
Messages Handling. More...
#include "pgr_messages.h"
Public Member Functions | |
Pgr_messages ()=default | |
Pgr_messages (const Pgr_messages &) | |
void | clear () |
Clears all the messages. More... | |
std::string | get_error () const |
gets the contents of error message More... | |
std::string | get_log () const |
gets the contents of log message More... | |
std::string | get_notice () const |
gets the contents of notice message More... | |
bool | has_error () const |
gets the contents of notice message More... | |
Pgr_messages & | operator= (const Pgr_messages &) |
Public Attributes | |
std::ostringstream | error |
Stores the error information. More... | |
std::ostringstream | log |
Stores the hint information. More... | |
std::ostringstream | notice |
Stores the notice information. More... | |
Messages Handling.
A common structure to be used on the C++ code that stores messages intended for PostgreSQL
Messages currently handled: log notice error
Definition at line 52 of file pgr_messages.h.
|
default |
|
inline |
Definition at line 55 of file pgr_messages.h.
void vrprouting::Pgr_messages::clear | ( | ) |
Clears all the messages.
Definition at line 59 of file pgr_messages.cpp.
References error, log, and notice.
Referenced by do_compatibleVehicles(), do_pgr_pickDeliver(), and do_pickDeliver().
std::string vrprouting::Pgr_messages::get_error | ( | ) | const |
gets the contents of error message
Definition at line 53 of file pgr_messages.cpp.
References error.
Referenced by vrprouting::problem::Fleet::add_vehicle(), do_compatibleVehicles(), do_pgr_pickDeliver(), do_pgr_pickDeliverEuclidean(), do_pickDeliver(), vrprouting::problem::Fleet::is_fleet_ok(), anonymous_namespace{optimize_driver.cpp}::one_processing(), and vrprouting::problem::PickDeliver::PickDeliver().
std::string vrprouting::Pgr_messages::get_log | ( | ) | const |
gets the contents of log message
Definition at line 36 of file pgr_messages.cpp.
References log.
Referenced by do_compatibleVehicles(), do_pgr_pickDeliver(), do_pgr_pickDeliverEuclidean(), do_pickDeliver(), vrprouting::problem::Fleet::get_unused_trucks(), vrprouting::problem::Fleet::invariant(), and anonymous_namespace{optimize_driver.cpp}::one_processing().
std::string vrprouting::Pgr_messages::get_notice | ( | ) | const |
gets the contents of notice message
Definition at line 42 of file pgr_messages.cpp.
References notice.
bool vrprouting::Pgr_messages::has_error | ( | ) | const |
gets the contents of notice message
Definition at line 48 of file pgr_messages.cpp.
References error.
|
inline |
Definition at line 56 of file pgr_messages.h.
|
mutable |
Stores the error information.
Definition at line 95 of file pgr_messages.h.
Referenced by vrprouting::problem::Fleet::add_vehicle(), clear(), get_error(), has_error(), vrprouting::problem::Fleet::is_fleet_ok(), and vrprouting::initialsol::tabu::Initial_solution::process_unassigned().
|
mutable |
Stores the hint information.
Definition at line 91 of file pgr_messages.h.
Referenced by vrprouting::problem::Fleet::add_vehicle(), clear(), get_log(), vrprouting::problem::Fleet::get_unused_trucks(), vrprouting::optimizers::simple::Optimize::inter_swap(), vrprouting::problem::Fleet::invariant(), vrprouting::problem::Fleet::is_fleet_ok(), vrprouting::initialsol::simple::Initial_solution::one_truck_all_orders(), vrprouting::optimizers::simple::Optimize::Optimize(), vrprouting::optimizers::tabu::Optimize::Optimize(), vrprouting::optimizers::simple::Optimize::save_if_best(), vrprouting::problem::Fleet::set_compatibles(), vrprouting::problem::Vehicle_pickDeliver::set_initial_solution(), and vrprouting::problem::Vehicle_pickDeliver::set_unmovable().
|
mutable |
Stores the notice information.
Definition at line 93 of file pgr_messages.h.
Referenced by clear(), and get_notice().