![]() |
alaCarte Maps
Renderer for OpenStreetMap tiles
|
#include <parser_logger.hpp>
Classes | |
| class | LogStream |
Public Types | |
| enum | Category { Error, Warning } |
Public Member Functions | |
| ParserLogger (const string &parsedFile) | |
| Creates a new parse logger. More... | |
| LogStream | warnStream () |
| Returns a warn stream. More... | |
| LogStream | errorStream () |
| Returns a error stream. More... | |
| void | warn (const string &str) |
| outputs an warn message More... | |
| void | error (const string &str) |
| outputs an error message More... | |
Private Member Functions | |
| void | logToStream (Category cat, const string &str) |
| prints a message to the log More... | |
Private Attributes | |
| std::ofstream | outputStream |
| string | filename |
Definition at line 31 of file parser_logger.hpp.
| Enumerator | |
|---|---|
| Error | |
| Warning | |
Definition at line 35 of file parser_logger.hpp.
| ParserLogger::ParserLogger | ( | const string & | parsedFile | ) |
Creates a new parse logger.
| parsed | File the name of the filename associated with this stream |
Definition at line 80 of file parser_logger.cpp.
| void ParserLogger::error | ( | const string & | str | ) |
outputs an error message
Definition at line 111 of file parser_logger.cpp.
| ParserLogger::LogStream ParserLogger::errorStream | ( | ) |
Returns a error stream.
Definition at line 102 of file parser_logger.cpp.
prints a message to the log
| cat | type of the message |
| str | string to be outputed |
Definition at line 132 of file parser_logger.cpp.
| void ParserLogger::warn | ( | const string & | str | ) |
outputs an warn message
Definition at line 120 of file parser_logger.cpp.
| ParserLogger::LogStream ParserLogger::warnStream | ( | ) |
|
private |
Definition at line 73 of file parser_logger.hpp.
|
private |
Definition at line 72 of file parser_logger.hpp.