]> git.datanom.net - lensdb.git/blob - lib/main.hpp
Fix collecting lens data
[lensdb.git] / lib / main.hpp
1 /*
2 * main.hpp
3 *
4 * Copyright 2024 Michael Rasmussen <mir@datanom.net>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program 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
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19 * MA 02110-1301, USA.
20 *
21 *
22 */
23
24
25 #ifndef _MAIN_HPP_
26 #define _MAIN_HPP_
27
28 #include <iostream>
29 #include <string>
30 #include <glib.h>
31 #include <gmodule.h>
32 #include "ExifTool.h"
33
34 class ExifScanner {
35 public:
36 ExifScanner(const char* file);
37 ~ExifScanner();
38
39 std::string get_maker();
40 std::string get_lens();
41 std::string get_serial_number();
42 std::string get_error();
43 gchar* get_cscring(std::string s);
44
45
46 private:
47 const gchar* file;
48 std::string error;
49 GHashTable* exif_tags;
50
51 void get_data_from_image();
52
53 };
54
55 #endif /* _MAIN_HPP_ */
This page took 0.801851 seconds and 6 git commands to generate.