#ifndef __creaImageIOAbstractImageReader_h_INCLUDED__ #define __creaImageIOAbstractImageReader_h_INCLUDED__ #include #include #include #include #include namespace creaImageIO { /** * \ingroup IO */ //===================================================================== /// Abstract image reader class AbstractImageReader { public: AbstractImageReader() {} virtual ~AbstractImageReader() {} const std::string& GetName() const { return mName; } virtual void PushBackExtensions(std::vector&) {} virtual bool CanRead(const std::string& filename) { return false; } virtual vtkImageData* ReadImage(const std::string& filename) { return 0; } virtual void ReadAttributes(const std::string& filename, tree::AttributeMapType& attr) {} protected: void SetName(const std::string& s) { mName = s; } private: std::string mName; }; //===================================================================== } // namespace creaImageIO #endif // #ifndef __creaImageIOAbstractImageReader_h_INCLUDED__