#ifndef BANWORD_MANAGER_H_ #define BANWORD_MANAGER_H_ #include class CBanwordManager : public singleton { public: CBanwordManager(); virtual ~CBanwordManager(); bool Initialize(TBanwordTable * p, WORD wSize); bool Find(const char * c_pszString); bool CheckString(const char * c_pszString, size_t _len); void ConvertString(char * c_pszString, size_t _len); protected: typedef boost::unordered_map TBanwordHashmap; TBanwordHashmap m_hashmap_words; }; #endif /* BANWORD_MANAGER_H_ */