#include <iostream>
Go to the source code of this file.
Namespaces | |
namespace | s11n |
namespace | s11n::debug |
Classes | |
struct | s11n::debug::trace_mask_changer |
A helper type to temporarily change the debug mask, then revert it at destruction. More... | |
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 | s11n::debug::TraceFlags { s11n::debug::TRACE_NEVER = 0x00000000, s11n::debug::TRACE_TRIVIAL = 0x00000001, s11n::debug::TRACE_INFO = 0x00000002, s11n::debug::TRACE_WARNING = 0x00000004, s11n::debug::TRACE_ERROR = 0x00000008, s11n::debug::TRACE_CTOR = 0x00000010, s11n::debug::TRACE_DTOR = 0x00000020, s11n::debug::TRACE_CLEANUP = 0x00000040, s11n::debug::TRACE_FACTORY_REG = 0x00000100, s11n::debug::TRACE_FACTORY_LOOKUP = 0x00000200, s11n::debug::TRACE_FACTORY_PLUGINS = 0x00000400, s11n::debug::TRACE_FACTORY = 0x00000F00, s11n::debug::TRACE_IO = 0x00001000, s11n::debug::TRACE_NYI = 0x00010000, s11n::debug::TRACE_FIXME = 0x00020000, s11n::debug::TRACE_SATAN = 0x00040000, s11n::debug::TRACE_ALWAYS = 0xffffffff } |
For use with the S11N_TRACE macro. More... | |
Functions | |
unsigned long | s11n::debug::trace_mask (unsigned long f) |
Sets the active trace mask and returns the previous mask. | |
unsigned long | s11n::debug::trace_mask () |
Returns the current trace mask. | |
std::ostream & | s11n::debug::trace_stream () |
Returns the ostream used for tracing messages. | |
void | s11n::debug::trace_stream (std::ostream &) |
Sets the ostream used for tracing messages. |
#define CERR std::cerr << __FILE__ << ":" << std::dec << __LINE__ << " : " |
Definition at line 7 of file s11n_debuggering_macros.hpp.
Referenced by s11n::io::data_node_tree_builder< NodeType >::close_node(), s11n::io::expat_serializer< NodeType >::expat_parse_stream(), s11n::io::load_serializable(), s11n::io::data_node_tree_builder< NodeType >::open_node(), and s11nlite::simple_config::~simple_config().
#define COUT std::cout << __FILE__ << ":" << std::dec << __LINE__ << " : " |
Definition at line 11 of file s11n_debuggering_macros.hpp.
#define s11n_DEBUGGERING_MACROS_H 1 |
Definition at line 2 of file s11n_debuggering_macros.hpp.
#define S11N_TRACE | ( | LVL | ) |
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::io::data_node_serializer< NodeType >::data_node_serializer(), s11n::default_cleanup_functor< S11N_MAP_TYPE< T1, T2 > >::operator()(), s11n::default_cleanup_functor< std::pair< T1, T2 > >::operator()(), and s11n::io::data_node_serializer< NodeType >::~data_node_serializer().
#define S11N_TRACE_LEVELS (S11N_TRACE_PROFILE_DEFAULT) |
Definition at line 32 of file s11n_debuggering_macros.hpp.
#define S11N_TRACE_PROFILE_DEFAULT (::s11n::debug::TRACE_ERROR | ::s11n::debug::TRACE_WARNING ) |
Definition at line 22 of file s11n_debuggering_macros.hpp.
#define S11N_TRACE_PROFILE_MAINTAINER (S11N_TRACE_PROFILE_DEFAULT | ::s11n::debug::TRACE_FACTORY ) |
Definition at line 23 of file s11n_debuggering_macros.hpp.
#define S11N_TRACE_PROFILE_QUIET (::s11n::debug::TRACE_NEVER) |
Definition at line 21 of file s11n_debuggering_macros.hpp.