mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-22 22:45:39 +00:00
29 lines
432 B
C++
29 lines
432 B
C++
#pragma once
|
|
|
|
#include "IGpLogDriver.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
class GpIOStream;
|
|
|
|
class GpLogDriver_X : public IGpLogDriver
|
|
{
|
|
public:
|
|
GpLogDriver_X();
|
|
|
|
static void Init();
|
|
|
|
void VPrintf(Category category, const char *fmt, va_list args) override;
|
|
void Shutdown() override;
|
|
|
|
static GpLogDriver_X *GetInstance();
|
|
|
|
private:
|
|
void InitInternal();
|
|
|
|
GpIOStream *m_stream;
|
|
bool m_isInitialized;
|
|
|
|
static GpLogDriver_X ms_instance;
|
|
};
|