mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 03:59:36 +00:00
29 lines
472 B
C++
29 lines
472 B
C++
#pragma once
|
|
|
|
#include "IGpLogDriver.h"
|
|
|
|
class GpIOStream;
|
|
struct IGpAllocator;
|
|
|
|
class GpLogDriver_Win32 : public IGpLogDriver
|
|
{
|
|
public:
|
|
GpLogDriver_Win32();
|
|
|
|
static void Init();
|
|
|
|
void VPrintf(Category category, const char *fmt, va_list args) override;
|
|
void Shutdown() override;
|
|
|
|
static GpLogDriver_Win32 *GetInstance();
|
|
|
|
private:
|
|
void InitInternal();
|
|
|
|
GpIOStream *m_stream;
|
|
IGpAllocator *m_alloc;
|
|
bool m_isInitialized;
|
|
|
|
static GpLogDriver_Win32 ms_instance;
|
|
};
|