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

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