Last change
on this file since 2864 was 2864, checked in by ansari, 20 years ago |
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
|
-
Property svn:executable
set to
*
|
File size:
1.2 KB
|
Line | |
---|
1 | #ifndef FITSMANAGER_H
|
---|
2 | #define FITSMANAGER_H
|
---|
3 |
|
---|
4 | #include "machdefs.h"
|
---|
5 | #include <string>
|
---|
6 | #include "fitsinoutfile.h"
|
---|
7 |
|
---|
8 | namespace SOPHYA {
|
---|
9 |
|
---|
10 | class FitsHandlerInterface;
|
---|
11 |
|
---|
12 | /*!
|
---|
13 | \ingroup FitsIOServer
|
---|
14 | \brief Top level FITS I/O operations and handler management.
|
---|
15 | */
|
---|
16 | class FitsManager {
|
---|
17 | public:
|
---|
18 | //! Called once for each handler during init phase.
|
---|
19 | static int RegisterHandler(FitsHandlerInterface * fhi, string clname="");
|
---|
20 | //! Print list of handlers on cout
|
---|
21 | static int ListHandlers();
|
---|
22 | //! Finds the appropriate handler and writes the object \b o to fits file \b os
|
---|
23 | static void Write(FitsInOutFile& os, AnyDataObj & o);
|
---|
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);
|
---|
28 | protected:
|
---|
29 | //! Finds the appropriate handler for the object \b o in the list of registered handlers.
|
---|
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);
|
---|
33 | };
|
---|
34 |
|
---|
35 | } // Fin du namespace
|
---|
36 |
|
---|
37 | #endif
|
---|
38 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.