]> Creatis software - gdcm.git/commitdiff
ENH: A user does not know (and should not) what we internally use for representing...
authormalaterre <malaterre>
Tue, 8 Nov 2005 16:31:21 +0000 (16:31 +0000)
committermalaterre <malaterre>
Tue, 8 Nov 2005 16:31:21 +0000 (16:31 +0000)
src/gdcmSerieHelper.cxx
src/gdcmSerieHelper.h

index 60de9c019f6bf4afc38dab443a772636c50a3763..23e60112f8a1c034b658593be36d4c05d34d7194 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmSerieHelper.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/27 09:14:15 $
-  Version:   $Revision: 1.33 $
+  Date:      $Date: 2005/11/08 16:31:21 $
+  Version:   $Revision: 1.34 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -218,12 +218,12 @@ void SerieHelper::AddGdcmFile(File *header)
  * @param value value to be checked to exclude File
  * @param op  operator we want to use to check
  */
-void SerieHelper::AddRestriction(uint16_t group, uint16_t elem
+void SerieHelper::AddRestriction(TagKey const &key
                                  std::string const &value, int op)
 {
    ExRule r;
-   r.group = group;
-   r.elem  = elem;
+   r.group = key[0];
+   r.elem  = key[1];
    r.value = value;
    r.op    = op;
    ExRestrictions.push_back( r ); 
index b41c9eceb00f08b50c7a3d999622aedc20038c6f..73fc8a949209bc878efb6483e240f3b548cb4449 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmSerieHelper.h,v $
   Language:  C++
-  Date:      $Date: 2005/10/26 06:23:37 $
-  Version:   $Revision: 1.26 $
+  Date:      $Date: 2005/11/08 16:31:21 $
+  Version:   $Revision: 1.27 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -98,8 +98,7 @@ public:
    /// All the following allow user to restrict DICOM file to be part
    /// of a particular serie
    GDCM_LEGACY( void AddRestriction(TagKey const &key, std::string const &value) );
-   void AddRestriction(uint16_t group, uint16_t elem, 
-                       std::string const &value, int op);
+   void AddRestriction(TagKey const &key, std::string const &value, int op);
  
 /**
  * \brief Sets the LoadMode as a boolean string.