#include <xst_traced_action_base.h>
Protected Member Functions | |
template<typename ResultT > | |
void | trace_epilog (ResultT const &result_) const |
Displays epilog section of the trace. | |
template<typename ArgumentT > | |
void | trace_prolog (ArgumentT const &arg_) const |
Displays prolog section of trace for action with one argument. | |
void | trace_prolog () const |
Displays prolog section of trace for action with no arguments. | |
xst_traced_action_base (int line_, char const *action_name_) | |
Constructs and initializes the object. |
Definition at line 47 of file xst_traced_action_base.h.
cttl_impl::xst_traced_action_base::xst_traced_action_base | ( | int | line_, | |
char const * | action_name_ | |||
) | [protected] |
void cttl_impl::xst_traced_action_base::trace_epilog | ( | ResultT const & | result_ | ) | const [protected] |
Displays epilog section of the trace.
Definition at line 97 of file xst_traced_action_base.h.
00098 { 00099 xtl_trace_grammar::depth( -1 ); 00100 CTTL_UNILOG_FLUSH; 00101 CTTL_TRACE_DEPOSIT_JUSTIFY(); 00102 CTTL_TRACE_DEPOSIT_TEXT( m_line ); 00103 CTTL_TRACE_DEPOSIT_TEXT( "<=" ); 00104 CTTL_TRACE_DEPOSIT_TEXT( m_action_name ); 00105 CTTL_TRACE_DEPOSIT_TEXT( ':' ); 00106 CTTL_TRACE_DEPOSIT_TEXT( xst_non_scalar_traits< ResultT >::identity( result_ ) ); 00107 CTTL_UNILOG_FLUSH; 00108 CTTL_TRACE_DEPOSIT_JUSTIFY(); 00109 }
void cttl_impl::xst_traced_action_base::trace_prolog | ( | ArgumentT const & | arg_ | ) | const [protected] |
Displays prolog section of trace for action with one argument.
Definition at line 80 of file xst_traced_action_base.h.
00081 { 00082 CTTL_UNILOG_FLUSH; 00083 CTTL_TRACE_DEPOSIT_JUSTIFY(); 00084 CTTL_TRACE_DEPOSIT_TEXT( m_line ); 00085 CTTL_TRACE_DEPOSIT_TEXT( "=>" ); 00086 CTTL_TRACE_DEPOSIT_TEXT( m_action_name ); 00087 CTTL_TRACE_DEPOSIT_TEXT( '\'' ); 00088 CTTL_TRACE_DEPOSIT_TEXT( xst_scalar_traits< ArgumentT >::identity( arg_ ) ); 00089 CTTL_TRACE_DEPOSIT_TEXT( '\'' ); 00090 CTTL_UNILOG_FLUSH; 00091 xtl_trace_grammar::depth( +1 ); 00092 CTTL_TRACE_DEPOSIT_JUSTIFY(); 00093 }
void cttl_impl::xst_traced_action_base::trace_prolog | ( | ) | const [protected] |
Displays prolog section of trace for action with no arguments.
Definition at line 66 of file xst_traced_action_base.h.
00067 { 00068 CTTL_UNILOG_FLUSH; 00069 CTTL_TRACE_DEPOSIT_JUSTIFY(); 00070 CTTL_TRACE_DEPOSIT_TEXT( m_line ); 00071 CTTL_TRACE_DEPOSIT_TEXT( "=>" ); 00072 CTTL_TRACE_DEPOSIT_TEXT( m_action_name ); 00073 CTTL_UNILOG_FLUSH; 00074 xtl_trace_grammar::depth( +1 ); 00075 CTTL_TRACE_DEPOSIT_JUSTIFY(); 00076 }