#include <iostream>
Go to the source code of this file.
Namespaces | |
namespace | s11n |
namespace | s11n::debug |
Defines | |
#define | s11n_DEBUGGERING_MACROS_H 1 |
#define | CERR std::cerr << __FILE__ << ":" << std::dec << __LINE__ << " : " |
#define | COUT std::cout << __FILE__ << ":" << std::dec << __LINE__ << " : " |
#define | S11N_TRACE_PROFILE_QUIET (::s11n::debug::TRACE_NEVER) |
#define | S11N_TRACE_PROFILE_DEFAULT (::s11n::debug::TRACE_ERROR | ::s11n::debug::TRACE_WARNING ) |
#define | S11N_TRACE_PROFILE_MAINTAINER (S11N_TRACE_PROFILE_DEFAULT | ::s11n::debug::TRACE_FACTORY ) |
#define | S11N_TRACE_LEVELS (S11N_TRACE_PROFILE_DEFAULT) |
#define | S11N_TRACE(LVL) |
Enumerations | |
enum | TraceFlags { TRACE_NEVER = 0x00000000, TRACE_TRIVIAL = 0x00000001, TRACE_INFO = 0x00000002, TRACE_WARNING = 0x00000004, TRACE_ERROR = 0x00000008, TRACE_CTOR = 0x00000010, TRACE_DTOR = 0x00000020, TRACE_CLEANUP = 0x00000040, TRACE_FACTORY_REG = 0x00000100, TRACE_FACTORY_LOOKUP = 0x00000200, TRACE_FACTORY_PLUGINS = 0x00000400, TRACE_FACTORY = 0x00000F00, TRACE_IO = 0x00001000, TRACE_NYI = 0x00010000, TRACE_FIXME = 0x00020000, TRACE_SATAN = 0x00040000, TRACE_ALWAYS = 0xffffffff } |
For use with the S11N_TRACE macro. More... | |
Functions | |
unsigned long | trace_mask (unsigned long f) |
Sets the active trace mask and returns the previous mask. | |
unsigned long | trace_mask () |
Returns the current trace mask. | |
std::ostream & | trace_stream () |
Returns the ostream used for tracing messages. | |
void | trace_stream (std::ostream &) |
Sets the ostream used for tracing messages. |
|
|
Definition at line 11 of file s11n_debuggering_macros.hpp. |
|
Definition at line 2 of file s11n_debuggering_macros.hpp. |
|
Value: if((S11N_TRACE_LEVELS) && ((LVL) & ::s11n::debug::trace_mask())) \ ::s11n::debug::trace_stream() << "S11N_TRACE["<<# LVL<<"]: "<<__FILE__<<":"<<std::dec<<__LINE__<<":\n\t" Definition at line 36 of file s11n_debuggering_macros.hpp. Referenced by s11n::default_cleanup_functor< S11N_MAP_TYPE< T1, T2 > >::operator()(), s11n::default_cleanup_functor< std::pair< T1, T2 > >::operator()(), and s11n::cl::object_factory< InterfaceBase >::operator()(). |
|
Definition at line 32 of file s11n_debuggering_macros.hpp. |
|
Definition at line 22 of file s11n_debuggering_macros.hpp. |
|
Definition at line 23 of file s11n_debuggering_macros.hpp. |
|
Definition at line 21 of file s11n_debuggering_macros.hpp. |
|
For use with the S11N_TRACE macro.
Definition at line 67 of file s11n_debuggering_macros.hpp. |
|
Returns the current trace mask.
|
|
Sets the active trace mask and returns the previous mask.
|
|
Sets the ostream used for tracing messages.
|
|
Returns the ostream used for tracing messages. Default is std::cerr. |