CCfits  2.5
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  class Column;
20 
21 } // namespace CCfits
22 #include <map>
23 #include <sys/types.h>
24 #include "longnam.h"
25 #include "float.h"
26 
27 
28 namespace CCfits {
32  static const int BITPIX = -32;
33  static const int NAXIS = 2;
34  static const int MAXDIM = 99;
35  extern const unsigned long USBASE;
36  extern const unsigned long ULBASE;
37 
38  extern char BSCALE[7];
39  extern char BZERO[6];
40 
41 
42 
43  typedef enum {Read=READONLY,Write=READWRITE} RWmode;
44 
45 
81  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, VTstring=-TSTRING, VTushort=-TUSHORT,VTshort=-TSHORT,VTuint=-TUINT, VTint=-TINT,VTulong=-TULONG,VTlong=-TLONG,VTlonglong=-TLONGLONG,VTfloat=-TFLOAT,VTdouble=-TDOUBLE,VTcomplex=-TCOMPLEX,VTdblcomplex=-TDBLCOMPLEX} ValueType;
82 
83 
84 
85  typedef enum {AnyHdu=-1, ImageHdu, AsciiTbl, BinaryTbl} HduType;
86 
87 
88 
89  typedef enum {Inotype = 0, Ibyte=BYTE_IMG,
90  Ishort = SHORT_IMG,
91  Ilong = LONG_IMG,
92  Ifloat = FLOAT_IMG,
93  Idouble = DOUBLE_IMG,
94  Iushort = USHORT_IMG,
95  Iulong = ULONG_IMG,
96  Ilonglong = LONGLONG_IMG} ImageType;
97 
98 
99 
100  typedef std::string String;
101 
102 
103 
104  typedef std::multimap<String,CCfits::ExtHDU*> ExtMap;
105 
109  typedef std::multimap<std::string,CCfits::Column*> ColMap;
110 
111 
112 
113  typedef ExtMap::const_iterator ExtMapConstIt;
114 
115 
116 
117  typedef ExtMap::iterator ExtMapIt;
118 
119 } // namespace CCfits
120 
121 
122 #endif
Namespace enclosing all CCfits classes and globals definitions.
Definition: AsciiTable.cxx:26
ValueType
CCfits value types and their CFITSIO equivalents (in caps)
Definition: CCfits.h:81
std::multimap< std::string, CCfits::Column * > ColMap
Type definition for a table&#39;s column container.
Definition: CCfits.h:109