]> Creatis software - gdcm.git/commitdiff
STYLE: minor clean up
authormalaterre <malaterre>
Tue, 11 Jan 2005 17:19:38 +0000 (17:19 +0000)
committermalaterre <malaterre>
Tue, 11 Jan 2005 17:19:38 +0000 (17:19 +0000)
Testing/TestTS.cxx
src/gdcmDocument.cxx
src/gdcmDocument.h

index b2f57f82405f3e78ed0befd398e198fbeeb8d666..582264393a94d3d4c8a504c548410898d72b33b7 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestTS.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/11 16:44:42 $
-  Version:   $Revision: 1.6 $
+  Date:      $Date: 2005/01/11 17:19:38 $
+  Version:   $Revision: 1.7 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -16,6 +16,7 @@
                                                                                 
 =========================================================================*/
 #include "gdcmTS.h"
+#include "gdcmGlobal.h"
 
 int TestTS(int , char *[])
 {
@@ -68,6 +69,7 @@ int TestTS(int , char *[])
    std::cout << ts.IsJPEG( "1.2.840.10008.1.2.5") << std::endl;
    std::cout << ts.IsEncapsulate( "1.2.840.10008.1.2.5") << std::endl;
    std::cout << ts.GetSpecialTransferSyntax( ts.GetSpecialTransferSyntax( "1.2.840.10008.1.2.5")) << std::endl;
+   std::cout << gdcm::Global::GetTS()->IsRLELossless( "1.2.840.10008.1.2.5" )  << std::endl;
 
    return ts.GetValue( "" ) != gdcm::GDCM_UNFOUND;
 }
index f4b47a1e032e6fc28959a931ccd9b4a7d4ddc98d..1a10f5b8078f33dd1df17aeb05ccac0e17bd0244 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocument.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/11 16:44:43 $
-  Version:   $Revision: 1.174 $
+  Date:      $Date: 2005/01/11 17:19:39 $
+  Version:   $Revision: 1.175 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -1577,7 +1577,8 @@ void Document::FindDocEntryLength( DocEntry *entry )
       if ( element  == 0x0000 && length16 == 0x0400 ) 
       {
          std::string ts = GetTransferSyntax();
-         if ( Global::GetTS()->GetSpecialTransferSyntax(ts) != TS::ExplicitVRBigEndian ) 
+         if ( Global::GetTS()->GetSpecialTransferSyntax(ts) 
+                != TS::ExplicitVRBigEndian ) 
          {
             throw FormatError( "Document::FindDocEntryLength()",
                                " not explicit VR." );
index aee3aaa188722a801d1e7547c4a573a4c9d23a8a..59fbb270abcb178775bd2ccd66696f295400530c 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocument.h,v $
   Language:  C++
-  Date:      $Date: 2005/01/11 16:44:43 $
-  Version:   $Revision: 1.80 $
+  Date:      $Date: 2005/01/11 17:19:39 $
+  Version:   $Revision: 1.81 $
  
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -92,8 +92,8 @@ public:
                          uint16_t group, uint16_t element);
    virtual bool SetEntry(uint8_t *content, int lgth,
                          uint16_t group, uint16_t element);
-   virtual bool SetEntry(std::string const &content,ValEntry *entry);
-   virtual bool SetEntry(uint8_t *content, int lgth,BinEntry *entry);
+   virtual bool SetEntry(std::string const &content, ValEntry *entry);
+   virtual bool SetEntry(uint8_t *content, int lgth, BinEntry *entry);
 
    virtual void *GetEntryBinArea(uint16_t group, uint16_t elem);   
 
@@ -113,8 +113,8 @@ public:
                              TagName const &vr = GDCM_UNKNOWN);
    SeqEntry *ReplaceOrCreate(uint16_t group, uint16_t elem);
 
-   bool ReplaceIfExist ( std::string const &value,
-                         uint16_t group, uint16_t elem );
+   bool ReplaceIfExist(std::string const &value,
+                       uint16_t group, uint16_t elem );
    
    virtual void LoadEntryBinArea(uint16_t group, uint16_t elem);
    virtual void LoadEntryBinArea(BinEntry *entry);