DragonNest/Server/ServiceMonitorEx/Source/ErrorLogMngr.h
2024-12-20 16:56:44 +08:00

54 lines
1.2 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.


#pragma once
#include "Define.h"
#include "Singleton.hpp"
#include "CriticalSection.hpp"
#include <map>
#include <vector>
// ERRLOGINFO
typedef struct ERRLOGINFO
{
public:
private:
public:
} *LPERRLOGINFO, * const LPCERRLOGINFO;;
// CErrorLogMngr
class CErrorLogMngr
{
public:
typedef CCriticalSection TP_LOCK;
typedef CLockAutoEx<TP_LOCK> TP_LOCKAUTO;
private:
DECLARE_SINGLETON_CLASS(CErrorLogMngr);
public:
CErrorLogMngr();
DWORD Open();
VOID Close();
BOOL IsOpen() const { return(m_IsOpen); }
private:
BOOL m_IsOpen;
};