From b3aa2adf312f3aa9acee6061d54c3b3264bc7cb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Walenciak?= Date: Tue, 12 Sep 2017 21:48:01 +0200 Subject: [PATCH] initial implementation of newBigTiffInstance() --- src/bigtiffimage.cpp | 45 +++++++++++++++++++++++++++++++++++--------- 1 file changed, 36 insertions(+), 9 deletions(-) diff --git a/src/bigtiffimage.cpp b/src/bigtiffimage.cpp index a991c590..8e07e8c7 100644 --- a/src/bigtiffimage.cpp +++ b/src/bigtiffimage.cpp @@ -2,18 +2,45 @@ #include "bigtiffimage.hpp" - namespace Exiv2 { -Image::AutoPtr newBigTiffInstance(BasicIo::AutoPtr, bool) -{ - return Image::AutoPtr(); -} + namespace + { + class BigTiffImage: public Image + { + public: + BigTiffImage(BasicIo::AutoPtr io): Image(ImageType::bigtiff, mdExif, io) {} -bool isBigTiffType(BasicIo &, bool) -{ - return false; -} + virtual ~BigTiffImage() {} + + // overrides + void readMetadata() + { + + } + + void writeMetadata() + { + + } + + std::string mimeType() const + { + + } + }; + } + + + Image::AutoPtr newBigTiffInstance(BasicIo::AutoPtr io, bool) + { + return Image::AutoPtr(new BigTiffImage(io)); + } + + bool isBigTiffType(BasicIo &, bool) + { + return false; + } }