15 #ifndef __IPSDKUTIL_LOGMESSAGEFORMATER_H__ 16 #define __IPSDKUTIL_LOGMESSAGEFORMATER_H__ 21 #pragma warning (push) 22 #pragma warning (disable : 4275 4251) 26 #include <boost/noncopyable.hpp> 27 #include <boost/format.hpp> 32 class LogMessageManager;
49 template <
typename EnumT>
52 return setMsgId(
typeid(EnumT).name(), (
ipInt32)messageId);
66 if (_format.remaining_args() == 0) {
68 _format = boost::format();
94 std::ostringstream
_os;
105 #pragma warning (pop) 107 #endif // __IPSDKUTIL_LOGMESSAGEFORMATER_H__ Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
LogMessageFormater & operator%(const T &arg)
arguments filling operator
Definition: LogMessageFormater.h:61
const LogMessageManager & _logMsgManager
underlying log message manager
Definition: LogMessageFormater.h:97
boost::format _format
underlying boost format structure
Definition: LogMessageFormater.h:91
std::ostringstream _os
underlying string stream
Definition: LogMessageFormater.h:94
int32_t ipInt32
Base types definition.
Definition: BaseTypes.h:52
Class alowing to easily format log message and handle id conversions.
Definition: LogMessageFormater.h:37
Base types for multiplatform compatibility.
LogMessageFormater & operator[](const EnumT &messageId)
template member for easy message id selection
Definition: LogMessageFormater.h:50
#define IPSDKUTIL_API
Import/Export macro for library IPSDKUtil.
Definition: IPSDKUtilExports.h:27
Log message manager for ipsdk libraries.
Definition: LogMessageManager.h:44
Definition of import/export macro for library.
LogMessageFormater & operator<<(const T &msg)
streaming operators
Definition: LogMessageFormater.h:76