|
Last change
on this file since 2893 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
|
|
File size:
1.4 KB
|
| Line | |
|---|
| 1 | // Classe d'initialisation du module FitsIOServer
|
|---|
| 2 |
|
|---|
| 3 | #include "sopnamsp.h"
|
|---|
| 4 | #include "machdefs.h"
|
|---|
| 5 | #include "fiosinit.h"
|
|---|
| 6 | #include "fitsmanager.h"
|
|---|
| 7 | #include "fitshdtable.h"
|
|---|
| 8 | #include "fitsarrhand.h"
|
|---|
| 9 |
|
|---|
| 10 | #include <iostream>
|
|---|
| 11 |
|
|---|
| 12 | /*!
|
|---|
| 13 | \class SOPHYA::FitsIOServerInitiator
|
|---|
| 14 | \ingroup FitsIOServer
|
|---|
| 15 | Perform registration of fits handlers.
|
|---|
| 16 | \sa SOPHYA::FitsManager
|
|---|
| 17 | */
|
|---|
| 18 | int FitsIOServerInitiator::FgInit = 0;
|
|---|
| 19 |
|
|---|
| 20 | FitsIOServerInitiator::FitsIOServerInitiator()
|
|---|
| 21 | : SophyaInitiator()
|
|---|
| 22 | {
|
|---|
| 23 | FitsIOServerInitiator::FgInit++;
|
|---|
| 24 | if (FitsIOServerInitiator::FgInit > 1) return;
|
|---|
| 25 |
|
|---|
| 26 | // Enregistrement des classes FitsHandler
|
|---|
| 27 | // FitsManager::RegisterHandler(new FitsArrayHandler<int_2> , "TArray<int_2>");
|
|---|
| 28 | cout << " ---- FitsIOServerInitiator / DEBUG ---- debut RegisterHandler " << endl;
|
|---|
| 29 | FitsManager::RegisterHandler(new FitsArrayHandler<int_4> , "TArray<int_4>");
|
|---|
| 30 | FitsManager::RegisterHandler(new FitsArrayHandler<r_4> , "TArray<r_4>");
|
|---|
| 31 | FitsManager::RegisterHandler(new FitsArrayHandler< r_8 > , "TArray<r_8>");
|
|---|
| 32 |
|
|---|
| 33 | FitsManager::RegisterHandler(new FitsHandler<BaseDataTable>, "DataTable");
|
|---|
| 34 |
|
|---|
| 35 | cout << " ---- FitsIOServerInitiator / DEBUG ---- ListHandlers() : " << endl;
|
|---|
| 36 | FitsManager::ListHandlers();
|
|---|
| 37 | }
|
|---|
| 38 |
|
|---|
| 39 | FitsIOServerInitiator::~FitsIOServerInitiator()
|
|---|
| 40 | {
|
|---|
| 41 | FitsIOServerInitiator::FgInit--;
|
|---|
| 42 | }
|
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 | // On met un objet initiator en statique, pour les loaders qui savent
|
|---|
| 46 | // appeler le constructeur des objets statiques
|
|---|
| 47 | // static FitsIOServerInitiator s_fios_init_;
|
|---|
| 48 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.