Scope
|
#include <ScopeLogger_p.h>
Public Member Functions | |
Impl (const log_message_type &filem=log_all, const log_message_type &consolem=log_all, const log_message_type &logboxm=log_all) | |
void | SetFilepath (const std::wstring &_filepath=L"C:\\ScopeData") |
void | Log (const std::wstring &message, const log_message_type &msgtype) |
void | AttachLogFrame (gui::CLogFrame *const _logframe) |
HWND | GetLogFrameWindow () |
bool | HasLogFrame () const |
void | GetUserLoggings () |
void | DetachLogFrame () |
void | Shutdown () |
Protected Member Functions | |
Impl (const Impl &i) | |
Impl | operator= (const Impl &i) |
ControllerReturnStatus | WriteToConsole (StopCondition *const sc, const std::wstring message) |
ControllerReturnStatus | WriteToLogbox (StopCondition *const sc, const std::wstring message, const log_message_type msgtype) |
ControllerReturnStatus | FlushLogbox (StopCondition *const sc) |
Protected Attributes | |
Active< ControllerReturnStatus > | active |
std::wstring | file_path |
bool | filepath_set |
std::wofstream | userlogfile |
log_message_type | file_messages |
log_message_type | console_message |
log_message_type | logframe_message |
gui::CLogFrame * | logframe |
std::wstring | logbooktext |
std::list< std::wstring > | logbookentries |
Implementation class of the ScopeLogger.
Definition at line 12 of file ScopeLogger_p.h.
|
protected |
disable copy
|
inline |
Create logfiles.
Definition at line 96 of file ScopeLogger_p.h.
|
inlineprotected |
Writes message to debug console.
Definition at line 53 of file ScopeLogger_p.h.
|
inlineprotected |
Writes message to the logbook window.
Definition at line 59 of file ScopeLogger_p.h.
|
inlineprotected |
Updates the logbook window , writes complete logbook to disk, overwrites the old logbook on disk.
Since user can edit logbook everywhere, we always have to (over)write everything
Definition at line 82 of file ScopeLogger_p.h.
|
inline |
Sets the filepath and creates logfile.
Definition at line 114 of file ScopeLogger_p.h.
|
inline |
Logs a message.
Definition at line 130 of file ScopeLogger_p.h.
|
inline |
Attaches a CLogFrame as the logbook window.
Definition at line 142 of file ScopeLogger_p.h.
|
inline |
Saves log frame parameters into Window (for recreating windows on startup)
Definition at line 148 of file ScopeLogger_p.h.
|
inline |
Definition at line 153 of file ScopeLogger_p.h.
|
inline |
Gets the text in the logbook window and calls FlushLogbox.
Definition at line 158 of file ScopeLogger_p.h.
|
inline |
Detaches a CLogFrame.
Definition at line 165 of file ScopeLogger_p.h.
|
inline |
Shutdown the Active, called from Run in scope.cpp.
avoids a dangling async thread from the ScopeLogger (generates problems since ScopeLoggerImpl is static and destructor is called very late/at undefined timepoint).
Definition at line 173 of file ScopeLogger_p.h.
|
protected |
Active object for running the loggings.
Definition at line 16 of file ScopeLogger_p.h.
|
protected |
path string for log file
Definition at line 19 of file ScopeLogger_p.h.
|
protected |
true if file path set and files opened
Definition at line 22 of file ScopeLogger_p.h.
|
protected |
File with user comments and logging of performed scans etc.
Definition at line 25 of file ScopeLogger_p.h.
|
protected |
which message types to save to disk
Definition at line 28 of file ScopeLogger_p.h.
|
protected |
which message types to print out on debug console
Definition at line 31 of file ScopeLogger_p.h.
|
protected |
which message types to print in log frame
Definition at line 34 of file ScopeLogger_p.h.
|
protected |
pointer to the log window frame
Definition at line 37 of file ScopeLogger_p.h.
|
protected |
the complete log text as a string
Definition at line 40 of file ScopeLogger_p.h.
|
protected |
a vector of all log entries done by scope
Definition at line 43 of file ScopeLogger_p.h.