SAGA Adaptor CPI v.1.0
impl_base.hpp File Reference
#include <cstdlib>
#include <cstddef>
#include <saga/saga/export_definitions.hpp>
#include <saga/saga/detail.hpp>
#include <boost/logging/format/named_write_fwd.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(lvl)
#define SAGA_VERBOSE(lvl)   if (saga::impl::logger_level()->is_enabled(::boost::logging::level::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 23 of file impl_base.hpp.

#define SAGA_CPIVERSION_MINORMASK   0x000F

Definition at line 24 of file impl_base.hpp.

#define SAGA_CPIVERSION_LATEST   SAGA_CPIVERSION_1_0

Definition at line 25 of file impl_base.hpp.

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

Definition at line 161 of file impl_base.hpp.

Referenced by saga::adaptors::v1_0::register_attribute_functions(), and saga::adaptors::v1_0::register_permissions_functions().

#define SAGA_VERBOSE (   lvl)    if (saga::impl::logger_level()->is_enabled(::boost::logging::level::lvl)) \

Definition at line 167 of file impl_base.hpp.

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

Definition at line 172 of file impl_base.hpp.

Referenced by saga::adaptors::utils::process::run_sync().

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

Definition at line 176 of file impl_base.hpp.

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

Definition at line 180 of file impl_base.hpp.

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

Definition at line 184 of file impl_base.hpp.

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

Definition at line 188 of file impl_base.hpp.

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

Definition at line 192 of file impl_base.hpp.

Referenced by saga::adaptors::utils::process::run_sync().

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

Definition at line 196 of file impl_base.hpp.

#define SAGA_VERBOSE_LEVEL_ALWAYS   enable_all

Definition at line 200 of file impl_base.hpp.

#define SAGA_VERBOSE_LEVEL_CRITICAL   fatal

Definition at line 201 of file impl_base.hpp.

#define SAGA_VERBOSE_LEVEL_ERROR   error

Definition at line 202 of file impl_base.hpp.

#define SAGA_VERBOSE_LEVEL_WARNING   warning

Definition at line 203 of file impl_base.hpp.

#define SAGA_VERBOSE_LEVEL_INFO   info

Definition at line 204 of file impl_base.hpp.

#define SAGA_VERBOSE_LEVEL_DEBUG   debug

Definition at line 205 of file impl_base.hpp.

#define SAGA_VERBOSE_LEVEL_BLURB   debug
#define SAGA_OSSTREAM_GETSTRING (   ss)    ss.str()

Definition at line 224 of file impl_base.hpp.

Referenced by saga::adaptors::serialize().

#define SAGA_OSSTREAM   std::ostringstream

Definition at line 225 of file impl_base.hpp.

Referenced by saga::adaptors::serialize().

#define SAGA_ISSTREAM   std::istringstream

Definition at line 226 of file impl_base.hpp.

Referenced by saga::adaptors::deserialize().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines