]> Creatis software - gdcm.git/blobdiff - src/gdcmFile.cxx
BUG: Thanks to JP for bug report.
[gdcm.git] / src / gdcmFile.cxx
index 72f2ac51521e0a6af0ea8e0877549dc7795af5b4..ae7e2ab2104f1676f472fbac18f1c5e91d80760a 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmFile.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/12/16 10:41:59 $
-  Version:   $Revision: 1.176 $
+  Date:      $Date: 2004/12/16 13:46:37 $
+  Version:   $Revision: 1.179 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -125,6 +125,14 @@ File::~File()
 
 //-----------------------------------------------------------------------------
 // Print
+void File::Print(std::ostream &os)
+{
+   HeaderInternal->SetPrintLevel(PrintLevel);
+   HeaderInternal->Print(os);
+
+   PixelReadConverter->SetPrintLevel(PrintLevel);
+   PixelReadConverter->Print(os);
+}
 
 //-----------------------------------------------------------------------------
 // Public
@@ -453,6 +461,12 @@ bool File::ReplaceOrCreateByNumber(std::string const& content,
    return HeaderInternal->ReplaceOrCreateByNumber(content,group,element) != NULL;
 }
 
+bool File::ReplaceOrCreateByNumber(uint8_t* binArea, int lgth,
+                                   uint16_t group, uint16_t element)
+{
+   return HeaderInternal->ReplaceOrCreateByNumber(binArea,lgth,group,element) != NULL;
+}
+
 /**
  * \brief Access to the underlying \ref PixelReadConverter RGBA LUT
  */