#ifndef HASH_GENERATOR_HDR #define HASH_GENERATOR_HDR #include #include #include #include #include "concordia/word_map.hpp" #include "concordia/common/config.hpp" #include "concordia/concordia_exception.hpp" /*! Class for generating a sentence hash. */ using namespace std; class HashGenerator { public: explicit HashGenerator(const string & wordMapFilePath) throw(ConcordiaException); /*! Destructor. */ virtual ~HashGenerator(); boost::shared_ptr > generateHash(const string & sentence); void serializeWordMap(); private: boost::shared_ptr _wordMap; string _wordMapFilePath; }; #endif