|
libcrn
3.9.5
A document image processing library
|
Class to print messages to a file. More...
#include <CRNFileMessenger.h>
Inheritance diagram for crn::FileMessenger:
Collaboration diagram for crn::FileMessenger:Public Member Functions | |
| FileMessenger (const Path &filePath) | |
| Constructor with filename. More... | |
| virtual | ~FileMessenger () override |
| Destructor. More... | |
| virtual void | PrintDebug (const String &msg) override |
| Prints a debug message. More... | |
| virtual void | PrintVerbose (const String &msg) override |
| Prints a message. More... | |
| virtual void | PrintWarning (const String &msg) override |
| Prints a warning message. More... | |
| virtual void | PrintError (const String &msg) override |
| Prints an error message. More... | |
Public Member Functions inherited from crn::Messenger | |
| Messenger ()=default | |
| Empty constructor. More... | |
| virtual | ~Messenger ()=default |
| Empty virtual destructor. More... | |
Protected Attributes | |
| std::ofstream | _log |
| Stream to write in. More... | |
| Path | _filePath |
| Path of the file to be written. More... | |
Additional Inherited Members | |
Public Attributes inherited from crn::Messenger | |
| String | DebugPrefix |
| String | VerbosePrefix |
| String | WarningPrefix |
| String | ErrorPrefix |
Class to print messages to a file.
Class to print messages to a file
Definition at line 38 of file CRNFileMessenger.h.
| FileMessenger::FileMessenger | ( | const Path & | filePath | ) |
Constructor with filename.
Constructor with file name
| ExceptionIO | cannot open file |
| [in] | filePath | path to the file |
Definition at line 34 of file CRNFileMessenger.cpp.
|
overridevirtual |
|
overridevirtual |
Prints a debug message.
Prints a debug message
Implements crn::Messenger.
Definition at line 58 of file CRNFileMessenger.cpp.
|
overridevirtual |
Prints an error message.
Prints an error message
Implements crn::Messenger.
Definition at line 82 of file CRNFileMessenger.cpp.
|
overridevirtual |
Prints a message.
Prints a message
Implements crn::Messenger.
Definition at line 66 of file CRNFileMessenger.cpp.
|
overridevirtual |
Prints a warning message.
Prints a warning message
Implements crn::Messenger.
Definition at line 74 of file CRNFileMessenger.cpp.
|
protected |
Path of the file to be written.
Definition at line 58 of file CRNFileMessenger.h.
|
protected |
Stream to write in.
Definition at line 56 of file CRNFileMessenger.h.
1.8.6