X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FcreaImageIOMultiThreadImageReader.h;h=461d2c31397c2a83d6865ed1c24a134bc0214607;hb=07e49bceb0a9d8fbd9345f97d5b3385ace13a6ef;hp=c5a9ef9574081937cf4849933c0eed44409a62da;hpb=3a22e19184c369b130d4caa992a8e98e50c7a0ee;p=creaImageIO.git diff --git a/src/creaImageIOMultiThreadImageReader.h b/src/creaImageIOMultiThreadImageReader.h index c5a9ef9..461d2c3 100644 --- a/src/creaImageIOMultiThreadImageReader.h +++ b/src/creaImageIOMultiThreadImageReader.h @@ -105,7 +105,10 @@ namespace creaImageIO void OnMultiThreadImageReaderEvent( const std::string& filename, EventType type, vtkImageData* image); - + + /// Function to read attributes for a file + void getAttributes(const std::string filename, std::map &infos, std::vector i_attr); + protected: bool mDone; int GetMaximalPriorityWithoutLocking(); @@ -140,6 +143,8 @@ namespace creaImageIO int& UnloadIndex() { return mUnloadIndex; } vtkImageData* GetImage() const { return mImage; } void SetImage( vtkImageData* i ) { mImage=i; } + + std::map getAttributes(const std::vector i_attr); private: MultiThreadImageReaderUser* mUser; std::string mFilename;