SAGA C++ API 1.6
impl_base.hpp File Reference
#include <cstdlib>
#include <cstddef>
#include <saga/saga/export_definitions.hpp>
#include <saga/saga/detail.hpp>
#include <saga/saga/detail/module_needs_logging.hpp>
#include <boost/preprocessor/stringize.hpp>
#include <boost/logging/format/named_write.hpp>
#include <boost/logging/format_fwd.hpp>
#include <sstream>

Go to the source code of this file.

Namespaces

namespace  saga
 

The SAGA root namespace.


Defines

#define SAGA_CPIVERSION_1_0   0x0100
#define SAGA_CPIVERSION_MINORMASK   0x000F
#define SAGA_CPIVERSION_LATEST   SAGA_CPIVERSION_1_0
#define SAGA_LOG_USE_LOG_IF_LEVEL_AND_MDOULE(l, holder, the_level)
#define SAGA_LOG(lvl)
#define SAGA_VERBOSE(lvl)
#define SAGA_LOG_ALWAYS(msg)   SAGA_LOG(SAGA_VERBOSE_LEVEL_ALWAYS) << msg; \
#define SAGA_LOG_CRITICAL(msg)   SAGA_LOG(SAGA_VERBOSE_LEVEL_CRITICAL) << msg; \
#define SAGA_LOG_ERROR(msg)   SAGA_LOG(SAGA_VERBOSE_LEVEL_ERROR) << msg; \
#define SAGA_LOG_WARN(msg)   SAGA_LOG(SAGA_VERBOSE_LEVEL_WARNING) << msg; \
#define SAGA_LOG_INFO(msg)   SAGA_LOG(SAGA_VERBOSE_LEVEL_INFO) << msg; \
#define SAGA_LOG_DEBUG(msg)   SAGA_LOG(SAGA_VERBOSE_LEVEL_DEBUG) << msg; \
#define SAGA_LOG_BLURB(msg)   SAGA_LOG(SAGA_VERBOSE_LEVEL_BLURB) << msg; \
#define SAGA_VERBOSE_LEVEL_ALWAYS   enable_all
#define SAGA_VERBOSE_LEVEL_CRITICAL   fatal
#define SAGA_VERBOSE_LEVEL_ERROR   error
#define SAGA_VERBOSE_LEVEL_WARNING   warning
#define SAGA_VERBOSE_LEVEL_INFO   info
#define SAGA_VERBOSE_LEVEL_DEBUG   debug
#define SAGA_VERBOSE_LEVEL_BLURB   debug
#define SAGA_OSSTREAM_GETSTRING(ss)   ss.str()
#define SAGA_OSSTREAM   std::ostringstream
#define SAGA_ISSTREAM   std::istringstream

Define Documentation

#define SAGA_CPIVERSION_1_0   0x0100

Definition at line 25 of file impl_base.hpp.

#define SAGA_CPIVERSION_MINORMASK   0x000F

Definition at line 26 of file impl_base.hpp.

#define SAGA_CPIVERSION_LATEST   SAGA_CPIVERSION_1_0

Definition at line 27 of file impl_base.hpp.

#define SAGA_LOG_USE_LOG_IF_LEVEL_AND_MDOULE (   l,
  holder,
  the_level 
)
Value:
BOOST_LOG_USE_LOG(l, read_msg().gather().out(),                           \
        holder->is_enabled(::boost::logging::level::the_level) &&             \
        saga::detail::module_needs_logging(                                   \
            BOOST_PP_STRINGIZE(SAGA_MANGLED_MODULE_NAME)))                    \

Definition at line 163 of file impl_base.hpp.

#define SAGA_LOG (   lvl)
Value:
SAGA_LOG_USE_LOG_IF_LEVEL_AND_MDOULE(                   \
    saga::impl::logger(), saga::impl::logger_level(), lvl)                    \
        << BOOST_PP_STRINGIZE(SAGA_MODULE_NAME) << ": "                       \
        << saga::impl::levelname(::boost::logging::level::lvl) << ": "        \
        << saga::impl::logging_filename(__FILE__, __LINE__) << " "            \

Definition at line 171 of file impl_base.hpp.

#define SAGA_VERBOSE (   lvl)
Value:
if (saga::impl::logger_level()->is_enabled(::boost::logging::level::lvl)  \
     && saga::detail::module_needs_logging(                                   \
            BOOST_PP_STRINGIZE(SAGA_MANGLED_MODULE_NAME)))                    \

Definition at line 178 of file impl_base.hpp.

#define SAGA_LOG_ALWAYS (   msg)    SAGA_LOG(SAGA_VERBOSE_LEVEL_ALWAYS) << msg; \

Definition at line 185 of file impl_base.hpp.

#define SAGA_LOG_CRITICAL (   msg)    SAGA_LOG(SAGA_VERBOSE_LEVEL_CRITICAL) << msg; \

Definition at line 189 of file impl_base.hpp.

#define SAGA_LOG_ERROR (   msg)    SAGA_LOG(SAGA_VERBOSE_LEVEL_ERROR) << msg; \

Definition at line 193 of file impl_base.hpp.

#define SAGA_LOG_WARN (   msg)    SAGA_LOG(SAGA_VERBOSE_LEVEL_WARNING) << msg; \

Definition at line 197 of file impl_base.hpp.

#define SAGA_LOG_INFO (   msg)    SAGA_LOG(SAGA_VERBOSE_LEVEL_INFO) << msg; \

Definition at line 201 of file impl_base.hpp.

#define SAGA_LOG_DEBUG (   msg)    SAGA_LOG(SAGA_VERBOSE_LEVEL_DEBUG) << msg; \

Definition at line 205 of file impl_base.hpp.

#define SAGA_LOG_BLURB (   msg)    SAGA_LOG(SAGA_VERBOSE_LEVEL_BLURB) << msg; \

Definition at line 209 of file impl_base.hpp.

#define SAGA_VERBOSE_LEVEL_ALWAYS   enable_all

Definition at line 213 of file impl_base.hpp.

#define SAGA_VERBOSE_LEVEL_CRITICAL   fatal

Definition at line 214 of file impl_base.hpp.

#define SAGA_VERBOSE_LEVEL_ERROR   error

Definition at line 215 of file impl_base.hpp.

#define SAGA_VERBOSE_LEVEL_WARNING   warning

Definition at line 216 of file impl_base.hpp.

#define SAGA_VERBOSE_LEVEL_INFO   info

Definition at line 217 of file impl_base.hpp.

#define SAGA_VERBOSE_LEVEL_DEBUG   debug

Definition at line 218 of file impl_base.hpp.

#define SAGA_VERBOSE_LEVEL_BLURB   debug

Definition at line 219 of file impl_base.hpp.

#define SAGA_OSSTREAM_GETSTRING (   ss)    ss.str()

Definition at line 237 of file impl_base.hpp.

#define SAGA_OSSTREAM   std::ostringstream

Definition at line 238 of file impl_base.hpp.

#define SAGA_ISSTREAM   std::istringstream

Definition at line 239 of file impl_base.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines