// gdcmTS.cxx
-
+//-----------------------------------------------------------------------------
#include <fstream>
#include "gdcmTS.h"
#endif
#define DICT_TS "dicomTS.dic"
+//-----------------------------------------------------------------------------
+// Constructor / Destructor
gdcmTS::gdcmTS(void) {
std::string filename=gdcmDictSet::BuildDictPath() + std::string(DICT_TS);
std::ifstream from(filename.c_str());
from.getline(buff, 1024, '\n');
name = buff;
- if(key!="")
- {
+ if(key!="") {
ts[key]=name;
}
}
ts.clear();
}
+//-----------------------------------------------------------------------------
+// Print
+
+//-----------------------------------------------------------------------------
+// Public
int gdcmTS::Count(TSKey key) {
return ts.count(key);
}
return (GDCM_UNFOUND);
return ts[key];
}
+
+//-----------------------------------------------------------------------------
+// Protected
+
+//-----------------------------------------------------------------------------
+// Private
+
+//-----------------------------------------------------------------------------