X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOAbstractImageReader.h;h=e7326204bf906adc293ba216e980b3c6a960483b;hb=96ca5a0d7b7ccd6b4291160c19afd48e3207db2a;hp=c1c15ef948b8a418e5218fd129fd083f92b85878;hpb=9ae1b3a039da8e28aa41c6963744bfa86c382a35;p=creaImageIO.git diff --git a/src2/creaImageIOAbstractImageReader.h b/src2/creaImageIOAbstractImageReader.h index c1c15ef..e732620 100644 --- a/src2/creaImageIOAbstractImageReader.h +++ b/src2/creaImageIOAbstractImageReader.h @@ -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&) {} + + /// Test if file is read by this reader virtual bool CanRead(const std::string& filename) { return false; } + + /// 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;