X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmTS.cxx;h=0c64dcb4cef624a5b795376d4ca9f457c969baad;hb=52ec19b00fbcd40a19c24dcecd87764b5b6739aa;hp=26c672df9f9107b02e145d1c724742415cd56218;hpb=616fe6757e5e27ce6ebb48e9e3bf3b42ab15be1c;p=gdcm.git diff --git a/src/gdcmTS.cxx b/src/gdcmTS.cxx index 26c672df..0c64dcb4 100644 --- a/src/gdcmTS.cxx +++ b/src/gdcmTS.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmTS.cxx,v $ Language: C++ - Date: $Date: 2004/11/03 18:08:56 $ - Version: $Revision: 1.28 $ + Date: $Date: 2005/01/07 22:03:30 $ + Version: $Revision: 1.33 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -25,9 +25,15 @@ #include #include +// TODO +// a lot of troubles expected with TS : 1.2.840.113619.5.2 +// Implicit VR - Big Endian +// see : http://www.gemedicalsystemseurope.com/euen/it_solutions/pdf/lsqxi_rev2.pdf +// + namespace gdcm { -void FillDefaultTSDict(TSHT & ts); +void FillDefaultTSDict(TSHT &ts); //----------------------------------------------------------------------------- // Constructor / Destructor TS::TS() @@ -36,7 +42,7 @@ TS::TS() std::ifstream from(filename.c_str()); if( !from ) { - dbg.Verbose(2, "TS::TS: can't open dictionary", filename.c_str()); + gdcmVerboseMacro("Can't open dictionary" << filename.c_str()); FillDefaultTSDict( TsMap ); } else @@ -85,12 +91,12 @@ void TS::Print(std::ostream &os) //----------------------------------------------------------------------------- // Public -int TS::Count(TSKey const & key) +int TS::Count(TSKey const &key) { return TsMap.count(key); } -TSAtr const & TS::GetValue(TSKey const & key) +TSAtr const & TS::GetValue(TSKey const &key) { TSHT::const_iterator it = TsMap.find(key); if (it == TsMap.end())