Commit 479848a3 authored by saubatn's avatar saubatn
Browse files

FIXED Provides camitk:: namespace for Log in preprocessor macro. Avoid...

FIXED Provides camitk:: namespace for Log in preprocessor macro. Avoid requiring the using namespace camitk when including Log.h.

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@1556 ec899d31-69d1-42ba-9299-647d76f65fb3
parent b04c7710
......@@ -101,18 +101,18 @@ namespace camitk
/// log macro
#define Log(TYPE, CLASSNAME, METHODNAME, MSG) \
{ \
(*Log::getLogStream()) << (TYPE); \
if (Log::getShowUser()) { \
(*Log::getLogStream()) << " " << Log::getUserInformation(); \
(*camitk::Log::getLogStream()) << (TYPE); \
if (camitk::Log::getShowUser()) { \
(*camitk::Log::getLogStream()) << " " << camitk::Log::getUserInformation(); \
} \
if (Log::getShowTime()) { \
(*Log::getLogStream()) << " " << QDateTime::currentDateTime().toString(Qt::ISODate).toStdString(); \
if (camitk::Log::getShowTime()) { \
(*camitk::Log::getLogStream()) << " " << QDateTime::currentDateTime().toString(Qt::ISODate).toStdString(); \
} \
(*Log::getLogStream()) << " | " << (CLASSNAME) << "::" << (METHODNAME) << std::endl; \
(*Log::getLogStream()) << MSG << std::endl; \
(*Log::getLogStream()) << "-----------------------------" << std::endl; \
Log::getLogStream()->flush(); \
} \
(*camitk::Log::getLogStream()) << " | " << (CLASSNAME) << "::" << (METHODNAME) << std::endl; \
(*camitk::Log::getLogStream()) << MSG << std::endl; \
(*camitk::Log::getLogStream()) << "-----------------------------" << std::endl; \
camitk::Log::getLogStream()->flush(); \
} \
/**
* @ingroup group_sdk_libraries_core_utils
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment