X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src2%2FcreaImageIOAbstractImageReader.h;h=3957f3a7d652456127bcbf461fea6d38cc9f8a7e;hb=da80530068246081505e9649523d10e8da8e6acd;hp=c1c15ef948b8a418e5218fd129fd083f92b85878;hpb=9ae1b3a039da8e28aa41c6963744bfa86c382a35;p=creaImageIO.git diff --git a/src2/creaImageIOAbstractImageReader.h b/src2/creaImageIOAbstractImageReader.h index c1c15ef..3957f3a 100644 --- a/src2/creaImageIOAbstractImageReader.h +++ b/src2/creaImageIOAbstractImageReader.h @@ -6,7 +6,7 @@ #include #include #include -#include +#include "creaImageIOTreeAttributeMapType.h" namespace creaImageIO { @@ -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;