Last change
on this file since 2895 was 2895, checked in by ansari, 20 years ago |
Ajout priorite a l'enregistrement pour Fitshandlers - Reza 12/01/2006
|
-
Property svn:executable
set to
*
|
File size:
1.2 KB
|
Rev | Line | |
---|
[2820] | 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:
|
---|
[2864] | 18 | //! Called once for each handler during init phase.
|
---|
[2895] | 19 | static int RegisterHandler(FitsHandlerInterface * fhi, int glev=0, string desc="");
|
---|
[2864] | 20 | //! Print list of handlers on cout
|
---|
[2820] | 21 | static int ListHandlers();
|
---|
[2864] | 22 | //! Finds the appropriate handler and writes the object \b o to fits file \b os
|
---|
[2820] | 23 | static void Write(FitsInOutFile& os, AnyDataObj & o);
|
---|
[2864] | 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);
|
---|
[2820] | 28 | protected:
|
---|
[2864] | 29 | //! Finds the appropriate handler for the object \b o in the list of registered handlers.
|
---|
[2820] | 30 | static FitsHandlerInterface* FindHandler(AnyDataObj & o);
|
---|
[2864] | 31 | //! Finds the appropriate reader for the current HDU in the list of registered handlers.
|
---|
| 32 | static FitsHandlerInterface* FindReader(FitsInOutFile& is);
|
---|
[2820] | 33 | };
|
---|
| 34 |
|
---|
| 35 | } // Fin du namespace
|
---|
| 36 |
|
---|
| 37 | #endif
|
---|
| 38 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.