libopenraw
peffile.h
1 /*
2  * libopenraw - peffile.h
3  *
4  * Copyright (C) 2006-2008 Hubert Figuiere
5  *
6  * This library is free software: you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public License
8  * as published by the Free Software Foundation, either version 3 of
9  * the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library. If not, see
18  * <http://www.gnu.org/licenses/>.
19  */
20 
21 
22 
23 
24 #ifndef __PEFFILE_H_
25 #define __PEFFILE_H_
26 
27 #include "ifdfile.h"
28 
29 namespace OpenRaw {
30 
31  class Thumbnail;
32 
33  namespace Internals {
34  class IOFile;
35  class IFDFileContainer;
36 
37  class PEFFile
38  : public IFDFile
39  {
40  public:
41  static RawFile *factory(IO::Stream *s);
42  PEFFile(IO::Stream *);
43  virtual ~PEFFile();
44 
45  protected:
46  virtual IFDDir::Ref _locateCfaIfd();
47  virtual IFDDir::Ref _locateMainIfd();
48 
49  virtual ::or_error _getRawData(RawData & data, uint32_t options);
50 
51  private:
52 
53  PEFFile(const PEFFile&);
54  PEFFile & operator=(const PEFFile &);
55 
56  static const IFDFile::camera_ids_t s_def[];
57  };
58  }
59 
60 }
61 
62 #endif
RawFile(IO::Stream *s, Type _type)
Definition: rawfile.cpp:278
virtual ::or_error _getRawData(RawData &data, uint32_t options)
Definition: peffile.cpp:88