Ignore:
Timestamp:
Jan 2, 2006, 2:47:44 PM (20 years ago)
Author:
ansari
Message:

1/ Ajout methode CheckReadability() , retour int pour CheckHandling() ds l'interface FitsHandler et propagation vers handler TArray et DataTable
2/ Correction dans FitsManager et ajout initialiseur de module FitsIOServer (fiosinit.h .cc)
3/ FitsSwapper complete - corrige - full template (suppression de fitsswapper.cc)
4/ MAJ Makefile et objlist.list suite ajout fiosinit.cc et swfitsdtable

Reza , 2 Jan 2006

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/FitsIOServer/fitshandler.h

    r2820 r2864  
    44#include "machdefs.h"
    55#include <string>
     6#include <typeinfo>
    67#include "fitsinoutfile.h"
    78
     
    1920  //! Return the real data object
    2021  virtual AnyDataObj* DataObj() = 0;       // Retourne l'objet reel
    21   //! Return true if I/O for object \b o can be handled
    22   virtual bool        CheckHandling(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;
    2324  //! Read/write operation will use the object o
    2425  virtual void        SetDataObj(AnyDataObj & o) = 0;
    2526
     27  //! Return a positive value if current HDU can be read by the handler
     28  virtual int         CheckReadability(FitsInOutFile& is) = 0;
     29 
    2630  //! Clone (duplicate) the handler class
    2731  virtual FitsHandlerInterface* Clone() = 0;
     
    4650
    4751  virtual   AnyDataObj* DataObj() { return(dobj); }
    48   virtual   bool        CheckHandling(AnyDataObj & o)
     52  virtual   int         CheckHandling(AnyDataObj & o)
    4953  { 
     54    if (typeid(o) == typeid(T)) return 2;
    5055    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;
    5358  }
    5459  virtual   void        SetDataObj(AnyDataObj & o)
     
    6267    if (ownobj && dobj) delete dobj;  dobj = po; ownobj = false;
    6368  }
     69
     70  virtual int         CheckReadability(FitsInOutFile& is);
    6471   
    6572  virtual FitsHandlerInterface* Clone()
Note: See TracChangeset for help on using the changeset viewer.