Skip to content
Snippets Groups Projects
Commit 3f021bec authored by Tom Fischer's avatar Tom Fischer
Browse files

Using logog logging within class PointVec.

parent fa3fc495
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,9 @@ ...@@ -10,6 +10,9 @@
* Created on 2010-06-11 by Thomas Fischer * Created on 2010-06-11 by Thomas Fischer
*/ */
// ThirdParty/logog
#include "logog/include/logog.hpp"
// GeoLib // GeoLib
#include "BruteForceClosestPair.h" #include "BruteForceClosestPair.h"
#include "PointVec.h" #include "PointVec.h"
...@@ -35,8 +38,7 @@ PointVec::PointVec (const std::string& name, std::vector<Point*>* points, ...@@ -35,8 +38,7 @@ PointVec::PointVec (const std::string& name, std::vector<Point*>* points,
makePntsUnique (_data_vec, _pnt_id_map, rel_eps); makePntsUnique (_data_vec, _pnt_id_map, rel_eps);
if (number_of_all_input_pnts - _data_vec->size() > 0) if (number_of_all_input_pnts - _data_vec->size() > 0)
std::cerr << "WARNING: there are " << number_of_all_input_pnts - WARN("PointVec::PointVec(): there are %d double points.", number_of_all_input_pnts - _data_vec->size());
_data_vec->size() << " double points" << std::endl;
} }
PointVec::~PointVec () PointVec::~PointVec ()
...@@ -57,7 +59,7 @@ void PointVec::push_back (Point* pnt, std::string const*const name) ...@@ -57,7 +59,7 @@ void PointVec::push_back (Point* pnt, std::string const*const name)
std::map<std::string,size_t>::const_iterator it (_name_id_map->find (*name)); std::map<std::string,size_t>::const_iterator it (_name_id_map->find (*name));
if (it != _name_id_map->end()) { if (it != _name_id_map->end()) {
std::cerr << "ERROR: PointVec::push_back (): two points with the same name" << std::endl; WARN("PointVec::push_back(): two points share the name %s.", name->c_str());
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment