mrwfile.h

00001 /*
00002  * libopenraw - mrwfile.h
00003  *
00004  * Copyright (C) 2006-2007 Hubert Figuiere
00005  * Copyright (C) 2008 Bradley Broom
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2.1 of the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
00020  */
00021 
00022 
00023 
00024 
00025 #ifndef __MRWFILE_H_
00026 #define __MRWFILE_H_
00027 
00028 #include "ifdfile.h"
00029 
00030 namespace OpenRaw {
00031 
00032     class Thumbnail;
00033 
00034     namespace Internals {
00035 
00036         class MRWFile
00037             : public IFDFile
00038         {
00039         public:
00040             static RawFile *factory(const char* _filename);
00041             MRWFile(const char* _filename);
00042             virtual ~MRWFile();
00043 
00044         protected:
00045             virtual IFDDir::Ref  _locateCfaIfd();
00046             virtual IFDDir::Ref  _locateMainIfd();
00047 
00048             virtual ::or_error _enumThumbnailSizes(std::vector<uint32_t> &list);
00049             virtual ::or_error _getThumbnail(uint32_t size, Thumbnail & thumbnail);
00050             virtual ::or_error _getRawData(RawData & data, uint32_t options);
00051 
00052         private:
00053 
00054             MRWFile(const MRWFile&);
00055             MRWFile & operator=(const MRWFile&);
00056         };
00057     }
00058 
00059 }
00060 
00061 #endif

Generated on Sat Nov 7 19:23:18 2009 for libopenraw by  doxygen 1.5.8