32 lines
706 B
C++
32 lines
706 B
C++
#pragma once
|
|
|
|
class FtpInfo;
|
|
|
|
#include "XMLParser.h"
|
|
#include <Singleton.h>
|
|
#include <ObjKeyGenerator.h>
|
|
#include <SolarHashTable.h>
|
|
|
|
typedef util::SolarHashTable<FtpInfo*> FTP_INFO_HASH;
|
|
typedef FTP_INFO_HASH::iterator FTP_INFO_HASH_ITER;
|
|
|
|
class FtpInfoParser : public Singleton<FtpInfoParser>
|
|
{
|
|
public:
|
|
FtpInfoParser(void);
|
|
~FtpInfoParser(void);
|
|
|
|
public:
|
|
BOOL Load( char* pszFileName );
|
|
VOID UnLoad();
|
|
|
|
FtpInfo* GetFtpInfo( BYTE dwWorld ){ return m_FtpInfoHash.GetData( dwWorld ); }
|
|
|
|
inline FTP_INFO_HASH_ITER Begin() { return m_FtpInfoHash.begin(); }
|
|
inline FTP_INFO_HASH_ITER End() { return m_FtpInfoHash.end(); }
|
|
|
|
private:
|
|
XMLParser m_XMLParser;
|
|
FTP_INFO_HASH m_FtpInfoHash;
|
|
};
|