]> Creatis software - gdcm.git/commitdiff
Ooops...
authorfrog <frog>
Wed, 20 Oct 2004 14:31:44 +0000 (14:31 +0000)
committerfrog <frog>
Wed, 20 Oct 2004 14:31:44 +0000 (14:31 +0000)
src/gdcmJPEGFragment.cxx [new file with mode: 0644]
src/gdcmRLEFrame.cxx [new file with mode: 0644]

diff --git a/src/gdcmJPEGFragment.cxx b/src/gdcmJPEGFragment.cxx
new file mode 100644 (file)
index 0000000..6211340
--- /dev/null
@@ -0,0 +1,47 @@
+/*=========================================================================
+                                                                                
+  Program:   gdcm
+  Module:    $RCSfile: gdcmJPEGFragment.cxx,v $
+  Language:  C++
+  Date:      $Date: 2004/10/20 14:31:44 $
+  Version:   $Revision: 1.1 $
+                                                                                
+  Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
+  l'Image). All rights reserved. See Doc/License.txt or
+  http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
+                                                                                
+     This software is distributed WITHOUT ANY WARRANTY; without even
+     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+     PURPOSE.  See the above copyright notices for more information.
+                                                                                
+=========================================================================*/
+                                                                                
+#include "gdcmJPEGFragment.h"
+                                                                                
+namespace gdcm
+{
+
+/**
+ * \brief Default constructor.
+ */
+JPEGFragment::JPEGFragment()
+{
+   Offset = 0;
+   Length = 0;
+}
+
+/**
+ * \brief        Print self.
+ * @param indent Indentation string to be prepended during printing.
+ * @param os     Stream to print to.
+ */
+void JPEGFragment::Print( std::string indent, std::ostream &os )
+{
+   os << indent
+      << "JPEG fragment: offset : " <<  Offset
+      << "   length : " <<  Length
+      << std::endl;
+}
+
+} // end namespace gdcm
+
diff --git a/src/gdcmRLEFrame.cxx b/src/gdcmRLEFrame.cxx
new file mode 100644 (file)
index 0000000..72d2a1c
--- /dev/null
@@ -0,0 +1,44 @@
+/*=========================================================================
+                                                                                
+  Program:   gdcm
+  Module:    $RCSfile: gdcmRLEFrame.cxx,v $
+  Language:  C++
+  Date:      $Date: 2004/10/20 14:31:44 $
+  Version:   $Revision: 1.1 $
+                                                                                
+  Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
+  l'Image). All rights reserved. See Doc/License.txt or
+  http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
+                                                                                
+     This software is distributed WITHOUT ANY WARRANTY; without even
+     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+     PURPOSE.  See the above copyright notices for more information.
+                                                                                
+=========================================================================*/
+                                                                                
+#include "gdcmRLEFrame.h"
+                                                                                
+namespace gdcm
+{
+
+/**
+ * \brief        Print self.
+ * @param indent Indentation string to be prepended during printing.
+ * @param os     Stream to print to.
+ */
+void RLEFrame::Print( std::string indent, std::ostream &os )
+{
+   os << indent
+      << "--- fragments"
+      << std::endl;
+   for ( unsigned int i = 0; i < NumberFragments; i++ )
+   {
+      os << indent
+         << "   offset : " <<  Offset[i]
+         << "   length : " <<  Length[i]
+         << std::endl;
+   }
+}
+
+} // end namespace gdcm
+