#include <gdcmVR.h>
Public Member Functions | |
| gdcmVR (void) | |
| ~gdcmVR () | |
| void | Print (std::ostream &os=std::cout) |
| Print all. | |
| int | Count (VRKey key) |
| Get the count for an element. | |
Private Attributes | |
| VRHT | vr |
|
|
Definition at line 22 of file gdcmVR.cxx. References gdcmDictSet::BuildDictPath(), dbg, DICT_VR, eatwhite(), and gdcmDebug::Error().
00023 {
00024 std::string filename=gdcmDictSet::BuildDictPath() + std::string(DICT_VR);
00025 std::ifstream from(filename.c_str());
00026 dbg.Error(!from, "gdcmVR::gdcmVR: can't open dictionary",filename.c_str());
00027
00028 char buff[1024];
00029 std::string key;
00030 std::string name;
00031
00032 while (!from.eof())
00033 {
00034 eatwhite(from);
00035 from.getline(buff, 1024, ' ');
00036 key = buff;
00037 eatwhite(from);
00038 from.getline(buff, 1024, ';');
00039 name = buff;
00040
00041 eatwhite(from);
00042 from.getline(buff, 1024, '\n');
00043
00044 if(key!="")
00045 {
00046 vr[key]=name;
00047 }
00048 }
00049 from.close();
00050 }
|
|
|
Definition at line 52 of file gdcmVR.cxx.
00052 {
00053 vr.clear();
00054 }
|
|
|
Get the count for an element.
Definition at line 81 of file gdcmVR.cxx. References VRKey. Referenced by gdcmParser::CheckHeaderEntryVR().
00082 {
00083 return vr.count(key);
00084 }
|
|
|
Print all.
Definition at line 63 of file gdcmVR.cxx.
|
|
|
|
1.3.6