1 #ifndef CLITKLISTOFPAIR_TXX
2 #define CLITKLISTOFPAIR_TXX
4 =================================================
5 * @file clitkListOfPair.txx
6 * @author David Sarrut <david.sarrut@creatis.insa-lyon.fr>
7 * @date 27 Feb 2007 09:44:48
12 =================================================*/
14 //====================================================================
15 template<class MapType>
16 void ReadMap(const std::string & filename, MapType & list, bool inverse) {
18 clitk::openFileForReading(is, filename);
19 clitk::skipComment(is);
20 typedef typename MapType::key_type KType;
22 typedef typename MapType::mapped_type MType;
28 if (!inverse) list.insert(std::pair<KType, MType>(v1,v2));
29 else list.insert(std::pair<KType, MType>(v2,v1));
31 clitk::skipComment(is);
35 //====================================================================
37 #endif /* end #define CLITKLISTOFPAIR_TXX */