mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-09 13:01:29 -10:00
34 lines
536 B
C++
34 lines
536 B
C++
#ifndef _TRACEEVENTWRITER_H
|
|
#define _TRACEEVENTWRITER_H
|
|
#pragma once
|
|
|
|
#include "globalincs/pstypes.h"
|
|
#include "tracing/tracing.h"
|
|
|
|
#include "tracing/ThreadedEventProcessor.h"
|
|
|
|
#include <fstream>
|
|
|
|
/** @file
|
|
* @ingroup tracing
|
|
*/
|
|
|
|
namespace tracing
|
|
{
|
|
class TraceEventWriter
|
|
{
|
|
std::ofstream _out;
|
|
bool _first_line = true;
|
|
|
|
public:
|
|
TraceEventWriter();
|
|
~TraceEventWriter();
|
|
|
|
void processEvent(const trace_event* event);
|
|
};
|
|
|
|
typedef ThreadedEventProcessor<TraceEventWriter> ThreadedTraceEventWriter;
|
|
}
|
|
|
|
#endif // _TRACEEVENTWRITER_H
|