AstRawDark
Manage your astrophoto dark frames
 All Classes Functions Variables Enumerations Enumerator Pages
imageInfo.h
1 /*
2  * AstRawDark
3  *
4  * Copyright (C) 2015 - Frédéric CORNU
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 3 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, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef IMAGEINFO_H
21 #define IMAGEINFO_H
22 
23 #include <QString>
24 
28 class ImageInfo
29 {
30 public:
35  ImageInfo(const QString path);
36 
40  ImageInfo();
41 
46  ImageInfo(const ImageInfo& info);
47 
48 protected:
50  QString _path;
52  QString _make;
54  QString _model;
56  QString _cameraSerial;
58  int _exposure;
60  int _iso;
62  QString _date;
65 
66 public:
67 
69  static QString NOT_AVAILABLE;
70 
72  static const int UNDEFINED = -999;
73 
78  const QString getPath() const { return _path; }
79 
84  const QString getMake() const { return _make;}
85 
90  const QString getModel() const { return _model;}
91 
96  int getExposure() const { return _exposure;}
97 
102  int getIso() const { return _iso;}
103 
108  const QString getDate() const { return _date;}
109 
114  int getTemperature() const { return _temperature;}
115 
120  const QString getCameraSerial() const {return _cameraSerial;}
121 
126  void setPath (const QString path) { _path = path;}
127 
132  void setMake (const QString make) { _make = make;}
133 
138  void setModel (const QString model) { _model = model;}
139 
144  void setExposure (int exposure) { _exposure = exposure;}
145 
150  void setIso (int iso) { _iso = iso;}
151 
156  void setDate (const QString date) { _date = date;}
157 
162  void setTemperature (const int temperature) { _temperature = temperature;}
163 
168  void setCameraSerial(const QString serial) {_cameraSerial = serial;}
169 
170 };
171 
172 #endif // IMAGEINFO_H