libopenraw
cr2file.h
1 /*
2  * libopenraw - cr2file.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 __CR2FILE_H_
25 #define __CR2FILE_H_
26 
27 #include "ifdfile.h"
28 #include "rawfilefactory.h"
29 #include "ifdfilecontainer.h"
30 
31 namespace OpenRaw {
32 
33  class Thumbnail;
34 
35  namespace Internals {
36 
37  class Cr2File
38  : public IFDFile
39  {
40  public:
41  static RawFile *factory(IO::Stream * s);
42  Cr2File(IO::Stream *s);
43  virtual ~Cr2File();
44 
45  protected:
46  virtual IFDDir::Ref _locateCfaIfd();
47  virtual IFDDir::Ref _locateMainIfd();
48 
49  private:
50 
51  Cr2File(const Cr2File&);
52  Cr2File & operator=(const Cr2File&);
53 
54  virtual ::or_error _getRawData(RawData & data, uint32_t options);
55 
56  static const IFDFile::camera_ids_t s_def[];
57  };
58 
59  }
60 }
61 
62 #endif
generic IFD based raw file.
Definition: ifdfile.h:62
base virtual class for IO
Definition: stream.h:40