1 /* 2 Scan Tailor - Interactive post-processing tool for scanned pages. 3 Copyright (C) 2007-2008 Joseph Artsimovich <joseph_a@mail.ru> 4 5 This program is free software: you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation, either version 3 of the License, or 8 (at your option) any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 #ifndef TIFFMETADATALOADER_H_ 20 #define TIFFMETADATALOADER_H_ 21 22 #include <vector> 23 #include "ImageMetadataLoader.h" 24 #include "VirtualFunction.h" 25 26 class QIODevice; 27 class ImageMetadata; 28 29 class TiffMetadataLoader : public ImageMetadataLoader { 30 public: 31 /** 32 * \brief Register this loader in the global registry. 33 * 34 * The same restrictions apply here as for 35 * ImageMetadataLoader::registerLoader() 36 */ 37 static void registerMyself(); 38 39 protected: 40 Status loadMetadata(QIODevice& io_device, const VirtualFunction<void, const ImageMetadata&>& out) override; 41 }; 42 43 44 #endif 45