DragonNest/Server/ServiceMonitorEx/Source/ConfigMngr.h

50 lines
691 B
C
Raw Normal View History

2024-12-19 09:48:26 +08:00
#pragma once
#include "Define.h"
#include "CriticalSection.hpp"
#include "Singleton.hpp"
#include "IniFile.h"
#include "IpV4.hpp"
#include <map>
#include <vector>
// CConfigMngr
class CConfigMngr
{
public:
typedef CCriticalSection TP_LOCK;
typedef CLockAutoEx<TP_LOCK> TP_LOCKAUTO;
private:
DECLARE_SINGLETON_CLASS(CConfigMngr);
public:
CConfigMngr();
VOID Reset();
DWORD Open(LPCTSTR pFileName);
VOID Close();
BOOL IsOpen() const { return(m_IniFile.IsOpen()); }
VOID Flush();
public:
CIpV4 m_IpAddress; // IP <20>ּ<EFBFBD>
WORD m_PortNo; // <20><>Ʈ <20><>ȣ
CString m_ID; // ID
WINDOWPLACEMENT m_WindowPlacement;
CString m_WavFile;
private:
CIniFile m_IniFile;
};