2 //-----------------------------------------------------------------------------
9 #include "gdcmDictSet.h"
10 #include "gdcmDebug.h"
12 //-----------------------------------------------------------------------------
18 std::string filename=gdcmDictSet::BuildDictPath() + std::string(DICT_VR);
19 std::ifstream from(filename.c_str());
20 dbg.Error(!from, "gdcmVR::gdcmVR: can't open dictionary",filename.c_str());
29 from.getline(buff, 1024, ' ');
32 from.getline(buff, 1024, ';');
36 from.getline(buff, 1024, '\n');
53 //-----------------------------------------------------------------------------
58 * @param os The output stream to be written to.
60 void gdcmVR::Print(std::ostream &os)
64 for (VRHT::iterator it = vr.begin(); it != vr.end(); ++it)
66 s << "VR : "<<it->first<<" = "<<it->second<<std::endl;
71 //-----------------------------------------------------------------------------
75 * \brief Get the count for an element
76 * @param key key to count
78 int gdcmVR::Count(VRKey key)
83 //-----------------------------------------------------------------------------
86 //-----------------------------------------------------------------------------
89 //-----------------------------------------------------------------------------