#pragma once class FtpInfo; #include "XMLParser.h" #include #include #include typedef util::SolarHashTable FTP_INFO_HASH; typedef FTP_INFO_HASH::iterator FTP_INFO_HASH_ITER; class FtpInfoParser : public Singleton { 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; };