]> Creatis software - gdcm.git/blob - src/gdcmElValSet.cxx
* Truckload of changes. Parsing of header is barely functional
[gdcm.git] / src / gdcmElValSet.cxx
1 #include "gdcmlib.h"
2
3 int ElValSet::Add(ElValue * newElValue) {
4         tagHt[newElValue->GetKey()]   = newElValue;
5         NameHt[newElValue->GetName()] = newElValue;
6 }
7
8 int ElValSet::Print(ostream & os) {
9         for (TagElValueHT::iterator tag = tagHt.begin();
10                   tag != tagHt.end();
11                   ++tag){
12                 os << tag->first << ": [";
13                 os << tag->second->GetValue() << "] [";
14                 os << tag->second->GetName() << "]" << endl;
15         }
16 }