Files
Client/Server/RylServerProject/RylDBAgentServer/DataStorage/AdminDataMgr.h
LGram16 dd97ddec92 Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code:
- Client: Game client source (moved to Client/Client/)
- Server: Game server source
- GameTools: Development tools
- CryptoSource: Encryption utilities
- database: Database scripts
- Script: Game scripts
- rylCoder_16.02.2008_src: Legacy coder tools
- GMFont, Game: Additional resources

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 20:17:20 +09:00

48 lines
882 B
C++

#ifndef _RYL_DBAGENT_DB_ADMIN_DATA_H_
#define _RYL_DBAGENT_DB_ADMIN_DATA_H_
#include <winsock2.h>
#include <windows.h>
#include <map>
#include <boost/pool/pool_alloc.hpp>
// forward decl.
class CDBComponent;
namespace DBAgent
{
namespace DataStorage
{
struct AdminData
{
unsigned long m_dwUID;
unsigned char m_cLevel;
IN_ADDR m_startIP;
IN_ADDR m_endIP;
};
class CAdminDataMgr
{
public:
static CAdminDataMgr& GetInstance();
bool LoadAdminList(CDBComponent& DBComponent);
unsigned char GetAdminLevel(unsigned long dwUID, IN_ADDR address);
private:
typedef std::map<unsigned long, AdminData, std::less<unsigned long>,
boost::fast_pool_allocator<std::pair<unsigned long, AdminData> > > AdminMap;
AdminMap m_AdminMap;
};
}
}
#endif