gastro  0.1.0
 All Classes Files Functions Variables Pages
prefs.h
1 #ifndef PREFS__H
2 #define PREFS__H
3 
4 #include <iostream>
5 #include <string>
6 #include <stdlib.h>
7 
8 #define SE_CATALOG 1
9 #define APER_CATALOG 2
10 
13 
15 class Prefs
16 {
17  public :
18 
19  int distortionDegree;
20  int minMeasurementCount;
21  bool cleanMatches;
22  double initialMatchCut;
23  double usnoMatchCut;
24  double minSigToNoise;
25  std::string photomRefStuff;
26  std::string photomBand;
27  double zpRef;
28  int catalogToRead; // 1 = SEStar 2 = AperSEStar;
29  int aperRank; // only relevant for apercatalogs.
30 
31 
32  void ReadCards(const std::string &FileName);
33 
34  Prefs();
35 
36  void dump(std::ostream &s=cout) const;
37 
38  bool IsPhotomRef(const std::string &Name, double &Zp) const;
39 
40 };
41 
42 
43 void SetDataCardsFileName(const std::string &FileName);
44 
45 
46 Prefs &Preferences();
47 
48 
49 #endif /*PREFS__H */
a class to store datacards and user preferences
Definition: preferences.h:15