28 #ifndef ICL_CORE_LOGGING_THREAD_STREAM_H_INCLUDED 29 #define ICL_CORE_LOGGING_THREAD_STREAM_H_INCLUDED 40 #ifdef _IC_BUILDER_DEPRECATED_STYLE_ 44 #if defined ICL_CORE_QT_SUPPORT 48 #ifdef _IC_BUILDER_EIGEN_ 74 void setClassname(
const char *classname);
80 void setObjectname(
const char *objectname);
86 void setFilename(
const char *filename);
92 void setFunction(
const char *
function);
98 void setLine(
size_t line);
113 void write(
const char *
buffer,
size_t number_of_bytes,
size_t protected_buffer_size=1);
120 void printf(
const char *fmt, ...);
136 return (*func)(*this);
140 #ifdef _IC_BUILDER_DEPRECATED_STYLE_ 196 size_t protected_buffer_size=1)
251 stream.
write(
"\n", 1, 0);
252 return stream <<
flush;
269 #ifdef _SYSTEM_DARWIN_ 278 #ifndef _SYSTEM_WIN32_ 282 #if defined ICL_CORE_QT_SUPPORT 286 #ifdef _IC_BUILDER_EIGEN_ 287 template <
typename TScalar,
int _Rows,
int _Cols,
int _Options,
int _MaxRows,
int _MaxCols>
290 const Eigen::Matrix<TScalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>& matrix)
293 for (
int col = 0; col < matrix.cols(); ++col)
295 for (
int row = 0; row < matrix.rows(); ++row)
297 stream <<
" " << matrix(row, col);
299 if (col < matrix.cols() - 1)
310 #ifdef _IC_BUILDER_DEPRECATED_STYLE_ 329 stream.
write(
"\n", 1, 0);
330 return stream <<
flush;
ICL_CORE_OS_IMPL_NS::ThreadId ThreadId
#define ICL_CORE_VC_DEPRECATE_STYLE
#define ICL_CORE_GCC_DEPRECATE_STYLE_USE(arg)
Contains macros to deprecate classes, types, functions and variables.
Contains import/export definitions for the Win32 plattform.
void changeLevel(icl_core::logging::LogLevel level)
ThreadStream & flush(ThreadStream &stream)
#define ICL_CORE_VC_DEPRECATE_STYLE_USE(arg)
unsigned __int64 uint64_t
icl_core::logging::LogLevel m_line_log_level
Implements a thread-safe logging framework.
Contains global thread related functions, encapsulated into the icl_core::os namespace.
Contains constants used in icl_core::logging.
ThreadStream & endl(ThreadStream &stream)
void write(const char *buffer, size_t number_of_bytes, size_t protected_buffer_size=1)
icl_core::logging::LogLevel m_level
Contains icl_logging::LogLevel.
Implements the actual logging for an individual thread.
ThreadStream & operator<<(ThreadStream &stream, const icl_core::TimeStamp &time_stamp)
Contains Interface base classes and base types.
icl_core::logging::LogLevel getLogLevel() const
#define ICL_CORE_LOGGING_IMPORT_EXPORT
#define cDEFAULT_LOG_SIZE
#define ICL_CORE_GCC_DEPRECATE_STYLE