CCfits  2.4
CCfits.h
1 // Astrophysics Science Division,
2 // NASA/ Goddard Space Flight Center
3 // HEASARC
4 // http://heasarc.gsfc.nasa.gov
5 // e-mail: ccfits@legacy.gsfc.nasa.gov
6 //
7 // Original author: Ben Dorman
8 
9 #ifndef CCFITS_H
10 #define CCFITS_H 1
11 
12 // fitsio
13 #include "fitsio.h"
14 // string
15 #include <string>
16 
17 namespace CCfits {
18  class ExtHDU;
19 
20 } // namespace CCfits
21 #include <map>
22 #include <sys/types.h>
23 #include "longnam.h"
24 #include "float.h"
25 
26 
27 namespace CCfits {
31  static const int BITPIX = -32;
32  static const int NAXIS = 2;
33  static const int MAXDIM = 99;
34  extern const unsigned long USBASE;
35  extern const unsigned long ULBASE;
36 
37  extern char BSCALE[7];
38  extern char BZERO[6];
39 
40 
41 
42  typedef enum {Read=READONLY,Write=READWRITE} RWmode;
43 
44 
79  typedef enum {Tnull, Tbit = TBIT, Tbyte = TBYTE, Tlogical = TLOGICAL, Tstring = TSTRING, Tushort = TUSHORT, Tshort = TSHORT,Tuint = TUINT,Tint = TINT, Tulong = TULONG,Tlong = TLONG, Tlonglong = TLONGLONG, Tfloat = TFLOAT, Tdouble = TDOUBLE, Tcomplex = TCOMPLEX, Tdblcomplex=TDBLCOMPLEX, VTbit= -TBIT, VTbyte=-TBYTE,VTlogical=-Tlogical, VTushort=-TUSHORT,VTshort=-TSHORT,VTuint=-TUINT, VTint=-TINT,VTulong=-TULONG,VTlong=-TLONG,VTlonglong=-TLONGLONG,VTfloat=-TFLOAT,VTdouble=-TDOUBLE,VTcomplex=-TCOMPLEX,VTdblcomplex=-TDBLCOMPLEX} ValueType;
80 
81 
82 
83  typedef enum {AnyHdu=-1, ImageHdu, AsciiTbl, BinaryTbl} HduType;
84 
85 
86 
87  typedef enum {Inotype = 0, Ibyte=BYTE_IMG,
88  Ishort = SHORT_IMG,
89  Ilong = LONG_IMG,
90  Ifloat = FLOAT_IMG,
91  Idouble = DOUBLE_IMG,
92  Iushort = USHORT_IMG,
93  Iulong = ULONG_IMG} ImageType;
94 
95 
96 
97  typedef std::string String;
98 
99 
100 
101  typedef std::multimap<String,CCfits::ExtHDU*> ExtMap;
102 
103 
104 
105  typedef ExtMap::const_iterator ExtMapConstIt;
106 
107 
108 
109  typedef ExtMap::iterator ExtMapIt;
110 
111 } // namespace CCfits
112 
113 
114 #endif