Twain_DSM
1.0
|
Our logging class. More...
#include <dsm.h>
Public Member Functions | |
CTwnDsmLog () | |
The CTwnDsmLog constructor. More... | |
~CTwnDsmLog () | |
The CTwnDsmLog destructor. More... | |
void | Log (const int _doassert, const char *const _file, const int _line, const char *const _format,...) |
The logging function. More... | |
void | Indent (int nChange) |
Indent the logging to help with seeing recursive calls param[in] nChange Either +1 or -1. | |
Private Attributes | |
CTwnDsmLogImpl * | m_ptwndsmlogimpl |
The implementation pointer helps with encapulation. | |
Our logging class.
We use the impl to encapsulate the private portions of the class, which doesn't matter for this class so much as it does for the next one. Then we give ourselves an extern, because life is easier if we treat this object as globally accessible (think of it like a service).