s11n_debuggering_macros.hpp File Reference

#include <iostream>
#include <s11n.net/s11n/export.hpp>

Go to the source code of this file.

Classes

struct  s11n::debug::trace_mask_changer
 A helper type to temporarily change the debug mask, then revert it at destruction. More...

Namespaces

namespace  s11n
 

The s11n serialization (s11n) framework is an object serialization framework for C++ modelled heavily off work by Rusty Ballinger (bozo@users.sourceforge.net http://libfunutil.sourceforge.net).


namespace  s11n::debug
 

The s11n::debug namespace holds some code for debugging and tracing s11n internals.


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_REG )
#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.
S11N_EXPORT_API unsigned long s11n::debug::trace_mask ()
 Returns the current trace mask.
S11N_EXPORT_API 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 Documentation

#define CERR   std::cerr << __FILE__ << ":" << std::dec << __LINE__ << " : "
#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   ) 
#define S11N_TRACE_LEVELS   (S11N_TRACE_PROFILE_DEFAULT)

Definition at line 36 of file s11n_debuggering_macros.hpp.

#define S11N_TRACE_PROFILE_DEFAULT   (::s11n::debug::TRACE_ERROR | ::s11n::debug::TRACE_WARNING )

Definition at line 26 of file s11n_debuggering_macros.hpp.

#define S11N_TRACE_PROFILE_MAINTAINER   (S11N_TRACE_PROFILE_DEFAULT | ::s11n::debug::TRACE_FACTORY_REG )

Definition at line 27 of file s11n_debuggering_macros.hpp.

#define S11N_TRACE_PROFILE_QUIET   (::s11n::debug::TRACE_NEVER)

Definition at line 25 of file s11n_debuggering_macros.hpp.


Generated on Sat Mar 20 12:29:24 2010 for libs11n-1.2.10 by  doxygen 1.6.1