Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

s11n_debuggering_macros.hpp File Reference

#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.


Define Documentation

#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< node_type >::close_node(), s11n::io::expat_serializer< NodeType >::expat_parse_stream(), s11n::io::load_node_classload_serializer(), s11n::io::load_serializable(), s11n::io::data_node_tree_builder< node_type >::open_node(), serializer_reg_context< SERIALIZER_TYPE >::reg(), serializer_reg_context< Context >::reg(), 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::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()().

#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.


Enumeration Type Documentation

enum s11n::debug::TraceFlags
 

For use with the S11N_TRACE macro.

Enumeration values:
TRACE_NEVER 
TRACE_TRIVIAL 
TRACE_INFO 
TRACE_WARNING 
TRACE_ERROR 
TRACE_CTOR 
TRACE_DTOR 
TRACE_CLEANUP 
TRACE_FACTORY_REG 
TRACE_FACTORY_LOOKUP 
TRACE_FACTORY_PLUGINS 
TRACE_FACTORY 
TRACE_IO 
TRACE_NYI 
TRACE_FIXME 
TRACE_SATAN 
TRACE_ALWAYS 

Definition at line 67 of file s11n_debuggering_macros.hpp.


Function Documentation

unsigned long trace_mask  ) 
 

Returns the current trace mask.

unsigned long trace_mask unsigned long  f  ) 
 

Sets the active trace mask and returns the previous mask.

void trace_stream std::ostream &   ) 
 

Sets the ostream used for tracing messages.

std::ostream& trace_stream  ) 
 

Returns the ostream used for tracing messages.

Default is std::cerr.


Generated on Thu Sep 29 20:01:15 2005 for libs11n-1.1.3-dev by  doxygen 1.4.1