source: trunk/MagicSoft/Cosy/catalog/SaoFile.h@ 1986

Last change on this file since 1986 was 1109, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.8 KB
Line 
1#ifndef SAOFILE_H
2#define SAOFILE_H
3
4#include <TROOT.h>
5
6#include "coord.h"
7
8struct _sort
9{
10 int ra;
11 int dec;
12 int nr;
13};
14
15typedef struct _sort sort_t;
16
17class File;
18
19class SaoFile
20{
21private:
22 File *file;
23 int compressed;
24
25 char data[205];
26
27 int SAO;
28 char delFlag;
29 float Pmag;
30 float Vmag;
31 // int RA2000h;
32 // int RA2000m;
33 // float RA2000s;
34 float pmRA2000;
35 // char DE2000sgn;
36 // int DE2000d;
37 // int DE2000m;
38 float DE2000s;
39 float pmDE2000;
40 float RA2000rad;
41 float DE2000rad;
42
43 int fEntries;
44
45public:
46 SaoFile(const char *name);
47 virtual ~SaoFile();
48
49 void Compress();
50 void Sort();
51
52 int GetEntryNr() const;
53 int GetEntry(const int i);
54 void Reset() const;
55 int GetNextEntry();
56 void Print() const;
57
58 int GetNrOfEntries() const { return fEntries; }
59
60 int Nr() const { return SAO; }
61 int DelFlag() const { return delFlag=='D'; }
62 float MagP() const { return Pmag; }
63 float MagV() const { return Vmag; }
64 float Ra() const { return RA2000rad; }
65 float Dec() const { return DE2000rad; }
66 RaDec GetRaDec() const { return RaDec(RA2000rad, DE2000rad); }
67
68 float RaPm() const { return pmRA2000; }
69 float DecPm() const { return pmDE2000; }
70 RaDec GetRaDecPm() const { return RaDec(pmRA2000, pmDE2000); }
71
72
73 // char DecSgn() { return DE2000sgn; }
74 // int RaH() { return RA2000h; }
75 // int DecD() { return DE2000d; }
76 // int RaM() { return RA2000m; }
77 // int DecM() { return DE2000m; }
78 // float RaS() { return RA2000s; }
79 // float DecS() { return DE2000s; }
80
81 const char *String() const { return data; }
82
83 ClassDef(SaoFile, 0)
84};
85
86#endif
Note: See TracBrowser for help on using the repository browser.