]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOAbstractImageReader.h
Clean-Up with Juan Sebastien
[creaImageIO.git] / src2 / creaImageIOAbstractImageReader.h
index 3d8ac24b6807fe43256ff38ba89c470015177e6b..e7326204bf906adc293ba216e980b3c6a960483b 100644 (file)
@@ -13,7 +13,7 @@ namespace creaImageIO
 
 
   /**
-   * \ingroup ReadWrite
+   * \ingroup IO
    */
   
   //=====================================================================
@@ -24,14 +24,25 @@ namespace creaImageIO
     AbstractImageReader() {}
     virtual ~AbstractImageReader() {}
 
+       /// Get the reader's name
     const std::string& GetName() const { return mName; }
+
+       /// Add file extensions read by the reader
     virtual void PushBackExtensions(std::vector<std::string>&) {}
+
+       /// Test if file is read by this reader
     virtual bool CanRead(const std::string& filename) { return false; }
-    virtual vtkImageData* ReadImage(const std::string& filename) { return 0; }
+
+       /// return for a file a 2D VTkImage
+    virtual vtkImageData* ReadImage(const std::string& filename) { return 0; } 
+
+       /// Read the attributes for a file
     virtual void ReadAttributes(const std::string& filename, 
                                tree::AttributeMapType& attr) {}
 
   protected:
+
+    /// Set the reader's name
     void SetName(const std::string& s) { mName = s; }
   private:
     std::string mName;