Files
Sun1602/Tools/SunUpdateManager/SunUpdateServer/FtpInfoParser.h
T
2022-10-26 12:25:11 +08:00

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;
};