]> Creatis software - gdcm.git/blobdiff - src/gdcmTS.cxx
* To remove warnings
[gdcm.git] / src / gdcmTS.cxx
index 29ab1be0a9c6d52731fd5d3e7ad488c765ccc785..f3e89ab9b5e166218f10c16332a084eacb0f8212 100644 (file)
@@ -1,5 +1,5 @@
 // gdcmTS.cxx
-
+//-----------------------------------------------------------------------------
 #include <fstream>
 
 #include "gdcmTS.h"
@@ -10,6 +10,8 @@
 #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());
@@ -27,8 +29,7 @@ gdcmTS::gdcmTS(void) {
       from.getline(buff, 1024, '\n');
       name = buff;
 
-      if(key!="")
-      {
+      if(key!="") {
          ts[key]=name;
       }
    }
@@ -39,6 +40,11 @@ gdcmTS::~gdcmTS() {
    ts.clear();
 }
 
+//-----------------------------------------------------------------------------
+// Print
+
+//-----------------------------------------------------------------------------
+// Public
 int gdcmTS::Count(TSKey key) {
    return ts.count(key);
 }
@@ -48,3 +54,11 @@ std::string gdcmTS::GetValue(TSKey key) {
       return (GDCM_UNFOUND);
    return ts[key];
 }
+
+//-----------------------------------------------------------------------------
+// Protected
+
+//-----------------------------------------------------------------------------
+// Private
+
+//-----------------------------------------------------------------------------