HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MC_MocapStreamLog.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: MC_MocapStreamLog.h (C++)
7  *
8  */
9 #ifndef __MC_MOCAPSTREAMLOG_H_INCLUDED__
10 #define __MC_MOCAPSTREAMLOG_H_INCLUDED__
11 
12 #include "MC_API.h"
13 
15 #include <UT/UT_WorkBuffer.h>
16 
19 
20 /// Create an entry and add it to the mocap stream log.
21 template <typename... Args>
22 static inline void MC_MocapStream_Log(UT_ErrorSeverity severity,
23  const char* context,
24  const char* fmt,
25  Args&&... args)
26 {
27  UT_StringHolder msg;
28  msg.format(fmt, std::forward<Args>(args)...);
29 
32  msg, context, severity));
33 }
34 
35 
36 #endif
UT_ErrorSeverity
Definition: UT_Error.h:25
#define MC_API
Definition: MC_API.h:10
MC_API const UT_StringHolder & MC_MocapStream_LogSourceName()
GLenum GLenum severity
Definition: glcorearb.h:2539
MC_API void MC_MocapStream_LogEntry(const UT_UniversalLogEntry &entry)
size_t format(const char *fmt, const Args &...args)
Format a string using the same formatting codes as UTformat.
**If you just want to fire and args
Definition: thread.h:609
Simple object to hold the data associated with a single log entry event.