| 1 | // Classe d'initialisation du module Outils++ 
 | 
|---|
| 2 | #include "machdefs.h"
 | 
|---|
| 3 | #include "skymapinit.h" 
 | 
|---|
| 4 | 
 | 
|---|
| 5 | #include <unistd.h>
 | 
|---|
| 6 | #include "spherethetaphi.h"
 | 
|---|
| 7 | #include "fiospherehealpix.h"
 | 
|---|
| 8 | #include "fiospherethetaphi.h"
 | 
|---|
| 9 | #include "fiolocalmap.h"
 | 
|---|
| 10 | #include "localmap.h"
 | 
|---|
| 11 |  
 | 
|---|
| 12 | /*!
 | 
|---|
| 13 |    \defgroup SkyMap SkyMap module
 | 
|---|
| 14 |    This module contains classes for handling partial and full sky (spherical) maps
 | 
|---|
| 15 | */
 | 
|---|
| 16 | 
 | 
|---|
| 17 | /*!
 | 
|---|
| 18 |   \class SOPHYA::SkyMapInitiator
 | 
|---|
| 19 |   \ingroup SkyMap
 | 
|---|
| 20 |   Class handling initialization for module SkyMap
 | 
|---|
| 21 | */
 | 
|---|
| 22 | 
 | 
|---|
| 23 | int SkyMapInitiator::FgInit = 0;
 | 
|---|
| 24 | 
 | 
|---|
| 25 | SkyMapInitiator::SkyMapInitiator()
 | 
|---|
| 26 |   : SophyaInitiator()
 | 
|---|
| 27 | {
 | 
|---|
| 28 |   FgInit++;
 | 
|---|
| 29 |   if (FgInit > 1)  return;
 | 
|---|
| 30 | 
 | 
|---|
| 31 | //   Enregistrement des classes PPersist du module SkyMap
 | 
|---|
| 32 |   
 | 
|---|
| 33 |   PPRegister(FIO_SphereCoordSys);
 | 
|---|
| 34 |   DObjRegister(FIO_SphereCoordSys, SphereCoordSys);
 | 
|---|
| 35 | 
 | 
|---|
| 36 |   PPRegister(FIO_SphereThetaPhi<r_4>);
 | 
|---|
| 37 |   DObjRegister(FIO_SphereThetaPhi<r_4>, SphereThetaPhi<r_4>);
 | 
|---|
| 38 | 
 | 
|---|
| 39 |   PPRegister(FIO_SphereThetaPhi<r_8>);
 | 
|---|
| 40 |   DObjRegister(FIO_SphereThetaPhi<r_8>, SphereThetaPhi<r_8>);
 | 
|---|
| 41 | 
 | 
|---|
| 42 |   PPRegister(FIO_SphereThetaPhi< complex<r_4> >);
 | 
|---|
| 43 |   DObjRegister(FIO_SphereThetaPhi< complex<r_4> >, SphereThetaPhi< complex<r_4> >);
 | 
|---|
| 44 | 
 | 
|---|
| 45 |   PPRegister(FIO_SphereThetaPhi< complex<r_8> >);
 | 
|---|
| 46 |   DObjRegister(FIO_SphereThetaPhi< complex<r_8> >, SphereThetaPhi< complex<r_8> >);
 | 
|---|
| 47 | 
 | 
|---|
| 48 |   PPRegister(FIO_SphereHEALPix<r_4>);  
 | 
|---|
| 49 |   DObjRegister(FIO_SphereHEALPix<r_4>, SphereHEALPix<r_4>);
 | 
|---|
| 50 | 
 | 
|---|
| 51 |   PPRegister(FIO_SphereHEALPix<r_8>);
 | 
|---|
| 52 |   DObjRegister(FIO_SphereHEALPix<r_8>, SphereHEALPix<r_8>);
 | 
|---|
| 53 | 
 | 
|---|
| 54 |   PPRegister(FIO_SphereHEALPix< complex<r_4> >);
 | 
|---|
| 55 |   DObjRegister(FIO_SphereHEALPix< complex<r_4> >, SphereHEALPix< complex<r_4> >);
 | 
|---|
| 56 | 
 | 
|---|
| 57 |   PPRegister(FIO_SphereHEALPix< complex<r_8> >);
 | 
|---|
| 58 |   DObjRegister(FIO_SphereHEALPix< complex<r_8> >, SphereHEALPix< complex<r_8> >);
 | 
|---|
| 59 | 
 | 
|---|
| 60 |   PPRegister(FIO_LocalMap<r_4>);
 | 
|---|
| 61 |   DObjRegister(FIO_LocalMap<r_4>, LocalMap<r_4>);
 | 
|---|
| 62 | 
 | 
|---|
| 63 |   PPRegister(FIO_LocalMap<r_8>);
 | 
|---|
| 64 |   DObjRegister(FIO_LocalMap<r_8>, LocalMap<r_8>);
 | 
|---|
| 65 | 
 | 
|---|
| 66 |   PPRegister(FIO_LocalMap< complex<r_4> >);
 | 
|---|
| 67 |   DObjRegister(FIO_LocalMap< complex<r_4> >, LocalMap< complex<r_4> >);
 | 
|---|
| 68 | 
 | 
|---|
| 69 |   PPRegister(FIO_LocalMap< complex<r_8> >);
 | 
|---|
| 70 |   DObjRegister(FIO_LocalMap< complex<r_8> >, LocalMap< complex<r_8> >);
 | 
|---|
| 71 | 
 | 
|---|
| 72 | 
 | 
|---|
| 73 | }
 | 
|---|
| 74 | 
 | 
|---|
| 75 | SkyMapInitiator::~SkyMapInitiator()
 | 
|---|
| 76 | {
 | 
|---|
| 77 |   FgInit--;
 | 
|---|
| 78 | }
 | 
|---|
| 79 | 
 | 
|---|
| 80 | 
 | 
|---|
| 81 | // On met un objet initiator en statique, pour les loaders qui savent 
 | 
|---|
| 82 | // appeler le constructeur des objets statiques   Reza 08/98
 | 
|---|
| 83 | static SkyMapInitiator s_sskymapinit_;
 | 
|---|
| 84 | 
 | 
|---|
| 85 |  
 | 
|---|