libopenraw
orffile.h
1 /*
2  * libopenraw - orffile.h
3  *
4  * Copyright (C) 2006-2008, 2010 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 __ORFFILE_H_
25 #define __ORFFILE_H_
26 
27 #include "ifdfile.h"
28 
29 namespace OpenRaw {
30 
31  class Thumbnail;
32  class RawData;
33 
34  namespace Internals {
35 
36  class OrfFile
37  : public IFDFile
38  {
39  public:
40  static RawFile *factory(IO::Stream *);
41  OrfFile(IO::Stream *);
42  virtual ~OrfFile();
43 
44  protected:
45  virtual IFDDir::Ref _locateCfaIfd();
46  virtual IFDDir::Ref _locateMainIfd();
47 
48  virtual ::or_error _getRawData(RawData & data, uint32_t options);
49  private:
50  static RawFile::TypeId _typeIdFromModel(const std::string & model);
51 
52  OrfFile(const OrfFile&);
53  OrfFile & operator=(const OrfFile &);
54 
55  static const IFDFile::camera_ids_t s_def[];
56  };
57  }
58 
59 }
60 
61 #endif