00001 /********************************* 00002 tercpp: an open-source Translation Edit Rate (TER) scorer tool for Machine Translation. 00003 00004 Copyright 2010-2013, Christophe Servan, LIUM, University of Le Mans, France 00005 Contact: christophe.servan@lium.univ-lemans.fr 00006 00007 The tercpp tool and library are free software: you can redistribute it and/or modify it 00008 under the terms of the GNU Lesser General Public License as published by 00009 the Free Software Foundation, either version 2.1 of the licence, or 00010 (at your option) any later version. 00011 00012 This program and library are distributed in the hope that it will be useful, but WITHOUT 00013 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00014 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00015 for more details. 00016 00017 You should have received a copy of the GNU Lesser General Public License 00018 along with this library; if not, write to the Free Software Foundation, 00019 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00020 **********************************/ 00021 #ifndef __STRINGINFOSHASHER_H__ 00022 #define __STRINGINFOSHASHER_H__ 00023 #include <string> 00024 // #include <ext/hash_map> 00025 #include <iostream> 00026 #include <vector> 00027 #include "tools.h" 00028 00029 using namespace std; 00030 namespace TERCPPNS_HashMapSpace 00031 { 00032 class stringInfosHasher 00033 { 00034 private: 00035 long m_hashKey; 00036 string m_key; 00037 vector<string> m_value; 00038 00039 public: 00040 stringInfosHasher ( long cle, string cleTxt, vector<string> valueVecInt ); 00041 long getHashKey(); 00042 string getKey(); 00043 vector<string> getValue(); 00044 void setValue ( vector<string> value ); 00045 string toString(); 00046 00047 00048 }; 00049 00050 00051 } 00052 #endif