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