#ifndef CGAL_DSR_PDB_ERROR_LOGGER_H #define CGAL_DSR_PDB_ERROR_LOGGER_H #include #include #include #include CGAL_PDB_BEGIN_INTERNAL_NAMESPACE class Error_logger { public: Error_logger():enabled_(true){} ~Error_logger(){dump();} bool is_output() const {return enabled_;} void set_is_output(bool tf) { enabled_=tf;} void set_context(const char *c) { context_=c; } void new_warning(const char *c); void new_fatal_error(const char *c); void new_internal_error(const char *c); void dump(); std::map warnings_; bool enabled_; std::string context_; }; extern Error_logger error_logger; CGAL_PDB_END_INTERNAL_NAMESPACE #endif