NCBI C++ ToolKit
|
Search Toolkit Book for CTracingHandler
#include "events_tools.hpp"
(Private to src/gui/utils/unit_test
.)
Public Types | |
typedef CTraceEvent::TTrace | TTrace |
Public Member Functions | |
CTracingHandler (int id=-1) | |
CTracingHandler. More... | |
CTracingHandler (int id, TTrace &trace) | |
void | ClearTrace () |
const TTrace * | GetTrace () |
void | OnEvent_A (CEvent *evt) |
void | OnEvent_B (CEvent *evt) |
void | OnMessage_A (CEvent *evt) |
void | OnMessage_B (CEvent *evt) |
void | OnCommand_1 () |
void | OnCommand_2 () |
void | OnCommand_Range (TCmdID cmd) |
void | OnUpdateCommand_1 (ICmdUI *pCmdUI) |
void | OnUpdateCommand_2 (ICmdUI *pCmdUI) |
void | OnUpdateCommand_Range (ICmdUI *pCmdUI) |
Protected Member Functions | |
DECLARE_EVENT_MAP () | |
string | x_GetMethodTrace (const string &method) const |
void | x_AddTrace (CEvent *evt, const string &method) |
void | x_AddTrace (const string &trace) |
Protected Attributes | |
int | m_ID |
TTrace * | m_Trace |
Definition at line 84 of file events_tools.hpp.
Definition at line 87 of file events_tools.hpp.
CTracingHandler::CTracingHandler | ( | int | id = -1 | ) |
Definition at line 76 of file events_tools.cpp.
Definition at line 83 of file events_tools.cpp.
void CTracingHandler::ClearTrace | ( | ) |
Definition at line 107 of file events_tools.cpp.
|
protected |
const CTracingHandler::TTrace * CTracingHandler::GetTrace | ( | void | ) |
Definition at line 113 of file events_tools.cpp.
References m_Trace.
void CTracingHandler::OnCommand_1 | ( | ) |
Definition at line 143 of file events_tools.cpp.
References x_AddTrace(), and x_GetMethodTrace().
Referenced by TestEventMap().
void CTracingHandler::OnCommand_2 | ( | ) |
Definition at line 149 of file events_tools.cpp.
References x_AddTrace(), and x_GetMethodTrace().
Referenced by TestEventMap().
void CTracingHandler::OnCommand_Range | ( | TCmdID | cmd | ) |
Definition at line 155 of file events_tools.cpp.
References cmd, NStr::IntToString(), x_AddTrace(), and x_GetMethodTrace().
Referenced by TestEventMap().
void CTracingHandler::OnEvent_A | ( | CEvent * | evt | ) |
Definition at line 119 of file events_tools.cpp.
References x_AddTrace().
Referenced by TestEntryPoints(), and TestEventMap().
void CTracingHandler::OnEvent_B | ( | CEvent * | evt | ) |
Definition at line 125 of file events_tools.cpp.
References x_AddTrace().
Referenced by TestEventMap().
void CTracingHandler::OnMessage_A | ( | CEvent * | evt | ) |
Definition at line 131 of file events_tools.cpp.
References x_AddTrace().
Referenced by TestEventMap().
void CTracingHandler::OnMessage_B | ( | CEvent * | evt | ) |
Definition at line 137 of file events_tools.cpp.
References x_AddTrace().
Referenced by TestEventMap().
void CTracingHandler::OnUpdateCommand_1 | ( | ICmdUI * | pCmdUI | ) |
Definition at line 163 of file events_tools.cpp.
References x_AddTrace(), and x_GetMethodTrace().
void CTracingHandler::OnUpdateCommand_2 | ( | ICmdUI * | pCmdUI | ) |
Definition at line 170 of file events_tools.cpp.
References x_AddTrace(), and x_GetMethodTrace().
void CTracingHandler::OnUpdateCommand_Range | ( | ICmdUI * | pCmdUI | ) |
Definition at line 177 of file events_tools.cpp.
References NStr::IntToString(), x_AddTrace(), and x_GetMethodTrace().
Definition at line 196 of file events_tools.cpp.
References _ASSERT, CTraceEvent::AddTrace(), and x_GetMethodTrace().
Referenced by OnCommand_1(), OnCommand_2(), OnCommand_Range(), OnEvent_A(), OnEvent_B(), CTracingHandler_2::OnEvent_C_Derived(), OnMessage_A(), OnMessage_B(), OnUpdateCommand_1(), OnUpdateCommand_2(), and OnUpdateCommand_Range().
Definition at line 205 of file events_tools.cpp.
References _ASSERT, kTraceSeparator, and m_Trace.
Definition at line 187 of file events_tools.cpp.
References NStr::IntToString(), and m_ID.
Referenced by OnCommand_1(), OnCommand_2(), OnCommand_Range(), CTestCommandHandler::OnUpdateCheck(), OnUpdateCommand_1(), OnUpdateCommand_2(), OnUpdateCommand_Range(), CTestCommandHandler::OnUpdateDisable(), and x_AddTrace().
|
protected |
Definition at line 119 of file events_tools.hpp.
Referenced by x_GetMethodTrace().
|
protected |
Definition at line 120 of file events_tools.hpp.
Referenced by GetTrace(), CTestCommandHandler::OnUpdateCheck(), CTestCommandHandler::OnUpdateDisable(), and x_AddTrace().