HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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
14
#include <
UT/UT_UniversalLogEntry.h
>
15
#include <
UT/UT_WorkBuffer.h
>
16
17
MC_API
const
UT_StringHolder
&
MC_MocapStream_LogSourceName
();
18
MC_API
void
MC_MocapStream_LogEntry
(
const
UT_UniversalLogEntry
& entry);
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
30
MC_MocapStream_LogEntry
(
UT_UniversalLogEntry
(
31
MC_MocapStream_LogSourceName
(),
32
msg, context, severity));
33
}
34
35
36
#endif
UT_ErrorSeverity
UT_ErrorSeverity
Definition:
UT_Error.h:25
MC_API
#define MC_API
Definition:
MC_API.h:10
UT_UniversalLogEntry.h
MC_MocapStream_LogSourceName
MC_API const UT_StringHolder & MC_MocapStream_LogSourceName()
UT_StringHolder
Definition:
UT_StringHolder.h:999
UT_WorkBuffer.h
severity
GLenum GLenum severity
Definition:
glcorearb.h:2539
MC_MocapStream_LogEntry
MC_API void MC_MocapStream_LogEntry(const UT_UniversalLogEntry &entry)
UT_StringHolder::format
size_t format(const char *fmt, const Args &...args)
Format a string using the same formatting codes as UTformat.
Definition:
UT_StringHolder.h:1202
args
**If you just want to fire and args
Definition:
thread.h:609
MC_API.h
UT_UniversalLogEntry
Simple object to hold the data associated with a single log entry event.
Definition:
UT_UniversalLogEntry.h:58
MC
MC_MocapStreamLog.h
Generated on Thu Nov 21 2024 02:43:47 for HDK by
1.8.6