3 //-----------------------------------------------------------------------------
8 # define PUB_DICT_PATH "../Dicts/"
10 #define DICT_VR "dicomVR.dic"
13 #ifdef GDCM_NO_ANSI_STRING_STREAM
15 # define ostringstream ostrstream
20 //-----------------------------------------------------------------------------
21 // Constructor / Destructor
24 std::string filename=gdcmDictSet::BuildDictPath() + std::string(DICT_VR);
25 std::ifstream from(filename.c_str());
26 dbg.Error(!from, "gdcmVR::gdcmVR: can't open dictionary",filename.c_str());
35 from.getline(buff, 1024, ' ');
38 from.getline(buff, 1024, ';');
42 from.getline(buff, 1024, '\n');
56 //-----------------------------------------------------------------------------
61 * @param os The output stream to be written to.
63 void gdcmVR::Print(std::ostream &os)
67 for (VRHT::iterator it = vr.begin(); it != vr.end(); ++it)
69 s << "VR : "<<it->first<<" = "<<it->second<<std::endl;
74 //-----------------------------------------------------------------------------
78 * \brief Get the count for an element
79 * @param key key to count
81 int gdcmVR::Count(VRKey key)
86 //-----------------------------------------------------------------------------
89 //-----------------------------------------------------------------------------
92 //-----------------------------------------------------------------------------