#ifndef _NNTP_MESSAGELOG_HPP_ #define _NNTP_MESSAGELOG_HPP_ #ifndef _COMMON_SMARTPOINTER_HPP_ #include #endif #ifndef _NNTP_MESSAGEID_HPP_ #include #endif #ifndef _BSPTREE_BTREE_HPP_ #include #endif class FileIO; class MessageLog { public: MessageLog(void); virtual ~MessageLog(); BOOL setLog(const String &pathFileName); BOOL searchItem(MsgID &someMsgID); void insert(const MsgID &someMsgID); void flush(void); void close(void); BOOL isOkay(void); private: const String &strMessageLogPostFix(void)const; SmartPointer mFileIO; BTree mMasterList; String mPathFileName; String mStrMessageLogPostFix; }; inline const String &MessageLog::strMessageLogPostFix(void)const { return mStrMessageLogPostFix; } #endif