]> Creatis software - creaImageIO.git/blob - src/creaImageIOTreeAttributeMapType.h
16cac8ca1b6eb6fc4951bd7496d1a0507a32b47e
[creaImageIO.git] / src / creaImageIOTreeAttributeMapType.h
1 #ifndef __creaImageIOTreeAttributeMapType_h_INCLUDED__
2 #define __creaImageIOTreeAttributeMapType_h_INCLUDED__
3
4 #include <map>
5 #include <string>
6 #include <iostream>
7
8 namespace creaImageIO
9 {
10
11         /**
12         * \ingroup Tree
13         */
14   namespace tree
15   {
16     typedef std::map<std::string,std::string> AttributeMapType;
17
18
19
20
21   }
22
23 }
24
25 //=====================================================================
26 inline std::ostream& operator<<(std::ostream& s, 
27                                 const creaImageIO::tree::AttributeMapType& d)
28 {
29   creaImageIO::tree::AttributeMapType::const_iterator i;
30   for (i=d.begin();i!=d.end();++i)
31     {
32       s << "'" << i->first << "'='" << i->second << "'" << std::endl;
33     }
34   return s;
35 }
36 //=====================================================================
37
38
39 #endif