Changeset 2864 in Sophya for trunk/SophyaExt
- Timestamp:
- Jan 2, 2006, 2:47:44 PM (20 years ago)
- Location:
- trunk/SophyaExt/FitsIOServer
- Files:
-
- 2 added
- 1 deleted
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/Makefile
r2834 r2864 4 4 5 5 clean: 6 rm -f $(SOPHYAOBJP)datacirclefits.o $(SOPHYAOBJP)fabtcolread.o $(SOPHYAOBJP)fabtwriter.o $(SOPHYAOBJP)fboloread.o $(SOPHYAOBJP)fbtntintf.o $(SOPHYAOBJP)fi tsautoreader.o $(SOPHYAOBJP)fitsbntbllineRW.o $(SOPHYAOBJP)fitsfile.o $(SOPHYAOBJP)fitshdtable.o $(SOPHYAOBJP)fitsinoutfile.o $(SOPHYAOBJP)fitslocalmap.o $(SOPHYAOBJP)fitsmanager.o $(SOPHYAOBJP)fitsntuple.o $(SOPHYAOBJP)fitsspherehealpix.o $(SOPHYAOBJP)fitsspherethetaphi.o $(SOPHYAOBJP)fitsswapper.o $(SOPHYAOBJP)fitstarray.o $(SOPHYAOBJP)fitsxntuple.o6 rm -f $(SOPHYAOBJP)datacirclefits.o $(SOPHYAOBJP)fabtcolread.o $(SOPHYAOBJP)fabtwriter.o $(SOPHYAOBJP)fboloread.o $(SOPHYAOBJP)fbtntintf.o $(SOPHYAOBJP)fiosinit.o $(SOPHYAOBJP)fitsautoreader.o $(SOPHYAOBJP)fitsbntbllineRW.o $(SOPHYAOBJP)fitsfile.o $(SOPHYAOBJP)fitshdtable.o $(SOPHYAOBJP)fitsinoutfile.o $(SOPHYAOBJP)fitslocalmap.o $(SOPHYAOBJP)fitsmanager.o $(SOPHYAOBJP)fitsntuple.o $(SOPHYAOBJP)fitsspherehealpix.o $(SOPHYAOBJP)fitsspherethetaphi.o $(SOPHYAOBJP)fitstarray.o $(SOPHYAOBJP)fitsxntuple.o $(SOPHYAOBJP)swfitsdtable.o 7 7 rm -f $(SOPHYALIBP)libFitsIOServer.a 8 8 9 $(SOPHYALIBP)libFitsIOServer.a : $(SOPHYAOBJP)datacirclefits.o $(SOPHYAOBJP)fabtcolread.o $(SOPHYAOBJP)fabtwriter.o $(SOPHYAOBJP)fboloread.o $(SOPHYAOBJP)fbtntintf.o $(SOPHYAOBJP)fi tsautoreader.o $(SOPHYAOBJP)fitsbntbllineRW.o $(SOPHYAOBJP)fitsfile.o $(SOPHYAOBJP)fitshdtable.o $(SOPHYAOBJP)fitsinoutfile.o $(SOPHYAOBJP)fitslocalmap.o $(SOPHYAOBJP)fitsmanager.o $(SOPHYAOBJP)fitsntuple.o $(SOPHYAOBJP)fitsspherehealpix.o $(SOPHYAOBJP)fitsspherethetaphi.o $(SOPHYAOBJP)fitsswapper.o $(SOPHYAOBJP)fitstarray.o $(SOPHYAOBJP)fitsxntuple.o9 $(SOPHYALIBP)libFitsIOServer.a : $(SOPHYAOBJP)datacirclefits.o $(SOPHYAOBJP)fabtcolread.o $(SOPHYAOBJP)fabtwriter.o $(SOPHYAOBJP)fboloread.o $(SOPHYAOBJP)fbtntintf.o $(SOPHYAOBJP)fiosinit.o $(SOPHYAOBJP)fitsautoreader.o $(SOPHYAOBJP)fitsbntbllineRW.o $(SOPHYAOBJP)fitsfile.o $(SOPHYAOBJP)fitshdtable.o $(SOPHYAOBJP)fitsinoutfile.o $(SOPHYAOBJP)fitslocalmap.o $(SOPHYAOBJP)fitsmanager.o $(SOPHYAOBJP)fitsntuple.o $(SOPHYAOBJP)fitsspherehealpix.o $(SOPHYAOBJP)fitsspherethetaphi.o $(SOPHYAOBJP)fitstarray.o $(SOPHYAOBJP)fitsxntuple.o $(SOPHYAOBJP)swfitsdtable.o 10 10 $(AR) $(ARFLAGS) $@ $? 11 11 touch $(SOPHYAINCP)/SophyaConfInfo/libextsophya.objlist 12 12 13 $(SOPHYAOBJP)datacirclefits.o: datacirclefits.cc \ 14 $(SOPHYAINCP)sopnamsp.h datacirclefits.h \ 15 $(SOPHYAINCP)datacirclebase.h \ 16 $(SOPHYAINCP)circle.h \ 17 $(SOPHYAINCP)vector3d.h \ 13 $(SOPHYAOBJP)datacirclefits.o: datacirclefits.cc $(SOPHYAINCP)sopnamsp.h \ 14 datacirclefits.h $(SOPHYAINCP)datacirclebase.h \ 15 $(SOPHYAINCP)circle.h $(SOPHYAINCP)vector3d.h \ 18 16 $(SOPHYAINCP)longlat.h \ 19 17 $(SOPHYAINCP)machdefs.h \ 18 $(SOPHYAINCP)osx_values.h \ 20 19 $(SOPHYAINCP)utilgeom.h \ 21 20 $(SOPHYAINCP)unitvector.h \ … … 25 24 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ datacirclefits.cc 26 25 27 $(SOPHYAOBJP)fabtcolread.o: fabtcolread.cc \28 $(SOPHYAINCP) sopnamsp.h \29 $(SOPHYAINCP) machdefs.h \26 $(SOPHYAOBJP)fabtcolread.o: fabtcolread.cc $(SOPHYAINCP)sopnamsp.h \ 27 $(SOPHYAINCP)machdefs.h \ 28 $(SOPHYAINCP)osx_values.h \ 30 29 $(SOPHYAINCP)pexceptions.h fabtcolread.h \ 31 30 $(SOPHYAINCP)anydataobj.h \ 32 $(SOPHYAINCP)tvector.h \ 33 $(SOPHYAINCP)tmatrix.h \ 34 $(SOPHYAINCP)tarray.h \ 35 $(SOPHYAINCP)basarr.h \ 36 $(SOPHYAINCP)mutyv.h \ 37 $(SOPHYAINCP)timestamp.h \ 38 $(SOPHYAINCP)objfio.h \ 39 $(SOPHYAINCP)ppersist.h \ 31 $(SOPHYAINCP)tvector.h $(SOPHYAINCP)tmatrix.h \ 32 $(SOPHYAINCP)tarray.h $(SOPHYAINCP)basarr.h \ 33 $(SOPHYAINCP)mutyv.h $(SOPHYAINCP)timestamp.h \ 34 $(SOPHYAINCP)objfio.h $(SOPHYAINCP)ppersist.h \ 40 35 $(SOPHYAINCP)gnumd5.h \ 41 36 $(SOPHYAINCP)ppfbinstream.h \ … … 49 44 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ fabtcolread.cc 50 45 51 $(SOPHYAOBJP)fabtwriter.o: fabtwriter.cc \52 $(SOPHYAINCP) sopnamsp.h \53 $(SOPHYAINCP) machdefs.h \46 $(SOPHYAOBJP)fabtwriter.o: fabtwriter.cc $(SOPHYAINCP)sopnamsp.h \ 47 $(SOPHYAINCP)machdefs.h \ 48 $(SOPHYAINCP)osx_values.h \ 54 49 $(SOPHYAINCP)pexceptions.h fabtwriter.h \ 55 50 $(SOPHYAINCP)anydataobj.h \ 56 $(SOPHYAINCP)tvector.h \ 57 $(SOPHYAINCP)tmatrix.h \ 58 $(SOPHYAINCP)tarray.h \ 59 $(SOPHYAINCP)basarr.h \ 60 $(SOPHYAINCP)mutyv.h \ 61 $(SOPHYAINCP)timestamp.h \ 62 $(SOPHYAINCP)objfio.h \ 63 $(SOPHYAINCP)ppersist.h \ 51 $(SOPHYAINCP)tvector.h $(SOPHYAINCP)tmatrix.h \ 52 $(SOPHYAINCP)tarray.h $(SOPHYAINCP)basarr.h \ 53 $(SOPHYAINCP)mutyv.h $(SOPHYAINCP)timestamp.h \ 54 $(SOPHYAINCP)objfio.h $(SOPHYAINCP)ppersist.h \ 64 55 $(SOPHYAINCP)gnumd5.h \ 65 56 $(SOPHYAINCP)ppfbinstream.h \ … … 73 64 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ fabtwriter.cc 74 65 75 $(SOPHYAOBJP)fboloread.o: fboloread.cc \76 $(SOPHYAINCP) sopnamsp.h \77 $(SOPHYAINCP) machdefs.h \66 $(SOPHYAOBJP)fboloread.o: fboloread.cc $(SOPHYAINCP)sopnamsp.h \ 67 $(SOPHYAINCP)machdefs.h \ 68 $(SOPHYAINCP)osx_values.h \ 78 69 $(SOPHYAINCP)pexceptions.h fboloread.h \ 79 70 $(SOPHYAINCP)anydataobj.h \ 80 $(SOPHYAINCP)tvector.h \ 81 $(SOPHYAINCP)tmatrix.h \ 82 $(SOPHYAINCP)tarray.h \ 83 $(SOPHYAINCP)basarr.h \ 84 $(SOPHYAINCP)mutyv.h \ 85 $(SOPHYAINCP)timestamp.h \ 86 $(SOPHYAINCP)objfio.h \ 87 $(SOPHYAINCP)ppersist.h \ 71 $(SOPHYAINCP)tvector.h $(SOPHYAINCP)tmatrix.h \ 72 $(SOPHYAINCP)tarray.h $(SOPHYAINCP)basarr.h \ 73 $(SOPHYAINCP)mutyv.h $(SOPHYAINCP)timestamp.h \ 74 $(SOPHYAINCP)objfio.h $(SOPHYAINCP)ppersist.h \ 88 75 $(SOPHYAINCP)gnumd5.h \ 89 76 $(SOPHYAINCP)ppfbinstream.h \ … … 97 84 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ fboloread.cc 98 85 99 $(SOPHYAOBJP)fbtntintf.o: fbtntintf.cc \100 $(SOPHYAINCP) sopnamsp.h \101 $(SOPHYAINCP) machdefs.h \86 $(SOPHYAOBJP)fbtntintf.o: fbtntintf.cc $(SOPHYAINCP)sopnamsp.h \ 87 $(SOPHYAINCP)machdefs.h \ 88 $(SOPHYAINCP)osx_values.h \ 102 89 $(SOPHYAINCP)pexceptions.h fbtntintf.h \ 103 90 $(SOPHYAINCP)anydataobj.h \ … … 107 94 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ fbtntintf.cc 108 95 109 $(SOPHYAOBJP)fitsautoreader.o: fitsautoreader.cc \ 110 $(SOPHYAINCP)sopnamsp.h \ 111 $(SOPHYAINCP)pexceptions.h \ 112 $(SOPHYAINCP)machdefs.h fitsautoreader.h \ 96 $(SOPHYAOBJP)fiosinit.o: fiosinit.cc $(SOPHYAINCP)sopnamsp.h \ 97 $(SOPHYAINCP)machdefs.h \ 98 $(SOPHYAINCP)osx_values.h fiosinit.h \ 99 $(SOPHYAINCP)sophyainit.h fitsmanager.h fitsinoutfile.h \ 100 $(SOPHYAINCP)pexceptions.h \ 101 $(SOPHYAINCP)dvlist.h $(SOPHYAINCP)objfio.h \ 102 $(SOPHYAINCP)anydataobj.h \ 103 $(SOPHYAINCP)ppersist.h $(SOPHYAINCP)gnumd5.h \ 104 $(SOPHYAINCP)ppfbinstream.h \ 105 $(SOPHYAINCP)rawstream.h \ 106 $(SOPHYAINCP)ppfnametag.h \ 107 $(SOPHYAINCP)mutyv.h $(SOPHYAINCP)timestamp.h \ 108 $(SOPHYAINCP)FitsIO/fitsio.h \ 109 $(SOPHYAINCP)FitsIO/longnam.h fitshdtable.h \ 110 $(SOPHYAINCP)datatable.h \ 111 $(SOPHYAINCP)basedtable.h \ 112 $(SOPHYAINCP)ntupintf.h \ 113 $(SOPHYAINCP)segdatablock.h \ 114 $(SOPHYAINCP)tvector.h $(SOPHYAINCP)tmatrix.h \ 115 $(SOPHYAINCP)tarray.h $(SOPHYAINCP)basarr.h \ 116 $(SOPHYAINCP)ndatablock.h \ 117 $(SOPHYAINCP)utilarr.h fitshandler.h fitsarrhand.h \ 118 fitsblkrw.h 119 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ fiosinit.cc 120 121 $(SOPHYAOBJP)fitsautoreader.o: fitsautoreader.cc $(SOPHYAINCP)sopnamsp.h \ 122 $(SOPHYAINCP)pexceptions.h \ 123 $(SOPHYAINCP)machdefs.h \ 124 $(SOPHYAINCP)osx_values.h fitsautoreader.h \ 113 125 $(SOPHYAINCP)anydataobj.h fitsfile.h \ 114 126 $(SOPHYAINCP)ndatablock.h \ 115 $(SOPHYAINCP)dvlist.h \ 116 $(SOPHYAINCP)objfio.h \ 117 $(SOPHYAINCP)ppersist.h \ 118 $(SOPHYAINCP)gnumd5.h \ 119 $(SOPHYAINCP)ppfbinstream.h \ 120 $(SOPHYAINCP)rawstream.h \ 121 $(SOPHYAINCP)ppfnametag.h \ 122 $(SOPHYAINCP)mutyv.h \ 123 $(SOPHYAINCP)timestamp.h \ 124 $(SOPHYAINCP)FitsIO/fitsio.h \ 127 $(SOPHYAINCP)dvlist.h $(SOPHYAINCP)objfio.h \ 128 $(SOPHYAINCP)ppersist.h $(SOPHYAINCP)gnumd5.h \ 129 $(SOPHYAINCP)ppfbinstream.h \ 130 $(SOPHYAINCP)rawstream.h \ 131 $(SOPHYAINCP)ppfnametag.h \ 132 $(SOPHYAINCP)mutyv.h $(SOPHYAINCP)timestamp.h \ 133 fitsinoutfile.h $(SOPHYAINCP)FitsIO/fitsio.h \ 125 134 $(SOPHYAINCP)FitsIO/longnam.h fitstarray.h \ 126 $(SOPHYAINCP)tarray.h \ 127 $(SOPHYAINCP)basarr.h \ 135 $(SOPHYAINCP)tarray.h $(SOPHYAINCP)basarr.h \ 128 136 $(SOPHYAINCP)utilarr.h fitsspherehealpix.h \ 129 137 $(SOPHYAINCP)spherehealpix.h \ … … 136 144 $(SOPHYAINCP)longlat.h \ 137 145 $(SOPHYAINCP)utilgeom.h \ 138 $(SOPHYAINCP)tvector.h \ 139 $(SOPHYAINCP)tmatrix.h \ 146 $(SOPHYAINCP)tvector.h $(SOPHYAINCP)tmatrix.h \ 140 147 $(SOPHYAINCP)HEALPixUtils.h fitsntuple.h \ 141 $(SOPHYAINCP)ntuple.h \ 142 $(SOPHYAINCP)ntupintf.h fitsxntuple.h \ 143 $(SOPHYAINCP)xntuple.h fitslocalmap.h \ 148 $(SOPHYAINCP)ntuple.h $(SOPHYAINCP)ntupintf.h \ 149 fitsxntuple.h $(SOPHYAINCP)xntuple.h fitslocalmap.h \ 144 150 $(SOPHYAINCP)localmap.h fbtntintf.h 145 151 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ fitsautoreader.cc … … 148 154 $(SOPHYAINCP)sopnamsp.h \ 149 155 $(SOPHYAINCP)pexceptions.h \ 150 $(SOPHYAINCP)machdefs.h fitsbntbllineRW.h \ 151 $(SOPHYAINCP)dvlist.h \ 152 $(SOPHYAINCP)objfio.h \ 153 $(SOPHYAINCP)anydataobj.h \ 154 $(SOPHYAINCP)ppersist.h \ 155 $(SOPHYAINCP)gnumd5.h \ 156 $(SOPHYAINCP)ppfbinstream.h \ 157 $(SOPHYAINCP)rawstream.h \ 158 $(SOPHYAINCP)ppfnametag.h \ 159 $(SOPHYAINCP)mutyv.h \ 160 $(SOPHYAINCP)timestamp.h fitsfile.h \ 161 $(SOPHYAINCP)ndatablock.h \ 156 $(SOPHYAINCP)machdefs.h \ 157 $(SOPHYAINCP)osx_values.h fitsbntbllineRW.h \ 158 $(SOPHYAINCP)dvlist.h $(SOPHYAINCP)objfio.h \ 159 $(SOPHYAINCP)anydataobj.h \ 160 $(SOPHYAINCP)ppersist.h $(SOPHYAINCP)gnumd5.h \ 161 $(SOPHYAINCP)ppfbinstream.h \ 162 $(SOPHYAINCP)rawstream.h \ 163 $(SOPHYAINCP)ppfnametag.h \ 164 $(SOPHYAINCP)mutyv.h $(SOPHYAINCP)timestamp.h \ 165 fitsfile.h $(SOPHYAINCP)ndatablock.h fitsinoutfile.h \ 162 166 $(SOPHYAINCP)FitsIO/fitsio.h \ 163 167 $(SOPHYAINCP)FitsIO/longnam.h \ … … 165 169 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ fitsbntbllineRW.cc 166 170 167 $(SOPHYAOBJP)fitsfile.o: fitsfile.cc \ 168 $(SOPHYAINCP)sopnamsp.h \ 169 $(SOPHYAINCP)machdefs.h fitsfile.h \ 170 $(SOPHYAINCP)ndatablock.h \ 171 $(SOPHYAINCP)anydataobj.h \ 172 $(SOPHYAINCP)dvlist.h \ 173 $(SOPHYAINCP)objfio.h \ 171 $(SOPHYAOBJP)fitsfile.o: fitsfile.cc $(SOPHYAINCP)sopnamsp.h \ 172 $(SOPHYAINCP)machdefs.h \ 173 $(SOPHYAINCP)osx_values.h fitsfile.h \ 174 $(SOPHYAINCP)ndatablock.h \ 175 $(SOPHYAINCP)anydataobj.h \ 176 $(SOPHYAINCP)dvlist.h $(SOPHYAINCP)objfio.h \ 174 177 $(SOPHYAINCP)ppersist.h \ 175 178 $(SOPHYAINCP)pexceptions.h \ … … 178 181 $(SOPHYAINCP)rawstream.h \ 179 182 $(SOPHYAINCP)ppfnametag.h \ 180 $(SOPHYAINCP)mutyv.h \ 181 $(SOPHYAINCP)timestamp.h \ 182 $(SOPHYAINCP)FitsIO/fitsio.h \ 183 $(SOPHYAINCP)mutyv.h $(SOPHYAINCP)timestamp.h \ 184 fitsinoutfile.h $(SOPHYAINCP)FitsIO/fitsio.h \ 183 185 $(SOPHYAINCP)FitsIO/longnam.h \ 184 $(SOPHYAINCP)strutil.h fitsspherehealpix.h \ 185 $(SOPHYAINCP)spherehealpix.h \ 186 $(SOPHYAINCP)sphericalmap.h \ 187 $(SOPHYAINCP)smathconst.h \ 188 $(SOPHYAINCP)pixelmap.h \ 189 $(SOPHYAINCP)spherepos.h \ 190 $(SOPHYAINCP)unitvector.h \ 191 $(SOPHYAINCP)vector3d.h \ 192 $(SOPHYAINCP)longlat.h \ 193 $(SOPHYAINCP)utilgeom.h \ 194 $(SOPHYAINCP)tvector.h \ 195 $(SOPHYAINCP)tmatrix.h \ 196 $(SOPHYAINCP)tarray.h \ 197 $(SOPHYAINCP)basarr.h \ 198 $(SOPHYAINCP)utilarr.h \ 199 $(SOPHYAINCP)HEALPixUtils.h 186 $(SOPHYAINCP)strutil.h 200 187 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ fitsfile.cc 201 188 202 $(SOPHYAOBJP)fitshdtable.o: fitshdtable.cc \203 $(SOPHYAINCP) machdefs.h \189 $(SOPHYAOBJP)fitshdtable.o: fitshdtable.cc $(SOPHYAINCP)machdefs.h \ 190 $(SOPHYAINCP)osx_values.h \ 204 191 $(SOPHYAINCP)sopnamsp.h \ 205 192 $(SOPHYAINCP)datatable.h \ 206 193 $(SOPHYAINCP)basedtable.h \ 207 $(SOPHYAINCP)ntupintf.h \ 208 $(SOPHYAINCP)dvlist.h \ 194 $(SOPHYAINCP)ntupintf.h $(SOPHYAINCP)dvlist.h \ 209 195 $(SOPHYAINCP)objfio.h \ 210 196 $(SOPHYAINCP)anydataobj.h \ … … 215 201 $(SOPHYAINCP)rawstream.h \ 216 202 $(SOPHYAINCP)ppfnametag.h \ 217 $(SOPHYAINCP)mutyv.h \ 218 $(SOPHYAINCP)timestamp.h \ 203 $(SOPHYAINCP)mutyv.h $(SOPHYAINCP)timestamp.h \ 219 204 $(SOPHYAINCP)segdatablock.h \ 220 $(SOPHYAINCP)tvector.h \ 221 $(SOPHYAINCP)tmatrix.h \ 222 $(SOPHYAINCP)tarray.h \ 223 $(SOPHYAINCP)basarr.h \ 224 $(SOPHYAINCP)ndatablock.h \ 225 $(SOPHYAINCP)utilarr.h fitsblkrw.h \ 226 fitsinoutfile.h \ 205 $(SOPHYAINCP)tvector.h $(SOPHYAINCP)tmatrix.h \ 206 $(SOPHYAINCP)tarray.h $(SOPHYAINCP)basarr.h \ 207 $(SOPHYAINCP)ndatablock.h \ 208 $(SOPHYAINCP)utilarr.h fitsblkrw.h fitsinoutfile.h \ 227 209 $(SOPHYAINCP)FitsIO/fitsio.h \ 228 210 $(SOPHYAINCP)FitsIO/longnam.h fitshandler.h 229 211 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ fitshdtable.cc 230 212 231 $(SOPHYAOBJP)fitsinoutfile.o: fitsinoutfile.cc \232 $(SOPHYAINCP) sopnamsp.h \233 $(SOPHYAINCP) machdefs.h \213 $(SOPHYAOBJP)fitsinoutfile.o: fitsinoutfile.cc $(SOPHYAINCP)sopnamsp.h \ 214 $(SOPHYAINCP)machdefs.h \ 215 $(SOPHYAINCP)osx_values.h \ 234 216 $(SOPHYAINCP)segdatablock.h \ 235 217 $(SOPHYAINCP)anydataobj.h fitsinoutfile.h \ 236 218 $(SOPHYAINCP)pexceptions.h \ 237 $(SOPHYAINCP)dvlist.h \ 238 $(SOPHYAINCP)objfio.h \ 239 $(SOPHYAINCP)ppersist.h \ 240 $(SOPHYAINCP)gnumd5.h \ 241 $(SOPHYAINCP)ppfbinstream.h \ 242 $(SOPHYAINCP)rawstream.h \ 243 $(SOPHYAINCP)ppfnametag.h \ 244 $(SOPHYAINCP)mutyv.h \ 245 $(SOPHYAINCP)timestamp.h \ 219 $(SOPHYAINCP)dvlist.h $(SOPHYAINCP)objfio.h \ 220 $(SOPHYAINCP)ppersist.h $(SOPHYAINCP)gnumd5.h \ 221 $(SOPHYAINCP)ppfbinstream.h \ 222 $(SOPHYAINCP)rawstream.h \ 223 $(SOPHYAINCP)ppfnametag.h \ 224 $(SOPHYAINCP)mutyv.h $(SOPHYAINCP)timestamp.h \ 246 225 $(SOPHYAINCP)FitsIO/fitsio.h \ 247 226 $(SOPHYAINCP)FitsIO/longnam.h 248 227 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ fitsinoutfile.cc 249 228 250 $(SOPHYAOBJP)fitslocalmap.o: fitslocalmap.cc \251 $(SOPHYAINCP) sopnamsp.h \252 $(SOPHYAINCP) machdefs.h fitslocalmap.h \229 $(SOPHYAOBJP)fitslocalmap.o: fitslocalmap.cc $(SOPHYAINCP)sopnamsp.h \ 230 $(SOPHYAINCP)machdefs.h \ 231 $(SOPHYAINCP)osx_values.h fitslocalmap.h \ 253 232 $(SOPHYAINCP)pexceptions.h \ 254 233 $(SOPHYAINCP)localmap.h \ 255 234 $(SOPHYAINCP)pixelmap.h \ 256 $(SOPHYAINCP)ppersist.h \ 257 $(SOPHYAINCP)gnumd5.h \ 258 $(SOPHYAINCP)ppfbinstream.h \ 259 $(SOPHYAINCP)rawstream.h \ 260 $(SOPHYAINCP)ppfnametag.h \ 261 $(SOPHYAINCP)dvlist.h \ 262 $(SOPHYAINCP)objfio.h \ 263 $(SOPHYAINCP)anydataobj.h \ 264 $(SOPHYAINCP)mutyv.h \ 265 $(SOPHYAINCP)timestamp.h \ 235 $(SOPHYAINCP)ppersist.h $(SOPHYAINCP)gnumd5.h \ 236 $(SOPHYAINCP)ppfbinstream.h \ 237 $(SOPHYAINCP)rawstream.h \ 238 $(SOPHYAINCP)ppfnametag.h \ 239 $(SOPHYAINCP)dvlist.h $(SOPHYAINCP)objfio.h \ 240 $(SOPHYAINCP)anydataobj.h \ 241 $(SOPHYAINCP)mutyv.h $(SOPHYAINCP)timestamp.h \ 266 242 $(SOPHYAINCP)spherepos.h \ 267 243 $(SOPHYAINCP)unitvector.h \ … … 271 247 $(SOPHYAINCP)sphericalmap.h \ 272 248 $(SOPHYAINCP)smathconst.h \ 273 $(SOPHYAINCP)tvector.h \ 274 $(SOPHYAINCP)tmatrix.h \ 275 $(SOPHYAINCP)tarray.h \ 276 $(SOPHYAINCP)basarr.h \ 277 $(SOPHYAINCP)ndatablock.h \ 278 $(SOPHYAINCP)utilarr.h fitsfile.h \ 249 $(SOPHYAINCP)tvector.h $(SOPHYAINCP)tmatrix.h \ 250 $(SOPHYAINCP)tarray.h $(SOPHYAINCP)basarr.h \ 251 $(SOPHYAINCP)ndatablock.h \ 252 $(SOPHYAINCP)utilarr.h fitsfile.h fitsinoutfile.h \ 279 253 $(SOPHYAINCP)FitsIO/fitsio.h \ 280 254 $(SOPHYAINCP)FitsIO/longnam.h 281 255 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ fitslocalmap.cc 282 256 283 $(SOPHYAOBJP)fitsmanager.o: fitsmanager.cc \ 284 $(SOPHYAINCP)machdefs.h \ 285 $(SOPHYAINCP)sopnamsp.h fitsmanager.h \ 286 fitsinoutfile.h $(SOPHYAINCP)pexceptions.h \ 287 $(SOPHYAINCP)dvlist.h \ 288 $(SOPHYAINCP)objfio.h \ 289 $(SOPHYAINCP)anydataobj.h \ 290 $(SOPHYAINCP)ppersist.h \ 291 $(SOPHYAINCP)gnumd5.h \ 292 $(SOPHYAINCP)ppfbinstream.h \ 293 $(SOPHYAINCP)rawstream.h \ 294 $(SOPHYAINCP)ppfnametag.h \ 295 $(SOPHYAINCP)mutyv.h \ 296 $(SOPHYAINCP)timestamp.h \ 257 $(SOPHYAOBJP)fitsmanager.o: fitsmanager.cc $(SOPHYAINCP)machdefs.h \ 258 $(SOPHYAINCP)osx_values.h \ 259 $(SOPHYAINCP)sopnamsp.h fitsmanager.h fitsinoutfile.h \ 260 $(SOPHYAINCP)pexceptions.h \ 261 $(SOPHYAINCP)dvlist.h $(SOPHYAINCP)objfio.h \ 262 $(SOPHYAINCP)anydataobj.h \ 263 $(SOPHYAINCP)ppersist.h $(SOPHYAINCP)gnumd5.h \ 264 $(SOPHYAINCP)ppfbinstream.h \ 265 $(SOPHYAINCP)rawstream.h \ 266 $(SOPHYAINCP)ppfnametag.h \ 267 $(SOPHYAINCP)mutyv.h $(SOPHYAINCP)timestamp.h \ 297 268 $(SOPHYAINCP)FitsIO/fitsio.h \ 298 269 $(SOPHYAINCP)FitsIO/longnam.h fitshandler.h 299 270 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ fitsmanager.cc 300 271 301 $(SOPHYAOBJP)fitsntuple.o: fitsntuple.cc \ 302 $(SOPHYAINCP)sopnamsp.h \ 303 $(SOPHYAINCP)pexceptions.h \ 304 $(SOPHYAINCP)machdefs.h fitsntuple.h \ 305 $(SOPHYAINCP)ntuple.h \ 306 $(SOPHYAINCP)objfio.h \ 307 $(SOPHYAINCP)anydataobj.h \ 308 $(SOPHYAINCP)ppersist.h \ 309 $(SOPHYAINCP)gnumd5.h \ 310 $(SOPHYAINCP)ppfbinstream.h \ 311 $(SOPHYAINCP)rawstream.h \ 312 $(SOPHYAINCP)ppfnametag.h \ 313 $(SOPHYAINCP)ntupintf.h \ 314 $(SOPHYAINCP)dvlist.h \ 315 $(SOPHYAINCP)mutyv.h \ 316 $(SOPHYAINCP)timestamp.h fitsfile.h \ 317 $(SOPHYAINCP)ndatablock.h \ 272 $(SOPHYAOBJP)fitsntuple.o: fitsntuple.cc $(SOPHYAINCP)sopnamsp.h \ 273 $(SOPHYAINCP)pexceptions.h \ 274 $(SOPHYAINCP)machdefs.h \ 275 $(SOPHYAINCP)osx_values.h fitsntuple.h \ 276 $(SOPHYAINCP)ntuple.h $(SOPHYAINCP)objfio.h \ 277 $(SOPHYAINCP)anydataobj.h \ 278 $(SOPHYAINCP)ppersist.h $(SOPHYAINCP)gnumd5.h \ 279 $(SOPHYAINCP)ppfbinstream.h \ 280 $(SOPHYAINCP)rawstream.h \ 281 $(SOPHYAINCP)ppfnametag.h \ 282 $(SOPHYAINCP)ntupintf.h $(SOPHYAINCP)dvlist.h \ 283 $(SOPHYAINCP)mutyv.h $(SOPHYAINCP)timestamp.h \ 284 fitsfile.h $(SOPHYAINCP)ndatablock.h fitsinoutfile.h \ 318 285 $(SOPHYAINCP)FitsIO/fitsio.h \ 319 286 $(SOPHYAINCP)FitsIO/longnam.h … … 323 290 $(SOPHYAINCP)sopnamsp.h \ 324 291 $(SOPHYAINCP)pexceptions.h \ 325 $(SOPHYAINCP)machdefs.h fitsspherehealpix.h \ 292 $(SOPHYAINCP)machdefs.h \ 293 $(SOPHYAINCP)osx_values.h fitsspherehealpix.h \ 326 294 $(SOPHYAINCP)spherehealpix.h \ 327 295 $(SOPHYAINCP)sphericalmap.h \ 328 296 $(SOPHYAINCP)smathconst.h \ 329 297 $(SOPHYAINCP)pixelmap.h \ 330 $(SOPHYAINCP)ppersist.h \ 331 $(SOPHYAINCP)gnumd5.h \ 332 $(SOPHYAINCP)ppfbinstream.h \ 333 $(SOPHYAINCP)rawstream.h \ 334 $(SOPHYAINCP)ppfnametag.h \ 335 $(SOPHYAINCP)dvlist.h \ 336 $(SOPHYAINCP)objfio.h \ 337 $(SOPHYAINCP)anydataobj.h \ 338 $(SOPHYAINCP)mutyv.h \ 339 $(SOPHYAINCP)timestamp.h \ 298 $(SOPHYAINCP)ppersist.h $(SOPHYAINCP)gnumd5.h \ 299 $(SOPHYAINCP)ppfbinstream.h \ 300 $(SOPHYAINCP)rawstream.h \ 301 $(SOPHYAINCP)ppfnametag.h \ 302 $(SOPHYAINCP)dvlist.h $(SOPHYAINCP)objfio.h \ 303 $(SOPHYAINCP)anydataobj.h \ 304 $(SOPHYAINCP)mutyv.h $(SOPHYAINCP)timestamp.h \ 340 305 $(SOPHYAINCP)spherepos.h \ 341 306 $(SOPHYAINCP)unitvector.h \ … … 343 308 $(SOPHYAINCP)longlat.h \ 344 309 $(SOPHYAINCP)utilgeom.h \ 345 $(SOPHYAINCP)tvector.h \ 346 $(SOPHYAINCP)tmatrix.h \ 347 $(SOPHYAINCP)tarray.h \ 348 $(SOPHYAINCP)basarr.h \ 310 $(SOPHYAINCP)tvector.h $(SOPHYAINCP)tmatrix.h \ 311 $(SOPHYAINCP)tarray.h $(SOPHYAINCP)basarr.h \ 349 312 $(SOPHYAINCP)ndatablock.h \ 350 313 $(SOPHYAINCP)utilarr.h \ 351 $(SOPHYAINCP)HEALPixUtils.h fitsfile.h \314 $(SOPHYAINCP)HEALPixUtils.h fitsfile.h fitsinoutfile.h \ 352 315 $(SOPHYAINCP)FitsIO/fitsio.h \ 353 316 $(SOPHYAINCP)FitsIO/longnam.h fitstarray.h … … 358 321 $(SOPHYAINCP)pexceptions.h \ 359 322 $(SOPHYAINCP)machdefs.h \ 360 fitsspherethetaphi.h \323 $(SOPHYAINCP)osx_values.h fitsspherethetaphi.h \ 361 324 $(SOPHYAINCP)spherethetaphi.h \ 362 325 $(SOPHYAINCP)sphericalmap.h \ 363 326 $(SOPHYAINCP)smathconst.h \ 364 327 $(SOPHYAINCP)pixelmap.h \ 365 $(SOPHYAINCP)ppersist.h \ 366 $(SOPHYAINCP)gnumd5.h \ 367 $(SOPHYAINCP)ppfbinstream.h \ 368 $(SOPHYAINCP)rawstream.h \ 369 $(SOPHYAINCP)ppfnametag.h \ 370 $(SOPHYAINCP)dvlist.h \ 371 $(SOPHYAINCP)objfio.h \ 372 $(SOPHYAINCP)anydataobj.h \ 373 $(SOPHYAINCP)mutyv.h \ 374 $(SOPHYAINCP)timestamp.h \ 328 $(SOPHYAINCP)ppersist.h $(SOPHYAINCP)gnumd5.h \ 329 $(SOPHYAINCP)ppfbinstream.h \ 330 $(SOPHYAINCP)rawstream.h \ 331 $(SOPHYAINCP)ppfnametag.h \ 332 $(SOPHYAINCP)dvlist.h $(SOPHYAINCP)objfio.h \ 333 $(SOPHYAINCP)anydataobj.h \ 334 $(SOPHYAINCP)mutyv.h $(SOPHYAINCP)timestamp.h \ 375 335 $(SOPHYAINCP)spherepos.h \ 376 336 $(SOPHYAINCP)unitvector.h \ … … 378 338 $(SOPHYAINCP)longlat.h \ 379 339 $(SOPHYAINCP)utilgeom.h \ 380 $(SOPHYAINCP)tvector.h \ 381 $(SOPHYAINCP)tmatrix.h \ 382 $(SOPHYAINCP)tarray.h \ 383 $(SOPHYAINCP)basarr.h \ 384 $(SOPHYAINCP)ndatablock.h \ 385 $(SOPHYAINCP)utilarr.h fitsfile.h \ 340 $(SOPHYAINCP)tvector.h $(SOPHYAINCP)tmatrix.h \ 341 $(SOPHYAINCP)tarray.h $(SOPHYAINCP)basarr.h \ 342 $(SOPHYAINCP)ndatablock.h \ 343 $(SOPHYAINCP)utilarr.h fitsfile.h fitsinoutfile.h \ 386 344 $(SOPHYAINCP)FitsIO/fitsio.h \ 387 345 $(SOPHYAINCP)FitsIO/longnam.h fitstarray.h 388 346 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ fitsspherethetaphi.cc 389 347 390 $(SOPHYAOBJP)fitsswapper.o: fitsswapper.cc fitsswapper.h \ 391 $(SOPHYAINCP)machdefs.h \ 392 $(SOPHYAINCP)swsegdb.h \ 393 $(SOPHYAINCP)segdatablock.h \ 394 $(SOPHYAINCP)anydataobj.h \ 395 $(SOPHYAINCP)pexceptions.h \ 396 $(SOPHYAINCP)FitsIO/fitsio.h \ 397 $(SOPHYAINCP)FitsIO/longnam.h \ 398 $(SOPHYAINCP)sopnamsp.h 399 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ fitsswapper.cc 400 401 $(SOPHYAOBJP)fitstarray.o: fitstarray.cc \ 402 $(SOPHYAINCP)sopnamsp.h \ 403 $(SOPHYAINCP)machdefs.h \ 348 $(SOPHYAOBJP)fitstarray.o: fitstarray.cc $(SOPHYAINCP)sopnamsp.h \ 349 $(SOPHYAINCP)machdefs.h \ 350 $(SOPHYAINCP)osx_values.h \ 404 351 $(SOPHYAINCP)pexceptions.h fitstarray.h \ 405 $(SOPHYAINCP)tarray.h \ 406 $(SOPHYAINCP)basarr.h \ 407 $(SOPHYAINCP)anydataobj.h \ 408 $(SOPHYAINCP)mutyv.h \ 409 $(SOPHYAINCP)timestamp.h \ 410 $(SOPHYAINCP)objfio.h \ 411 $(SOPHYAINCP)ppersist.h \ 352 $(SOPHYAINCP)tarray.h $(SOPHYAINCP)basarr.h \ 353 $(SOPHYAINCP)anydataobj.h \ 354 $(SOPHYAINCP)mutyv.h $(SOPHYAINCP)timestamp.h \ 355 $(SOPHYAINCP)objfio.h $(SOPHYAINCP)ppersist.h \ 412 356 $(SOPHYAINCP)gnumd5.h \ 413 357 $(SOPHYAINCP)ppfbinstream.h \ … … 416 360 $(SOPHYAINCP)dvlist.h \ 417 361 $(SOPHYAINCP)ndatablock.h \ 418 $(SOPHYAINCP)utilarr.h fitsfile.h \362 $(SOPHYAINCP)utilarr.h fitsfile.h fitsinoutfile.h \ 419 363 $(SOPHYAINCP)FitsIO/fitsio.h \ 420 364 $(SOPHYAINCP)FitsIO/longnam.h 421 365 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ fitstarray.cc 422 366 423 $(SOPHYAOBJP)fitsxntuple.o: fitsxntuple.cc \424 $(SOPHYAINCP) sopnamsp.h \425 $(SOPHYAINCP) pexceptions.h \426 $(SOPHYAINCP) machdefs.h fitsxntuple.h \367 $(SOPHYAOBJP)fitsxntuple.o: fitsxntuple.cc $(SOPHYAINCP)sopnamsp.h \ 368 $(SOPHYAINCP)pexceptions.h \ 369 $(SOPHYAINCP)machdefs.h \ 370 $(SOPHYAINCP)osx_values.h fitsxntuple.h \ 427 371 $(SOPHYAINCP)xntuple.h \ 428 372 $(SOPHYAINCP)ntupintf.h \ 373 $(SOPHYAINCP)ppersist.h $(SOPHYAINCP)gnumd5.h \ 374 $(SOPHYAINCP)ppfbinstream.h \ 375 $(SOPHYAINCP)rawstream.h \ 376 $(SOPHYAINCP)ppfnametag.h \ 377 $(SOPHYAINCP)dvlist.h $(SOPHYAINCP)objfio.h \ 378 $(SOPHYAINCP)anydataobj.h \ 379 $(SOPHYAINCP)mutyv.h $(SOPHYAINCP)timestamp.h \ 380 fitsfile.h $(SOPHYAINCP)ndatablock.h fitsinoutfile.h \ 381 $(SOPHYAINCP)FitsIO/fitsio.h \ 382 $(SOPHYAINCP)FitsIO/longnam.h 383 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ fitsxntuple.cc 384 385 $(SOPHYAOBJP)swfitsdtable.o: swfitsdtable.cc swfitsdtable.h \ 386 $(SOPHYAINCP)basedtable.h \ 387 $(SOPHYAINCP)machdefs.h \ 388 $(SOPHYAINCP)osx_values.h \ 389 $(SOPHYAINCP)ntupintf.h $(SOPHYAINCP)dvlist.h \ 390 $(SOPHYAINCP)objfio.h \ 391 $(SOPHYAINCP)anydataobj.h \ 429 392 $(SOPHYAINCP)ppersist.h \ 430 $(SOPHYAINCP)gnumd5.h \ 431 $(SOPHYAINCP)ppfbinstream.h \ 432 $(SOPHYAINCP)rawstream.h \ 433 $(SOPHYAINCP)ppfnametag.h \ 434 $(SOPHYAINCP)dvlist.h \ 435 $(SOPHYAINCP)objfio.h \ 436 $(SOPHYAINCP)anydataobj.h \ 437 $(SOPHYAINCP)mutyv.h \ 438 $(SOPHYAINCP)timestamp.h fitsfile.h \ 439 $(SOPHYAINCP)ndatablock.h \ 440 $(SOPHYAINCP)FitsIO/fitsio.h \ 441 $(SOPHYAINCP)FitsIO/longnam.h 442 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ fitsxntuple.cc 443 393 $(SOPHYAINCP)pexceptions.h \ 394 $(SOPHYAINCP)gnumd5.h \ 395 $(SOPHYAINCP)ppfbinstream.h \ 396 $(SOPHYAINCP)rawstream.h \ 397 $(SOPHYAINCP)ppfnametag.h \ 398 $(SOPHYAINCP)mutyv.h $(SOPHYAINCP)timestamp.h \ 399 $(SOPHYAINCP)segdatablock.h \ 400 $(SOPHYAINCP)tvector.h $(SOPHYAINCP)tmatrix.h \ 401 $(SOPHYAINCP)tarray.h $(SOPHYAINCP)basarr.h \ 402 $(SOPHYAINCP)ndatablock.h \ 403 $(SOPHYAINCP)utilarr.h $(SOPHYAINCP)swsegdb.h \ 404 fitsswapper.h fitsinoutfile.h $(SOPHYAINCP)FitsIO/fitsio.h \ 405 $(SOPHYAINCP)FitsIO/longnam.h fitsblkrw.h \ 406 $(SOPHYAINCP)sopnamsp.h 407 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ swfitsdtable.cc 408 -
trunk/SophyaExt/FitsIOServer/fitsarrhand.h
r2844 r2864 5 5 #include <string> 6 6 #include "tarray.h" 7 #include "tvector.h" 7 8 8 9 #include "fitshandler.h" 10 #include "fitsblkrw.h" 9 11 10 12 namespace SOPHYA { … … 23 25 virtual AnyDataObj* DataObj() { return(dobj); } 24 26 25 virtual boolCheckHandling(AnyDataObj & o)27 virtual int CheckHandling(AnyDataObj & o) 26 28 { 29 if ( (typeid(o) == typeid(TArray<T>)) || 30 (typeid(o) == typeid(TMatrix<T>)) || 31 (typeid(o) == typeid(TVector<T>)) ) return 2; 27 32 TArray<T> * po = dynamic_cast< TArray<T> * >(& o); 28 if (po == NULL) return false;29 else return true;33 if (po == NULL) return 0; 34 else return 1; 30 35 } 36 31 37 virtual void SetDataObj(AnyDataObj & o) 32 38 { … … 38 44 } 39 45 if (ownobj && dobj) delete dobj; dobj = po; ownobj = false; 46 } 47 48 virtual int CheckReadability(FitsInOutFile& is) 49 { 50 if (is.CurrentHDUType() != IMAGE_HDU) return 0; 51 T x = 0; 52 long naxes[BASEARRAY_MAXNDIMS]; 53 int naxis=BASEARRAY_MAXNDIMS; 54 if (FitsTypes::ImageType(x) == is.GetImageHDUInfo(naxis, naxes)) 55 return 2; 56 else return 1; 40 57 } 41 58 … … 56 73 os.CreateImageHDU(FitsTypes::ImageType(x), dobj->NbDimensions(), naxes); 57 74 os.WriteHeaderRecords(dobj->Info()); 75 MuTyV mtv; 76 mtv = "SOPHYA::TArray<T>"; 77 os.WriteKey("SOPCLSNM",mtv," Object class name "); 58 78 FitsBlockRW<T>::WriteImageData(os, dobj->Data(), dobj->Size()); 59 79 } … … 62 82 virtual void Read(FitsInOutFile& is) 63 83 { 64 if ( dobj == NULL)65 throw NullPtrError("FitsArrayHandler<T>::Read() dobj=NULL ");66 84 long naxes[BASEARRAY_MAXNDIMS]; 67 85 int naxis=BASEARRAY_MAXNDIMS; 68 86 is.GetImageHDUInfo(naxis, naxes); 87 if ( dobj == NULL) { 88 if (naxis == 1) dobj = new TVector<T>; 89 else if (naxis == 1) dobj = new TMatrix<T>; 90 else dobj = new TArray<T>; 91 ownobj = true; 92 } 69 93 sa_size_t sz[BASEARRAY_MAXNDIMS]; 70 94 if (naxis > BASEARRAY_MAXNDIMS) naxis = BASEARRAY_MAXNDIMS; -
trunk/SophyaExt/FitsIOServer/fitshandler.h
r2820 r2864 4 4 #include "machdefs.h" 5 5 #include <string> 6 #include <typeinfo> 6 7 #include "fitsinoutfile.h" 7 8 … … 19 20 //! Return the real data object 20 21 virtual AnyDataObj* DataObj() = 0; // Retourne l'objet reel 21 //! Return true if I/O for object \b o can be handled22 virtual boolCheckHandling(AnyDataObj & o) = 0;22 //! Return a positive value if I/O for object \b o can be handled 23 virtual int CheckHandling(AnyDataObj & o) = 0; 23 24 //! Read/write operation will use the object o 24 25 virtual void SetDataObj(AnyDataObj & o) = 0; 25 26 27 //! Return a positive value if current HDU can be read by the handler 28 virtual int CheckReadability(FitsInOutFile& is) = 0; 29 26 30 //! Clone (duplicate) the handler class 27 31 virtual FitsHandlerInterface* Clone() = 0; … … 46 50 47 51 virtual AnyDataObj* DataObj() { return(dobj); } 48 virtual boolCheckHandling(AnyDataObj & o)52 virtual int CheckHandling(AnyDataObj & o) 49 53 { 54 if (typeid(o) == typeid(T)) return 2; 50 55 T * po = dynamic_cast< T * >(& o); 51 if (po == NULL) return false;52 else return true;56 if (po == NULL) return 0; 57 else return 1; 53 58 } 54 59 virtual void SetDataObj(AnyDataObj & o) … … 62 67 if (ownobj && dobj) delete dobj; dobj = po; ownobj = false; 63 68 } 69 70 virtual int CheckReadability(FitsInOutFile& is); 64 71 65 72 virtual FitsHandlerInterface* Clone() -
trunk/SophyaExt/FitsIOServer/fitshdtable.cc
r2846 r2864 12 12 13 13 // #include "fitshdtable.h" 14 15 DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */ 16 int FitsHandler<BaseDataTable>::CheckReadability(FitsInOutFile& is) 17 { 18 if (is.CurrentHDUType() == IMAGE_HDU ) return 0; 19 string key = "SOPCLSNM"; 20 if (is.KeyValue(key) == "SOPHYA::DataTable") return 2; 21 else return 1; 22 } 14 23 15 24 DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */ -
trunk/SophyaExt/FitsIOServer/fitshdtable.h
r2820 r2864 1 #ifndef FITS ARRHAND_H2 #define FITS ARRHAND_H1 #ifndef FITSDTABLEHAND_H 2 #define FITSDTABLEHAND_H 3 3 4 4 #include "machdefs.h" -
trunk/SophyaExt/FitsIOServer/fitsinoutfile.cc
r2860 r2864 101 101 { 102 102 fptr_ = NULL; 103 mode_ = Fits_RO; 103 104 SetDef_BinTable(); 104 105 SetDef_StrColWidth(); … … 130 131 131 132 /*! \brief Copy constructor 132 The fits file pointer is owned by the original object and should not be closed133 as long as the new object is being used.133 \warning The fits file pointer is owned by the original FitsInOutFile object and 134 should not be closed as long as the new object is being used. 134 135 */ 135 136 FitsInOutFile::FitsInOutFile(FitsInOutFile const& fios) … … 227 228 } 228 229 230 /*! \brief Closes the current fits file and uses \b fios file for subsequent operations. 231 \warning The fits file pointer is owned by the original FitsInOutFile object and 232 should not be closed as long as the current object (this) is being used. 233 */ 234 235 void FitsInOutFile::ShareFitsPtr(FitsInOutFile const& fios) 236 { 237 Close(); 238 fptr_ = fios.fptr_; 239 fname_ = fios.fname_; 240 mode_ = fios.mode_; 241 ownfptr = false; 242 } 229 243 230 244 /*-- Methode --*/ -
trunk/SophyaExt/FitsIOServer/fitsinoutfile.h
r2860 r2864 87 87 88 88 void Open(const char* name, FitsIOMode mode); 89 void Close(); 90 89 void Close(); 90 91 void ShareFitsPtr(FitsInOutFile const& fios); 92 91 93 inline fitsfile* FitsPtr() const { return fptr_; } 92 94 static float cfitsioVersion(); 93 95 //! Return the SOPHYA FitsIOServer version 94 96 static float Version() { return 2.0; } 97 98 //! Return the file name as specified in the constructor (or Open) 99 inline string FileName() { return fname_; } 95 100 96 101 //---- Header manipulation methods -
trunk/SophyaExt/FitsIOServer/fitsmanager.cc
r2843 r2864 24 24 } 25 25 26 int FitsManager::RegisterHandler(FitsHandlerInterface * fhi, string &clname)26 int FitsManager::RegisterHandler(FitsHandlerInterface * fhi, string clname) 27 27 { 28 ChkHLP(); 28 29 if (fhi == NULL) 29 30 throw NullPtrError("FitsManager::RegisterHandler() fhi=NULL "); … … 42 43 int FitsManager::ListHandlers() 43 44 { 45 ChkHLP(); 44 46 int kk=0; 45 47 cout << "---- FitsManager::ListHandlers() NbHandlers= " << hlistp->size() … … 56 58 FitsHandlerInterface* FitsManager::FindHandler(AnyDataObj & o) 57 59 { 60 ChkHLP(); 58 61 FitsHandlerInterface * fhi = NULL; 59 62 HandlerList::iterator it; 60 for(it = hlistp->begin(); it != hlistp->end(); it++) 61 if ( (*it).fhi->CheckHandling(o) ) { 62 fhi = (*it).fhi; break; 63 int hfg = 0; 64 int bhfg = 0; 65 for(it = hlistp->begin(); it != hlistp->end(); it++) { 66 hfg = (*it).fhi->CheckHandling(o); 67 if ( hfg > bhfg ) { 68 fhi = (*it).fhi; bhfg = hfg; 63 69 } 70 } 64 71 if (fhi == NULL) { 65 72 string msg = "FitsManager::FindHandler() Handler not found for "; … … 78 85 } 79 86 80 void FitsManager::Read(FitsInOutFile& os, AnyDataObj & o)87 void FitsManager::Read(FitsInOutFile& is, AnyDataObj & o) 81 88 { 82 89 FitsHandlerInterface * fhi2 = FindHandler(o)->Clone(); 83 90 fhi2->SetDataObj(o); 84 fhi2->Read(os); 91 fhi2->Read(is); 92 delete fhi2; 85 93 return; 86 94 } 95 96 FitsHandlerInterface * FitsManager::FindReader(FitsInOutFile& is) 97 { 98 ChkHLP(); 99 FitsHandlerInterface * fhi = NULL; 100 HandlerList::iterator it; 101 int hfg = 0; 102 int bhfg = 0; 103 for(it = hlistp->begin(); it != hlistp->end(); it++) { 104 hfg = (*it).fhi->CheckReadability(is); 105 if ( hfg > bhfg ) { 106 fhi = (*it).fhi; bhfg = hfg; 107 } 108 } 109 if (fhi == NULL) { 110 string msg = "FitsManager::FindReader() Reader/Handler not found "; 111 msg += is.FileName(); 112 char buff[64]; 113 sprintf(buff, " HDU= %d Type= %d", (int)(is.CurrentHDU()), 114 (int)(is.CurrentHDUType()) ); 115 msg += buff; 116 throw NotFoundExc(msg); 117 } 118 else return fhi; 119 } 120 121 FitsHandlerInterface * FitsManager::Read(FitsInOutFile& is) 122 { 123 FitsHandlerInterface * fhi2 = FindReader(is)->Clone(); 124 fhi2->Read(is); 125 return fhi2; 126 } -
trunk/SophyaExt/FitsIOServer/fitsmanager.h
r2820 r2864 16 16 class FitsManager { 17 17 public: 18 static int RegisterHandler(FitsHandlerInterface * fhi, string & clname); 18 //! Called once for each handler during init phase. 19 static int RegisterHandler(FitsHandlerInterface * fhi, string clname=""); 20 //! Print list of handlers on cout 19 21 static int ListHandlers(); 22 //! Finds the appropriate handler and writes the object \b o to fits file \b os 20 23 static void Write(FitsInOutFile& os, AnyDataObj & o); 21 static void Read(FitsInOutFile& os, AnyDataObj & o); 22 // static FitsHandlerInterface * Read(FitsInOutFile& os); 24 //! Finds the appropriate handler and reads the object \b o from fits file \b is 25 static void Read(FitsInOutFile& is, AnyDataObj & o); 26 //! Finds the appropriate reader for the current HDU and reads the data form \b is 27 static FitsHandlerInterface * Read(FitsInOutFile& is); 23 28 protected: 29 //! Finds the appropriate handler for the object \b o in the list of registered handlers. 24 30 static FitsHandlerInterface* FindHandler(AnyDataObj & o); 31 //! Finds the appropriate reader for the current HDU in the list of registered handlers. 32 static FitsHandlerInterface* FindReader(FitsInOutFile& is); 25 33 }; 26 34 -
trunk/SophyaExt/FitsIOServer/fitsswapper.h
r2857 r2864 24 24 public: 25 25 FITSDataSwapper() 26 : fcol(0) , rowos(1) 26 27 { 27 SetInOutStream(NULL, 0);28 28 } 29 FITSDataSwapper(FitsInOutFile * ios, int col) 29 FITSDataSwapper(FitsInOutFile & ios, int col) 30 : fios(ios) , fcol(col), rowos(1) 30 31 { 31 SetInOutStream(ios, col);32 32 } 33 33 34 inline FitsInOutFile *InOutStream() { return fios; }35 void SetInOutStream(FitsInOutFile *ios, int col)34 inline FitsInOutFile & InOutStream() { return fios; } 35 void SetInOutStream(FitsInOutFile & ios, int col) 36 36 { 37 37 fios = ios; 38 38 fcol = col; 39 39 rowos = 1; 40 /* On ne fait pas de check sur type HDU - Reza , 30/12/2005 40 41 if ( fios != NULL) { 41 42 fhdu = fios->CurrentHDU(); 42 43 if (fios->CurrentHDUType() != BINARY_TBL) 43 44 throw FitsIOException("FITSDataSwapper<T>::SetInOutStream() CurrHDU not a BINARY_TBL"); 44 } 45 } */ 45 46 } 46 47 … … 51 52 fcol = a.fcol; 52 53 rowos = a.rowos; 53 fhdu = a.fhdu;54 54 } 55 55 56 56 virtual int_8 WriteToSwap(const T * d, size_t sz, int_8 idx, int_8 oswp=0, bool osw=false) 57 57 { 58 if (fios == NULL) 59 FitsIOException("FITSDataSwapper<T>::ReadFromSwap() null InOutFile pointer"); 60 fios->MoveAbsToHDU(fhdu); 58 /* fios->MoveAbsToHDU(fhdu); On suppose qu'on est sur le bon HDU - Reza 30/12/2005 */ 61 59 long row = rowos; 62 60 if (osw) row = oswp; 63 FitsBlockRW<T>::WriteColumnData( *fios, fcol, row, 1, d, sz);61 FitsBlockRW<T>::WriteColumnData(fios, fcol, row, 1, d, sz); 64 62 if (!osw) rowos += sz; 65 63 return row; … … 68 66 virtual void ReadFromSwap(int_8 idx, int_8 swp, T* d, size_t sz) 69 67 { 70 if (fios == NULL) 71 FitsIOException("FITSDataSwapper<T>::ReadFromSwap() null InOutFile pointer"); 72 FitsBlockRW<T>::ReadColumnData(*fios, fcol, swp, 1, d, sz); 68 FitsBlockRW<T>::ReadColumnData(fios, fcol, swp, 1, d, sz); 69 } 70 71 virtual DataSwapperInterface<T>* Clone() 72 { 73 FITSDataSwapper<T> * rsw = new FITSDataSwapper<T>(fios, fcol) ; 74 return rsw; 73 75 } 74 76 75 77 protected: 76 FitsInOutFile *fios;77 int fcol , fhdu;78 FitsInOutFile fios; 79 int fcol; 78 80 long rowos; 79 81 }; -
trunk/SophyaExt/FitsIOServer/objlist.list
r2824 r2864 4 4 fboloread.o 5 5 fbtntintf.o 6 fiosinit.o 6 7 fitsautoreader.o 7 8 fitsbntbllineRW.o … … 14 15 fitsspherehealpix.o 15 16 fitsspherethetaphi.o 16 fitsswapper.o17 17 fitstarray.o 18 18 fitsxntuple.o 19 swfitsdtable.o
Note:
See TracChangeset
for help on using the changeset viewer.