]> Creatis software - gdcm.git/blobdiff - src/gdcmRLEFramesInfo.h
* FIX : remove so many friend between classes
[gdcm.git] / src / gdcmRLEFramesInfo.h
index fb35513e592ebaa89a723cf53a5873c893381d7c..a88a670ad4e5e639625e8ee0a880471fba693f82 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmRLEFramesInfo.h,v $
   Language:  C++
-  Date:      $Date: 2005/01/16 04:50:42 $
-  Version:   $Revision: 1.9 $
+  Date:      $Date: 2005/01/26 16:28:58 $
+  Version:   $Revision: 1.12 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -26,7 +26,6 @@
 
 namespace gdcm 
 {
-
 /**
  * \brief Utility class for gathering the informations of the collection
  *        of RLE frame[s] (see \ref RLEFrame)  when handling
@@ -43,14 +42,18 @@ namespace gdcm
  */
 class GDCM_EXPORT RLEFramesInfo
 {
-   typedef std::list< RLEFrame* > RLEFrameList;
-friend class Document;
-friend class File;
-friend class PixelReadConvert;
-   RLEFrameList Frames;
 public:
    ~RLEFramesInfo();
    void Print( std::ostream &os = std::cout, std::string indent = "" );
+
+   void AddFrame(RLEFrame *frame);
+
+private:
+   typedef std::list<RLEFrame *> RLEFrameList;
+
+   RLEFrameList Frames;
+
+   friend class PixelReadConvert;
 };
 } // end namespace gdcm