NCBI C++ ToolKit
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CTracingHandler Class Reference

Search Toolkit Book for CTracingHandler

CTracingHandler. More...

#include "events_tools.hpp"
(Private to src/gui/utils/unit_test.)

+ Inheritance diagram for CTracingHandler:
+ Collaboration diagram for CTracingHandler:

Public Types

typedef CTraceEvent::TTrace TTrace
 

Public Member Functions

 CTracingHandler (int id=-1)
 CTracingHandler. More...
 
 CTracingHandler (int id, TTrace &trace)
 
void ClearTrace ()
 
const TTraceGetTrace ()
 
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
 
TTracem_Trace
 

Detailed Description

CTracingHandler.

Definition at line 84 of file events_tools.hpp.

Member Typedef Documentation

◆ TTrace

Definition at line 87 of file events_tools.hpp.

Constructor & Destructor Documentation

◆ CTracingHandler() [1/2]

CTracingHandler::CTracingHandler ( int  id = -1)

CTracingHandler.

Definition at line 76 of file events_tools.cpp.

◆ CTracingHandler() [2/2]

CTracingHandler::CTracingHandler ( int  id,
TTrace trace 
)

Definition at line 83 of file events_tools.cpp.

Member Function Documentation

◆ ClearTrace()

void CTracingHandler::ClearTrace ( )

Definition at line 107 of file events_tools.cpp.

◆ DECLARE_EVENT_MAP()

CTracingHandler::DECLARE_EVENT_MAP ( )
protected

◆ GetTrace()

const CTracingHandler::TTrace * CTracingHandler::GetTrace ( void  )

Definition at line 113 of file events_tools.cpp.

References m_Trace.

◆ OnCommand_1()

void CTracingHandler::OnCommand_1 ( )

Definition at line 143 of file events_tools.cpp.

References x_AddTrace(), and x_GetMethodTrace().

Referenced by TestEventMap().

◆ OnCommand_2()

void CTracingHandler::OnCommand_2 ( )

Definition at line 149 of file events_tools.cpp.

References x_AddTrace(), and x_GetMethodTrace().

Referenced by TestEventMap().

◆ OnCommand_Range()

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().

◆ OnEvent_A()

void CTracingHandler::OnEvent_A ( CEvent evt)

Definition at line 119 of file events_tools.cpp.

References x_AddTrace().

Referenced by TestEntryPoints(), and TestEventMap().

◆ OnEvent_B()

void CTracingHandler::OnEvent_B ( CEvent evt)

Definition at line 125 of file events_tools.cpp.

References x_AddTrace().

Referenced by TestEventMap().

◆ OnMessage_A()

void CTracingHandler::OnMessage_A ( CEvent evt)

Definition at line 131 of file events_tools.cpp.

References x_AddTrace().

Referenced by TestEventMap().

◆ OnMessage_B()

void CTracingHandler::OnMessage_B ( CEvent evt)

Definition at line 137 of file events_tools.cpp.

References x_AddTrace().

Referenced by TestEventMap().

◆ OnUpdateCommand_1()

void CTracingHandler::OnUpdateCommand_1 ( ICmdUI *  pCmdUI)

Definition at line 163 of file events_tools.cpp.

References x_AddTrace(), and x_GetMethodTrace().

◆ OnUpdateCommand_2()

void CTracingHandler::OnUpdateCommand_2 ( ICmdUI *  pCmdUI)

Definition at line 170 of file events_tools.cpp.

References x_AddTrace(), and x_GetMethodTrace().

◆ OnUpdateCommand_Range()

void CTracingHandler::OnUpdateCommand_Range ( ICmdUI *  pCmdUI)

Definition at line 177 of file events_tools.cpp.

References NStr::IntToString(), x_AddTrace(), and x_GetMethodTrace().

◆ x_AddTrace() [1/2]

void CTracingHandler::x_AddTrace ( CEvent evt,
const string method 
)
protected

◆ x_AddTrace() [2/2]

void CTracingHandler::x_AddTrace ( const string trace)
protected

Definition at line 205 of file events_tools.cpp.

References _ASSERT, kTraceSeparator, and m_Trace.

◆ x_GetMethodTrace()

string CTracingHandler::x_GetMethodTrace ( const string method) const
protected

Member Data Documentation

◆ m_ID

int CTracingHandler::m_ID
protected

Definition at line 119 of file events_tools.hpp.

Referenced by x_GetMethodTrace().

◆ m_Trace

TTrace* CTracingHandler::m_Trace
protected

The documentation for this class was generated from the following files:
Modified on Wed Jun 19 17:05:58 2024 by modify_doxy.py rev. 669887