00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00026 #ifndef HH_SENF_Utils_Logger_Log_
00027 #define HH_SENF_Utils_Logger_Log_ 1
00028
00029
00030 #include <boost/preprocessor/seq/size.hpp>
00031 #include <boost/preprocessor/dec.hpp>
00032 #include <boost/preprocessor/seq/elem.hpp>
00033 #include <boost/preprocessor/seq/pop_back.hpp>
00034 #include "Parameters.hh"
00035
00036
00037 #include "Log.ih"
00038
00039
00095
00096
00097
00099
00100
00112 #define SENF_LOG(args) \
00113 SENF_LOG_BLOCK_( SENF_LOG_MERGE_PARAMETERS(BOOST_PP_SEQ_POP_BACK(args)), \
00114 { log << BOOST_PP_SEQ_ELEM(BOOST_PP_DEC(BOOST_PP_SEQ_SIZE(args)),args); })
00115
00122 #define SENF_LOG_TPL(args) \
00123 SENF_LOG_BLOCK_TPL_( SENF_LOG_MERGE_PARAMETERS_TPL(BOOST_PP_SEQ_POP_BACK(args)), \
00124 { log << BOOST_PP_SEQ_ELEM(BOOST_PP_DEC(BOOST_PP_SEQ_SIZE(args)),args); })
00125
00139 #define SENF_LOG_BLOCK(args) \
00140 SENF_LOG_BLOCK_( SENF_LOG_MERGE_PARAMETERS(BOOST_PP_SEQ_POP_BACK(args)), \
00141 BOOST_PP_SEQ_ELEM(BOOST_PP_DEC(BOOST_PP_SEQ_SIZE(args)),args))
00142
00149 #define SENF_LOG_BLOCK_TPL(args) \
00150 SENF_LOG_BLOCK_TPL_( SENF_LOG_MERGE_PARAMETERS_TPL(BOOST_PP_SEQ_POP_BACK(args)), \
00151 BOOST_PP_SEQ_ELEM(BOOST_PP_DEC(BOOST_PP_SEQ_SIZE(args)),args))
00152
00153
00154
00155
00156
00157
00158
00159
00160 #endif
00161
00162
00163
00164
00165
00166
00167
00168
00169
00170
00171