IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Macros
ToolTipSrcMacros.h File Reference

Source part of macros set for ToolTip class declaration. More...

#include <boost/thread/lock_guard.hpp>
#include <IPSDKUtil/Logger/LogMessageFormater.h>
#include <IPSDKUtil/Tools/BaseMacros.h>
#include <IPSDKUtil/Tools/MutexMacros.h>

Go to the source code of this file.

Macros

#define IPSDK_IMPLEMENT_TOOLTIP(libraryName, className, eMsgEnum)
 macro allowing to implement ToolTip components for a concrete class More...
 

Detailed Description

Source part of macros set for ToolTip class declaration.

Author
E. Noirfalise
Date
2014/03/13

Macro Definition Documentation

◆ IPSDK_IMPLEMENT_TOOLTIP

#define IPSDK_IMPLEMENT_TOOLTIP (   libraryName,
  className,
  eMsgEnum 
)
Value:
const std::string& className::getObjectName() const \
{ \
return getObjectNameStr(); \
} \
const std::string& className::getToolTip() const \
{ \
return getToolTipStr(); \
} \
const std::string& className::getObjectNameStr() \
{ \
boost::lock_guard<boost::mutex> lock(ToolTipMutex::get()); \
static std::string g_objectNameStr; \
if (g_objectNameStr.empty() == true) \
g_objectNameStr = BOOST_PP_STRINGIZE(className); \
return g_objectNameStr; \
} \
const std::string& className::getToolTipStr() \
{ \
boost::lock_guard<boost::mutex> lock(ToolTipMutex::get()); \
static std::string g_toolTipStr; \
if (g_toolTipStr.empty() == true) { \
ipsdk::LogMessageFormater logMsgFormater(IPSDK_LIB_LOG_MSG_MANAGER(libraryName)); \
logMsgFormater[eMsgEnum::BOOST_PP_CAT(e, BOOST_PP_CAT(className, ToolTipId))]; \
g_toolTipStr = logMsgFormater.string(); \
} \
return g_toolTipStr; \
}
#define IPSDK_LIB_LOG_MSG_MANAGER(libraryName)
macro allowing to retrieve a library log message manager getter function given its base name ...
Definition: BaseMacros.h:61
static bool process()
method allowing to process message map registration

macro allowing to implement ToolTip components for a concrete class